Roger Meier | b3c8409 | 2014-09-01 21:53:40 +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 | .NOTPARALLEL: |
| 20 | noinst_LTLIBRARIES = libtestcglib.la |
| 21 | nodist_libtestcglib_la_SOURCES = \ |
Jens Geyer | aaa8947 | 2014-10-03 20:22:28 +0200 | [diff] [blame^] | 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 |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 28 | |
| 29 | libtestcglib_la_LIBADD = $(top_builddir)/lib/c_glib/libthrift_c_glib.la |
| 30 | |
| 31 | check_PROGRAMS = \ |
Jens Geyer | aaa8947 | 2014-10-03 20:22:28 +0200 | [diff] [blame^] | 32 | test_client \ |
| 33 | test_server |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 34 | |
| 35 | test_client_SOURCES = \ |
Jens Geyer | aaa8947 | 2014-10-03 20:22:28 +0200 | [diff] [blame^] | 36 | src/test_client.c |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 37 | |
| 38 | test_client_LDADD = \ |
Jens Geyer | aaa8947 | 2014-10-03 20:22:28 +0200 | [diff] [blame^] | 39 | libtestcglib.la \ |
| 40 | $(top_builddir)/lib/c_glib/libthrift_c_glib.la |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 41 | |
Roger Meier | 15df076 | 2014-09-29 20:50:56 +0200 | [diff] [blame] | 42 | test_server_SOURCES = \ |
Jens Geyer | aaa8947 | 2014-10-03 20:22:28 +0200 | [diff] [blame^] | 43 | src/thrift_test_handler.c \ |
| 44 | src/thrift_test_handler.h \ |
| 45 | src/test_server.c |
Roger Meier | 15df076 | 2014-09-29 20:50:56 +0200 | [diff] [blame] | 46 | |
| 47 | test_server_LDADD = \ |
Jens Geyer | aaa8947 | 2014-10-03 20:22:28 +0200 | [diff] [blame^] | 48 | libtestcglib.la \ |
| 49 | $(top_builddir)/lib/c_glib/libthrift_c_glib.la |
Roger Meier | 15df076 | 2014-09-29 20:50:56 +0200 | [diff] [blame] | 50 | |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 51 | # |
| 52 | # Common thrift code generation rules |
| 53 | # |
| 54 | THRIFT = $(top_builddir)/compiler/cpp/thrift |
| 55 | |
| 56 | gen-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 |
Jens Geyer | aaa8947 | 2014-10-03 20:22:28 +0200 | [diff] [blame^] | 57 | $(THRIFT) --gen c_glib -r $< |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 58 | |
| 59 | AM_CFLAGS = -g -Wall -Wextra $(GLIB_CFLAGS) $(GOBJECT_CFLAGS) |
| 60 | AM_CXXFLAGS = $(AM_CFLAGS) |
| 61 | AM_CPPFLAGS = -I$(top_srcdir)/lib/c_glib/src -Igen-c_glib |
| 62 | AM_LDFLAGS = $(GLIB_LIBS) $(GOBJECT_LIBS) @GCOV_LDFLAGS@ |
| 63 | |
| 64 | clean-local: |
Jens Geyer | aaa8947 | 2014-10-03 20:22:28 +0200 | [diff] [blame^] | 65 | $(RM) -r gen-c_glib |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 66 | |
| 67 | EXTRA_DIST = \ |
Jens Geyer | aaa8947 | 2014-10-03 20:22:28 +0200 | [diff] [blame^] | 68 | src/test_client.c \ |
| 69 | src/thrift_test_handler.c \ |
| 70 | src/thrift_test_handler.h \ |
| 71 | src/test_server.c |