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
10 # http://www.apache.org/licenses/LICENSE-2.0
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
20 BIN_CPP = bin/Main-debug
21 BIN_PHP = bin/php/Main-debug.php
22 BIN_PHP_WEB = bin/php-web-server/Main-debug.php
24 gen-haxe/tutorial/calculator.hx gen-haxe/shared/shared_service.hx: $(top_srcdir)/tutorial/tutorial.thrift
25 $(THRIFT) --gen haxe -r $<
27 all-local: $(BIN_CPP) $(BIN_PHP) $(BIN_PHP_WEB)
29 check: gen-haxe/tutorial/calculator.hx
33 ../../lib/haxe/src/org/apache/thrift/**/*.hx \
34 gen-haxe/tutorial/calculator.hx
35 $(HAXE) --cwd . cpp.hxml
39 ../../lib/haxe/src/org/apache/thrift/**/*.hx \
40 gen-haxe/tutorial/calculator.hx
41 $(HAXE) --cwd . php.hxml
45 ../../lib/haxe/src/org/apache/thrift/**/*.hx \
46 gen-haxe/tutorial/calculator.hx
47 $(HAXE) --cwd . php-web-server.hxml
52 tutorialserver_php: all
53 php -f $(BIN_PHP) server
58 tutorialclient_php: all
61 tutorialsecureserver: all
62 $(BIN_CPP) server secure
64 tutorialsecureserver_php: all
65 php -f $(BIN_PHP) server secure
67 tutorialsecureclient: all
70 tutorialsecureclient_php: all
71 php -f $(BIN_PHP) secure
73 tutorialserver_php_http: all
74 php -S 127.0.0.1:9090 router.php
76 tutorialclient_http: all
77 $(BIN_CPP) client http