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_srcdir)/compiler/cpp/thrift |
| 21 | THRIFTCMD = $(THRIFT) --gen haxe -r |
| 22 | THRIFTTEST = $(top_srcdir)/test/ThriftTest.thrift |
| 23 | |
| 24 | BIN_CPP = bin/Main-debug |
| 25 | |
Jens Geyer | fea00ac | 2014-10-01 02:22:48 +0200 | [diff] [blame] | 26 | gen-haxe/thrift/test/ThriftTest.hx: $(THRIFTTEST) |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 27 | $(THRIFTCMD) $(THRIFTTEST) |
Jens Geyer | fea00ac | 2014-10-01 02:22:48 +0200 | [diff] [blame] | 28 | |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 29 | all-local: $(BIN_CPP) |
Jens Geyer | fea00ac | 2014-10-01 02:22:48 +0200 | [diff] [blame] | 30 | |
| 31 | $(BIN_CPP): gen-haxe/thrift/test/ThriftTest.hx |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 32 | $(HAXE) --cwd . cpp.hxml |
| 33 | |
Jens Geyer | fea00ac | 2014-10-01 02:22:48 +0200 | [diff] [blame] | 34 | |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 35 | #TODO: other haxe targets |
Jens Geyer | fea00ac | 2014-10-01 02:22:48 +0200 | [diff] [blame] | 36 | # $(HAXE) --cwd . csharp |
| 37 | # $(HAXE) --cwd . flash |
| 38 | # $(HAXE) --cwd . java |
| 39 | # $(HAXE) --cwd . javascript |
| 40 | # $(HAXE) --cwd . neko |
| 41 | # $(HAXE) --cwd . php |
| 42 | # $(HAXE) --cwd . python # needs Haxe 3.1.4 |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 43 | |
| 44 | |
| 45 | clean-local: |
| 46 | $(RM) -r gen-haxe bin |
| 47 | |
| 48 | check: $(BIN_CPP) |
Jens Geyer | 8c8e9c6 | 2014-12-29 19:52:47 +0100 | [diff] [blame] | 49 | timeout 10 $(BIN_CPP) server & |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 50 | sleep 1 |
| 51 | $(BIN_CPP) client |
Jens Geyer | 8c8e9c6 | 2014-12-29 19:52:47 +0100 | [diff] [blame] | 52 | sleep 10 |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 53 | |
Jens Geyer | 65e9bde | 2014-11-11 01:30:02 +0100 | [diff] [blame] | 54 | EXTRA_DIST = \ |
| 55 | src \ |
| 56 | cpp.hxml \ |
| 57 | csharp.hxml \ |
| 58 | flash.hxml \ |
| 59 | java.hxml \ |
| 60 | javascript.hxml \ |
| 61 | neko.hxml \ |
| 62 | php.hxml \ |
| 63 | python.hxml \ |
| 64 | project.hide \ |
| 65 | TestClientServer.hxproj \ |
| 66 | make_all.bat \ |
| 67 | make_all.sh |