blob: d2c84f4c7afcf2e9f4b9f7b800fa64fb283a9730 [file] [log] [blame]
Jens Geyerbd52f1a2014-07-28 01:25:30 +02001#
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
Oleksii Prudkyi39a09ac2016-05-19 16:55:11 +030020BIN_CPP = bin/Main-debug
Jens Geyer1d20a372016-03-15 23:04:27 +020021BIN_PHP = bin/php/Main-debug.php
Oleksii Prudkyi39a09ac2016-05-19 16:55:11 +030022BIN_PHP_WEB = bin/php-web-server/Main-debug.php
Jens Geyer1d20a372016-03-15 23:04:27 +020023
Jens Geyerbd52f1a2014-07-28 01:25:30 +020024gen-haxe/tutorial/calculator.hx gen-haxe/shared/shared_service.hx: $(top_srcdir)/tutorial/tutorial.thrift
25 $(THRIFT) --gen haxe -r $<
26
Oleksii Prudkyi39a09ac2016-05-19 16:55:11 +030027all-local: $(BIN_CPP) $(BIN_PHP) $(BIN_PHP_WEB)
Jens Geyerbd52f1a2014-07-28 01:25:30 +020028
29check: gen-haxe/tutorial/calculator.hx
30
Oleksii Prudkyi39a09ac2016-05-19 16:55:11 +030031$(BIN_CPP): \
Jens Geyerbbd6fd72015-05-30 19:33:44 +020032 src/*.hx \
33 ../../lib/haxe/src/org/apache/thrift/**/*.hx \
34 gen-haxe/tutorial/calculator.hx
Jens Geyerbd52f1a2014-07-28 01:25:30 +020035 $(HAXE) --cwd . cpp.hxml
Jens Geyerfea00ac2014-10-01 02:22:48 +020036
Jens Geyer1d20a372016-03-15 23:04:27 +020037$(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
Oleksii Prudkyi39a09ac2016-05-19 16:55:11 +030043$(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
Jens Geyerbd52f1a2014-07-28 01:25:30 +020049tutorialserver: all
Oleksii Prudkyi39a09ac2016-05-19 16:55:11 +030050 $(BIN_CPP) server
Jens Geyerbd52f1a2014-07-28 01:25:30 +020051
Jens Geyer1d20a372016-03-15 23:04:27 +020052tutorialserver_php: all
53 php -f $(BIN_PHP) server
54
Jens Geyerbd52f1a2014-07-28 01:25:30 +020055tutorialclient: all
Oleksii Prudkyi39a09ac2016-05-19 16:55:11 +030056 $(BIN_CPP)
Jens Geyerbd52f1a2014-07-28 01:25:30 +020057
Jens Geyer1d20a372016-03-15 23:04:27 +020058tutorialclient_php: all
59 php -f $(BIN_PHP)
60
Jens Geyerbd52f1a2014-07-28 01:25:30 +020061tutorialsecureserver: all
Oleksii Prudkyi39a09ac2016-05-19 16:55:11 +030062 $(BIN_CPP) server secure
Jens Geyerbd52f1a2014-07-28 01:25:30 +020063
Jens Geyer1d20a372016-03-15 23:04:27 +020064tutorialsecureserver_php: all
65 php -f $(BIN_PHP) server secure
66
Jens Geyerbd52f1a2014-07-28 01:25:30 +020067tutorialsecureclient: all
Oleksii Prudkyi39a09ac2016-05-19 16:55:11 +030068 $(BIN_CPP) secure
Jens Geyerbd52f1a2014-07-28 01:25:30 +020069
Jens Geyer1d20a372016-03-15 23:04:27 +020070tutorialsecureclient_php: all
71 php -f $(BIN_PHP) secure
72
Oleksii Prudkyi39a09ac2016-05-19 16:55:11 +030073tutorialserver_php_http: all
74 php -S 127.0.0.1:9090 router.php
75
76tutorialclient_http: all
77 $(BIN_CPP) client http
78
Jens Geyerbd52f1a2014-07-28 01:25:30 +020079clean-local:
80 $(RM) -r gen-haxe bin
81
Thomas63f04582024-03-21 22:51:07 +090082distdir:
83 $(MAKE) $(AM_MAKEFLAGS) distdir-am
84
Jens Geyerbd52f1a2014-07-28 01:25:30 +020085EXTRA_DIST = \
Jens Geyerf3a29742017-11-30 22:30:03 +010086 src \
87 cpp.hxml \
88 csharp.hxml \
89 flash.hxml \
90 java.hxml \
91 javascript.hxml \
92 php-web-server.hxml \
93 neko.hxml \
94 php.hxml \
95 python.hxml \
96 router.php \
97 project.hide \
98 Tutorial.hxproj \
99 make_all.bat \
100 make_all.sh