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 | |
| 20 | THRIFT = $(top_builddir)/compiler/cpp/thrift |
Oleksii Prudkyi | 39a09ac | 2016-05-19 16:55:11 +0300 | [diff] [blame] | 21 | |
| 22 | BIN_CPP = bin/Main-debug |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame] | 23 | BIN_PHP = bin/php/Main-debug.php |
Oleksii Prudkyi | 39a09ac | 2016-05-19 16:55:11 +0300 | [diff] [blame] | 24 | BIN_PHP_WEB = bin/php-web-server/Main-debug.php |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame] | 25 | |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 26 | |
| 27 | gen-haxe/tutorial/calculator.hx gen-haxe/shared/shared_service.hx: $(top_srcdir)/tutorial/tutorial.thrift |
| 28 | $(THRIFT) --gen haxe -r $< |
| 29 | |
Oleksii Prudkyi | 39a09ac | 2016-05-19 16:55:11 +0300 | [diff] [blame] | 30 | all-local: $(BIN_CPP) $(BIN_PHP) $(BIN_PHP_WEB) |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 31 | |
| 32 | check: gen-haxe/tutorial/calculator.hx |
| 33 | |
Oleksii Prudkyi | 39a09ac | 2016-05-19 16:55:11 +0300 | [diff] [blame] | 34 | $(BIN_CPP): \ |
Jens Geyer | bbd6fd7 | 2015-05-30 19:33:44 +0200 | [diff] [blame] | 35 | src/*.hx \ |
| 36 | ../../lib/haxe/src/org/apache/thrift/**/*.hx \ |
| 37 | gen-haxe/tutorial/calculator.hx |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 38 | $(HAXE) --cwd . cpp.hxml |
Jens Geyer | fea00ac | 2014-10-01 02:22:48 +0200 | [diff] [blame] | 39 | |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame] | 40 | $(BIN_PHP): \ |
| 41 | src/*.hx \ |
| 42 | ../../lib/haxe/src/org/apache/thrift/**/*.hx \ |
| 43 | gen-haxe/tutorial/calculator.hx |
| 44 | $(HAXE) --cwd . php.hxml |
| 45 | |
Oleksii Prudkyi | 39a09ac | 2016-05-19 16:55:11 +0300 | [diff] [blame] | 46 | $(BIN_PHP_WEB): \ |
| 47 | src/*.hx \ |
| 48 | ../../lib/haxe/src/org/apache/thrift/**/*.hx \ |
| 49 | gen-haxe/tutorial/calculator.hx |
| 50 | $(HAXE) --cwd . php-web-server.hxml |
| 51 | |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 52 | tutorialserver: all |
Oleksii Prudkyi | 39a09ac | 2016-05-19 16:55:11 +0300 | [diff] [blame] | 53 | $(BIN_CPP) server |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 54 | |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame] | 55 | tutorialserver_php: all |
| 56 | php -f $(BIN_PHP) server |
| 57 | |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 58 | tutorialclient: all |
Oleksii Prudkyi | 39a09ac | 2016-05-19 16:55:11 +0300 | [diff] [blame] | 59 | $(BIN_CPP) |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 60 | |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame] | 61 | tutorialclient_php: all |
| 62 | php -f $(BIN_PHP) |
| 63 | |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 64 | tutorialsecureserver: all |
Oleksii Prudkyi | 39a09ac | 2016-05-19 16:55:11 +0300 | [diff] [blame] | 65 | $(BIN_CPP) server secure |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 66 | |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame] | 67 | tutorialsecureserver_php: all |
| 68 | php -f $(BIN_PHP) server secure |
| 69 | |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 70 | tutorialsecureclient: all |
Oleksii Prudkyi | 39a09ac | 2016-05-19 16:55:11 +0300 | [diff] [blame] | 71 | $(BIN_CPP) secure |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 72 | |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame] | 73 | tutorialsecureclient_php: all |
| 74 | php -f $(BIN_PHP) secure |
| 75 | |
Oleksii Prudkyi | 39a09ac | 2016-05-19 16:55:11 +0300 | [diff] [blame] | 76 | tutorialserver_php_http: all |
| 77 | php -S 127.0.0.1:9090 router.php |
| 78 | |
| 79 | tutorialclient_http: all |
| 80 | $(BIN_CPP) client http |
| 81 | |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 82 | clean-local: |
| 83 | $(RM) -r gen-haxe bin |
| 84 | |
| 85 | EXTRA_DIST = \ |
Jens Geyer | 65e9bde | 2014-11-11 01:30:02 +0100 | [diff] [blame] | 86 | src \ |
| 87 | cpp.hxml \ |
| 88 | csharp.hxml \ |
| 89 | flash.hxml \ |
| 90 | java.hxml \ |
| 91 | javascript.hxml \ |
| 92 | neko.hxml \ |
| 93 | php.hxml \ |
| 94 | python.hxml \ |
| 95 | project.hide \ |
| 96 | Tutorial.hxproj \ |
| 97 | make_all.bat \ |
| 98 | make_all.sh |