blob: e84a57aec7e238959bc80227f2a05b5f1277c545 [file] [log] [blame]
Volodymyr Gotrab587a122016-09-14 19:18:48 -05001#
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
20SUBDIRS = .
21
22THRIFT = $(top_builddir)/compiler/cpp/thrift
23
24GENDIR = ThriftTest/gen-netcore
25
Volodymyr Gotrab587a122016-09-14 19:18:48 -050026THRIFTCODE = \
27 ThriftTest/TestClient.cs \
28 ThriftTest/TestServer.cs \
29 ThriftTest/Properties/AssemblyInfo.cs \
30 ThriftTest/Program.cs
31
32all-local: \
James E. King, IIIb6287362017-09-28 11:57:42 +000033 ThriftTest/stage/ThriftTest.dll
Volodymyr Gotrab587a122016-09-14 19:18:48 -050034
James E. King, IIIb6287362017-09-28 11:57:42 +000035ThriftTest/stage/ThriftTest.dll: $(THRIFTCODE)
Volodymyr Gotrab587a122016-09-14 19:18:48 -050036 $(MKDIR_P) $(GENDIR)
37 $(THRIFT) -gen netcore:wcf -r -out $(GENDIR) $(top_srcdir)/test/ThriftTest.thrift
Volodymyr Gotrab587a122016-09-14 19:18:48 -050038 $(DOTNETCORE) --info
39 $(DOTNETCORE) restore
James E. King, IIIb6287362017-09-28 11:57:42 +000040 $(DOTNETCORE) build
41
42precross: \
43 ThriftTest/stage/ThriftTest.dll
Volodymyr Gotrab587a122016-09-14 19:18:48 -050044
45clean-local:
46 $(RM) ThriftTest.exe
47 $(RM) -r $(GENDIR)
48 $(RM) -r ThriftTest/bin
49 $(RM) -r ThriftTest/obj
Volodymyr Gotrab587a122016-09-14 19:18:48 -050050
51EXTRA_DIST = \
52 $(THRIFTCODE) \
James E. King, IIIb6287362017-09-28 11:57:42 +000053 ThriftTest.sln \
54 ThriftTest/ThriftTest.csproj \
Volodymyr Gotrab587a122016-09-14 19:18:48 -050055 build.cmd \
James E. King, IIIb6287362017-09-28 11:57:42 +000056 build.sh \
57 README.md
Volodymyr Gotrab587a122016-09-14 19:18:48 -050058