blob: 1dc8c167f783284836ab4faff9afb8b234421895 [file] [log] [blame]
Roger Meierb3c84092014-09-01 21:53:40 +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.NOTPARALLEL:
20noinst_LTLIBRARIES = libtestcglib.la
21nodist_libtestcglib_la_SOURCES = \
22 gen-c_glib/t_test_second_service.c \
23 gen-c_glib/t_test_second_service.h \
24 gen-c_glib/t_test_thrift_test.c \
25 gen-c_glib/t_test_thrift_test.h \
26 gen-c_glib/t_test_thrift_test_types.c \
27 gen-c_glib/t_test_thrift_test_types.h
28
29libtestcglib_la_LIBADD = $(top_builddir)/lib/c_glib/libthrift_c_glib.la
30
31check_PROGRAMS = \
32 test_client
33
34test_client_SOURCES = \
35 src/test_client.c
36
37test_client_LDADD = \
38 libtestcglib.la \
39 $(top_builddir)/lib/c_glib/libthrift_c_glib.la
40
41#
42# Common thrift code generation rules
43#
44THRIFT = $(top_builddir)/compiler/cpp/thrift
45
46gen-c_glib/t_test_second_service.c gen-c_glib/t_test_second_service.h gen-c_glib/t_test_thrift_test.c gen-c_glib/t_test_thrift_test.h gen-c_glib/t_test_thrift_test_types.c gen-c_glib/t_test_thrift_test_types.h: $(top_srcdir)/test/ThriftTest.thrift
47 $(THRIFT) --gen c_glib -r $<
48
49AM_CFLAGS = -g -Wall -Wextra $(GLIB_CFLAGS) $(GOBJECT_CFLAGS)
50AM_CXXFLAGS = $(AM_CFLAGS)
51AM_CPPFLAGS = -I$(top_srcdir)/lib/c_glib/src -Igen-c_glib
52AM_LDFLAGS = $(GLIB_LIBS) $(GOBJECT_LIBS) @GCOV_LDFLAGS@
53
54clean-local:
55 $(RM) -r gen-c_glib
56
57EXTRA_DIST = \
58 src/test_client.c