Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 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 | |
Oleksii Prudkyi | 39a09ac | 2016-05-19 16:55:11 +0300 | [diff] [blame] | 20 | BIN_CPP = bin/Main-debug |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame] | 21 | BIN_PHP = bin/php/Main-debug.php |
Oleksii Prudkyi | 39a09ac | 2016-05-19 16:55:11 +0300 | [diff] [blame] | 22 | BIN_PHP_WEB = bin/php-web-server/Main-debug.php |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame] | 23 | |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 24 | gen-haxe/tutorial/calculator.hx gen-haxe/shared/shared_service.hx: $(top_srcdir)/tutorial/tutorial.thrift |
| 25 | $(THRIFT) --gen haxe -r $< |
| 26 | |
Oleksii Prudkyi | 39a09ac | 2016-05-19 16:55:11 +0300 | [diff] [blame] | 27 | all-local: $(BIN_CPP) $(BIN_PHP) $(BIN_PHP_WEB) |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 28 | |
| 29 | check: gen-haxe/tutorial/calculator.hx |
| 30 | |
Oleksii Prudkyi | 39a09ac | 2016-05-19 16:55:11 +0300 | [diff] [blame] | 31 | $(BIN_CPP): \ |
Jens Geyer | bbd6fd7 | 2015-05-30 19:33:44 +0200 | [diff] [blame] | 32 | src/*.hx \ |
| 33 | ../../lib/haxe/src/org/apache/thrift/**/*.hx \ |
| 34 | gen-haxe/tutorial/calculator.hx |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 35 | $(HAXE) --cwd . cpp.hxml |
Jens Geyer | fea00ac | 2014-10-01 02:22:48 +0200 | [diff] [blame] | 36 | |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame] | 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 | |
Oleksii Prudkyi | 39a09ac | 2016-05-19 16:55:11 +0300 | [diff] [blame] | 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 | |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 49 | tutorialserver: all |
Oleksii Prudkyi | 39a09ac | 2016-05-19 16:55:11 +0300 | [diff] [blame] | 50 | $(BIN_CPP) server |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 51 | |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame] | 52 | tutorialserver_php: all |
| 53 | php -f $(BIN_PHP) server |
| 54 | |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 55 | tutorialclient: all |
Oleksii Prudkyi | 39a09ac | 2016-05-19 16:55:11 +0300 | [diff] [blame] | 56 | $(BIN_CPP) |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 57 | |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame] | 58 | tutorialclient_php: all |
| 59 | php -f $(BIN_PHP) |
| 60 | |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 61 | tutorialsecureserver: all |
Oleksii Prudkyi | 39a09ac | 2016-05-19 16:55:11 +0300 | [diff] [blame] | 62 | $(BIN_CPP) server secure |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 63 | |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame] | 64 | tutorialsecureserver_php: all |
| 65 | php -f $(BIN_PHP) server secure |
| 66 | |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 67 | tutorialsecureclient: all |
Oleksii Prudkyi | 39a09ac | 2016-05-19 16:55:11 +0300 | [diff] [blame] | 68 | $(BIN_CPP) secure |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 69 | |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame] | 70 | tutorialsecureclient_php: all |
| 71 | php -f $(BIN_PHP) secure |
| 72 | |
Oleksii Prudkyi | 39a09ac | 2016-05-19 16:55:11 +0300 | [diff] [blame] | 73 | tutorialserver_php_http: all |
| 74 | php -S 127.0.0.1:9090 router.php |
| 75 | |
| 76 | tutorialclient_http: all |
| 77 | $(BIN_CPP) client http |
| 78 | |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 79 | clean-local: |
| 80 | $(RM) -r gen-haxe bin |
| 81 | |
Thomas | 63f0458 | 2024-03-21 22:51:07 +0900 | [diff] [blame] | 82 | distdir: |
| 83 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
| 84 | |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 85 | EXTRA_DIST = \ |
Jens Geyer | f3a2974 | 2017-11-30 22:30:03 +0100 | [diff] [blame] | 86 | 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 |