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 | # |
Kevin Wojniak | a392566 | 2019-07-01 11:07:45 -0700 | [diff] [blame] | 19 | AUTOMAKE_OPTIONS = subdir-objects serial-tests nostdinc |
Roger Meier | 81a1f99 | 2014-10-22 14:09:43 +0200 | [diff] [blame] | 20 | |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 21 | noinst_LTLIBRARIES = libtestcglib.la |
| 22 | nodist_libtestcglib_la_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 23 | gen-c_glib/t_test_second_service.c \ |
| 24 | gen-c_glib/t_test_second_service.h \ |
| 25 | gen-c_glib/t_test_thrift_test.c \ |
| 26 | gen-c_glib/t_test_thrift_test.h \ |
| 27 | gen-c_glib/t_test_thrift_test_types.c \ |
| 28 | gen-c_glib/t_test_thrift_test_types.h |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 29 | |
| 30 | libtestcglib_la_LIBADD = $(top_builddir)/lib/c_glib/libthrift_c_glib.la |
| 31 | |
Randy Abernethy | 983bf7d | 2015-10-09 12:28:57 -0700 | [diff] [blame] | 32 | precross: libtestcglib.la test_client test_server |
Roger Meier | 41ad434 | 2015-03-24 22:30:40 +0100 | [diff] [blame] | 33 | |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 34 | check_PROGRAMS = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 35 | test_client \ |
| 36 | test_server |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 37 | |
| 38 | test_client_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 39 | src/test_client.c |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 40 | |
| 41 | test_client_LDADD = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 42 | libtestcglib.la \ |
| 43 | $(top_builddir)/lib/c_glib/libthrift_c_glib.la |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 44 | |
Roger Meier | 15df076 | 2014-09-29 20:50:56 +0200 | [diff] [blame] | 45 | test_server_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 46 | src/thrift_test_handler.c \ |
| 47 | src/thrift_test_handler.h \ |
Gonzalo Aguilar Delgado | 87ad2bc | 2017-09-15 12:26:02 +0200 | [diff] [blame] | 48 | src/thrift_second_service_handler.c \ |
| 49 | src/thrift_second_service_handler.h \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 50 | src/test_server.c |
Roger Meier | 15df076 | 2014-09-29 20:50:56 +0200 | [diff] [blame] | 51 | |
| 52 | test_server_LDADD = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 53 | libtestcglib.la \ |
| 54 | $(top_builddir)/lib/c_glib/libthrift_c_glib.la |
Roger Meier | 15df076 | 2014-09-29 20:50:56 +0200 | [diff] [blame] | 55 | |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 56 | # |
| 57 | # Common thrift code generation rules |
| 58 | # |
Jens Geyer | f066d84 | 2022-06-13 23:37:25 +0200 | [diff] [blame] | 59 | 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/v0.16/ThriftTest.thrift $(THRIFT) |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 60 | $(THRIFT) --gen c_glib -r $< |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 61 | |
| 62 | AM_CFLAGS = -g -Wall -Wextra $(GLIB_CFLAGS) $(GOBJECT_CFLAGS) |
| 63 | AM_CXXFLAGS = $(AM_CFLAGS) |
Kevin Wojniak | a392566 | 2019-07-01 11:07:45 -0700 | [diff] [blame] | 64 | AM_CPPFLAGS = -I$(top_srcdir)/lib/c_glib/src -Igen-c_glib -I$(top_builddir)/lib/c_glib/src/thrift |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 65 | AM_LDFLAGS = $(GLIB_LIBS) $(GOBJECT_LIBS) @GCOV_LDFLAGS@ |
| 66 | |
| 67 | clean-local: |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 68 | $(RM) -r gen-c_glib/ |
| 69 | $(RM) test_client |
| 70 | $(RM) test_server |
| 71 | $(RM) libtestcglib.la |
| 72 | find . -type f -iname "*.o" | xargs rm -f |
| 73 | |
| 74 | dist-hook: |
| 75 | $(RM) -r $(distdir)/gen-c_glib/ |
| 76 | $(RM) $(distdir)/test_client |
| 77 | $(RM) $(distdir)/test_server |
| 78 | $(RM) $(distdir)/libtestcglib.la |
| 79 | find $(distdir) -type f -iname "*.o" | xargs rm -f |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 80 | |
Thomas | 63f0458 | 2024-03-21 22:51:07 +0900 | [diff] [blame] | 81 | distdir: |
| 82 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
| 83 | |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 84 | EXTRA_DIST = \ |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 85 | src |