blob: 139bccb6628511f7fc7faa77c2e1a66c96a51b59 [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
20THRIFT = $(top_builddir)/compiler/cpp/thrift
Jens Geyer1d20a372016-03-15 23:04:27 +020021BIN_PHP = bin/php/Main-debug.php
22
Jens Geyerbd52f1a2014-07-28 01:25:30 +020023
24gen-haxe/tutorial/calculator.hx gen-haxe/shared/shared_service.hx: $(top_srcdir)/tutorial/tutorial.thrift
25 $(THRIFT) --gen haxe -r $<
26
Jens Geyer1d20a372016-03-15 23:04:27 +020027all-local: bin/Main-debug $(BIN_PHP)
Jens Geyerbd52f1a2014-07-28 01:25:30 +020028
29check: gen-haxe/tutorial/calculator.hx
30
Jens Geyerbbd6fd72015-05-30 19:33:44 +020031bin/Main-debug: \
32 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
Jens Geyerbd52f1a2014-07-28 01:25:30 +020043tutorialserver: all
44 bin/Main-debug server
45
Jens Geyer1d20a372016-03-15 23:04:27 +020046tutorialserver_php: all
47 php -f $(BIN_PHP) server
48
Jens Geyerbd52f1a2014-07-28 01:25:30 +020049tutorialclient: all
Jens Geyerfea00ac2014-10-01 02:22:48 +020050 bin/Main-debug
Jens Geyerbd52f1a2014-07-28 01:25:30 +020051
Jens Geyer1d20a372016-03-15 23:04:27 +020052tutorialclient_php: all
53 php -f $(BIN_PHP)
54
Jens Geyerbd52f1a2014-07-28 01:25:30 +020055tutorialsecureserver: all
56 bin/Main-debug server secure
57
Jens Geyer1d20a372016-03-15 23:04:27 +020058tutorialsecureserver_php: all
59 php -f $(BIN_PHP) server secure
60
Jens Geyerbd52f1a2014-07-28 01:25:30 +020061tutorialsecureclient: all
62 bin/Main-debug secure
63
Jens Geyer1d20a372016-03-15 23:04:27 +020064tutorialsecureclient_php: all
65 php -f $(BIN_PHP) secure
66
Jens Geyerbd52f1a2014-07-28 01:25:30 +020067clean-local:
68 $(RM) -r gen-haxe bin
69
70EXTRA_DIST = \
Jens Geyer65e9bde2014-11-11 01:30:02 +010071 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