1# 2# Licensed to the Apache Software Foundation (ASF) under one 3# or more contributor license agreements. See the NOTICE file 4# distributed with this work for additional information 5# regarding copyright ownership. The ASF licenses this file 6# to you under the Apache License, Version 2.0 (the 7# "License"); you may not use this file except in compliance 8# with the License. You may obtain a copy of the License at 9# 10# http://www.apache.org/licenses/LICENSE-2.0 11# 12# Unless required by applicable law or agreed to in writing, 13# software distributed under the License is distributed on an 14# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15# KIND, either express or implied. See the License for the 16# specific language governing permissions and limitations 17# under the License. 18# 19 20BIN_CPP = bin/Main-debug 21BIN_PHP = bin/php/Main-debug.php 22BIN_PHP_WEB = bin/php-web-server/Main-debug.php 23 24gen-haxe/tutorial/calculator.hx gen-haxe/shared/shared_service.hx: $(top_srcdir)/tutorial/tutorial.thrift 25 $(THRIFT) --gen haxe -r $< 26 27all-local: $(BIN_CPP) $(BIN_PHP) $(BIN_PHP_WEB) 28 29check: gen-haxe/tutorial/calculator.hx 30 31$(BIN_CPP): \ 32 src/*.hx \ 33 ../../lib/haxe/src/org/apache/thrift/**/*.hx \ 34 gen-haxe/tutorial/calculator.hx 35 $(HAXE) --cwd . cpp.hxml 36 37$(BIN_PHP): \ 38 src/*.hx \ 39 ../../lib/haxe/src/org/apache/thrift/**/*.hx \ 40 gen-haxe/tutorial/calculator.hx 41 $(HAXE) --cwd . php.hxml 42 43$(BIN_PHP_WEB): \ 44 src/*.hx \ 45 ../../lib/haxe/src/org/apache/thrift/**/*.hx \ 46 gen-haxe/tutorial/calculator.hx 47 $(HAXE) --cwd . php-web-server.hxml 48 49tutorialserver: all 50 $(BIN_CPP) server 51 52tutorialserver_php: all 53 php -f $(BIN_PHP) server 54 55tutorialclient: all 56 $(BIN_CPP) 57 58tutorialclient_php: all 59 php -f $(BIN_PHP) 60 61tutorialsecureserver: all 62 $(BIN_CPP) server secure 63 64tutorialsecureserver_php: all 65 php -f $(BIN_PHP) server secure 66 67tutorialsecureclient: all 68 $(BIN_CPP) secure 69 70tutorialsecureclient_php: all 71 php -f $(BIN_PHP) secure 72 73tutorialserver_php_http: all 74 php -S 127.0.0.1:9090 router.php 75 76tutorialclient_http: all 77 $(BIN_CPP) client http 78 79clean-local: 80 $(RM) -r gen-haxe bin 81 82EXTRA_DIST = \ 83 src \ 84 cpp.hxml \ 85 csharp.hxml \ 86 flash.hxml \ 87 java.hxml \ 88 javascript.hxml \ 89 php-web-server.hxml \ 90 neko.hxml \ 91 php.hxml \ 92 python.hxml \ 93 router.php \ 94 project.hide \ 95 Tutorial.hxproj \ 96 make_all.bat \ 97 make_all.sh 98