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 |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame^] | 21 | BIN_PHP = bin/php/Main-debug.php |
| 22 | |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 23 | |
| 24 | gen-haxe/tutorial/calculator.hx gen-haxe/shared/shared_service.hx: $(top_srcdir)/tutorial/tutorial.thrift |
| 25 | $(THRIFT) --gen haxe -r $< |
| 26 | |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame^] | 27 | all-local: bin/Main-debug $(BIN_PHP) |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 28 | |
| 29 | check: gen-haxe/tutorial/calculator.hx |
| 30 | |
Jens Geyer | bbd6fd7 | 2015-05-30 19:33:44 +0200 | [diff] [blame] | 31 | bin/Main-debug: \ |
| 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 | |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 43 | tutorialserver: all |
| 44 | bin/Main-debug server |
| 45 | |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame^] | 46 | tutorialserver_php: all |
| 47 | php -f $(BIN_PHP) server |
| 48 | |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 49 | tutorialclient: all |
Jens Geyer | fea00ac | 2014-10-01 02:22:48 +0200 | [diff] [blame] | 50 | bin/Main-debug |
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 | tutorialclient_php: all |
| 53 | php -f $(BIN_PHP) |
| 54 | |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 55 | tutorialsecureserver: all |
| 56 | bin/Main-debug server secure |
| 57 | |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame^] | 58 | tutorialsecureserver_php: all |
| 59 | php -f $(BIN_PHP) server secure |
| 60 | |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 61 | tutorialsecureclient: all |
| 62 | bin/Main-debug secure |
| 63 | |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame^] | 64 | tutorialsecureclient_php: all |
| 65 | php -f $(BIN_PHP) secure |
| 66 | |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 67 | clean-local: |
| 68 | $(RM) -r gen-haxe bin |
| 69 | |
| 70 | EXTRA_DIST = \ |
Jens Geyer | 65e9bde | 2014-11-11 01:30:02 +0100 | [diff] [blame] | 71 | src \ |
| 72 | cpp.hxml \ |
| 73 | csharp.hxml \ |
| 74 | flash.hxml \ |
| 75 | java.hxml \ |
| 76 | javascript.hxml \ |
| 77 | neko.hxml \ |
| 78 | php.hxml \ |
| 79 | python.hxml \ |
| 80 | project.hide \ |
| 81 | Tutorial.hxproj \ |
| 82 | make_all.bat \ |
| 83 | make_all.sh |