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 | |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 20 | THRIFTCMD = $(THRIFT) --gen haxe -r |
| 21 | THRIFTTEST = $(top_srcdir)/test/ThriftTest.thrift |
| 22 | |
| 23 | BIN_CPP = bin/Main-debug |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame] | 24 | BIN_PHP = bin/php/Main-debug.php |
Oleksii Prudkyi | 39a09ac | 2016-05-19 16:55:11 +0300 | [diff] [blame] | 25 | BIN_PHP_WEB = bin/php-web-server/Main-debug.php |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 26 | |
Jens Geyer | fea00ac | 2014-10-01 02:22:48 +0200 | [diff] [blame] | 27 | gen-haxe/thrift/test/ThriftTest.hx: $(THRIFTTEST) |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 28 | $(THRIFTCMD) $(THRIFTTEST) |
Jens Geyer | fea00ac | 2014-10-01 02:22:48 +0200 | [diff] [blame] | 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 | fea00ac | 2014-10-01 02:22:48 +0200 | [diff] [blame] | 31 | |
Jens Geyer | bbd6fd7 | 2015-05-30 19:33:44 +0200 | [diff] [blame] | 32 | $(BIN_CPP): \ |
| 33 | src/*.hx \ |
| 34 | ../../lib/haxe/src/org/apache/thrift/**/*.hx \ |
| 35 | gen-haxe/thrift/test/ThriftTest.hx |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 36 | $(HAXE) --cwd . cpp.hxml |
Jens Geyer | 2dcefad | 2021-02-25 09:42:52 +0100 | [diff] [blame] | 37 | |
| 38 | # $(HAXE) --cwd . csharp |
| 39 | # $(HAXE) --cwd . flash |
| 40 | # $(HAXE) --cwd . java |
| 41 | # $(HAXE) --cwd . javascript |
| 42 | # $(HAXE) --cwd . neko |
| 43 | # $(HAXE) --cwd . python |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 44 | |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame] | 45 | $(BIN_PHP): \ |
| 46 | src/*.hx \ |
| 47 | ../../lib/haxe/src/org/apache/thrift/**/*.hx \ |
| 48 | gen-haxe/thrift/test/ThriftTest.hx |
| 49 | $(HAXE) --cwd . php.hxml |
| 50 | |
Oleksii Prudkyi | 39a09ac | 2016-05-19 16:55:11 +0300 | [diff] [blame] | 51 | $(BIN_PHP_WEB): \ |
| 52 | src/*.hx \ |
| 53 | ../../lib/haxe/src/org/apache/thrift/**/*.hx \ |
| 54 | gen-haxe/thrift/test/ThriftTest.hx |
| 55 | $(HAXE) --cwd . php-web-server.hxml |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame] | 56 | |
| 57 | |
Jens Geyer | fea00ac | 2014-10-01 02:22:48 +0200 | [diff] [blame] | 58 | |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 59 | clean-local: |
| 60 | $(RM) -r gen-haxe bin |
| 61 | |
Oleksii Prudkyi | 39a09ac | 2016-05-19 16:55:11 +0300 | [diff] [blame] | 62 | .NOTPARALLEL: |
| 63 | |
| 64 | check: check_cpp \ |
| 65 | check_php \ |
| 66 | check_php_web |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame] | 67 | |
| 68 | check_cpp: $(BIN_CPP) |
Oleksii Prudkyi | 39a09ac | 2016-05-19 16:55:11 +0300 | [diff] [blame] | 69 | timeout 20 $(BIN_CPP) server & |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 70 | sleep 1 |
| 71 | $(BIN_CPP) client |
Jens Geyer | 8c8e9c6 | 2014-12-29 19:52:47 +0100 | [diff] [blame] | 72 | sleep 10 |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 73 | |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame] | 74 | check_php: $(BIN_PHP) |
Oleksii Prudkyi | 39a09ac | 2016-05-19 16:55:11 +0300 | [diff] [blame] | 75 | timeout 20 php -f $(BIN_PHP) server & |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame] | 76 | sleep 1 |
| 77 | php -f $(BIN_PHP) client |
| 78 | sleep 10 |
| 79 | |
Oleksii Prudkyi | 39a09ac | 2016-05-19 16:55:11 +0300 | [diff] [blame] | 80 | check_php_web: $(BIN_PHP_WEB) $(BIN_CPP) |
| 81 | timeout 20 php -S 127.0.0.1:9090 router.php & |
| 82 | sleep 1 |
| 83 | $(BIN_CPP) client --transport http |
| 84 | sleep 10 |
| 85 | |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame] | 86 | |
Thomas | 63f0458 | 2024-03-21 22:51:07 +0900 | [diff] [blame] | 87 | distdir: |
| 88 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
| 89 | |
Jens Geyer | 65e9bde | 2014-11-11 01:30:02 +0100 | [diff] [blame] | 90 | EXTRA_DIST = \ |
Jens Geyer | f3a2974 | 2017-11-30 22:30:03 +0100 | [diff] [blame] | 91 | src \ |
| 92 | cpp.hxml \ |
| 93 | csharp.hxml \ |
| 94 | flash.hxml \ |
| 95 | java.hxml \ |
| 96 | javascript.hxml \ |
| 97 | neko.hxml \ |
| 98 | php.hxml \ |
| 99 | python.hxml \ |
| 100 | router.php \ |
| 101 | project.hide \ |
| 102 | php-web-server.hxml \ |
| 103 | TestClientServer.hxproj \ |
| 104 | make_all.bat \ |
| 105 | make_all.sh |