Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [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 | # |
Roger Meier | 81a1f99 | 2014-10-22 14:09:43 +0200 | [diff] [blame] | 19 | AUTOMAKE_OPTIONS = serial-tests |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 20 | SUBDIRS = . test |
| 21 | |
| 22 | pkgconfigdir = $(libdir)/pkgconfig |
| 23 | |
| 24 | lib_LTLIBRARIES = libthrift_c_glib.la |
| 25 | pkgconfig_DATA = thrift_c_glib.pc |
| 26 | |
Roger Meier | 3fa5d89 | 2014-11-02 12:19:54 +0100 | [diff] [blame] | 27 | common_cflags = -g -Wall -W -Isrc -I src/thrift/c_glib $(GLIB_CFLAGS) |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 28 | common_ldflags = -g -Wall -W $(GLIB_LDFLAGS) @GCOV_LDFLAGS@ |
| 29 | |
| 30 | # this removes optimizations and adds coverage flags |
| 31 | CFLAGS = @GCOV_CFLAGS@ |
| 32 | |
| 33 | # Define the source files for the module |
| 34 | |
Roger Meier | e3da768 | 2013-01-11 11:41:53 +0100 | [diff] [blame] | 35 | libthrift_c_glib_la_SOURCES = src/thrift/c_glib/thrift.c \ |
| 36 | src/thrift/c_glib/thrift_struct.c \ |
| 37 | src/thrift/c_glib/thrift_application_exception.c \ |
| 38 | src/thrift/c_glib/processor/thrift_processor.c \ |
Roger Meier | 63243c6 | 2014-09-29 20:29:58 +0200 | [diff] [blame] | 39 | src/thrift/c_glib/processor/thrift_dispatch_processor.c \ |
Roger Meier | e3da768 | 2013-01-11 11:41:53 +0100 | [diff] [blame] | 40 | src/thrift/c_glib/protocol/thrift_protocol.c \ |
| 41 | src/thrift/c_glib/protocol/thrift_protocol_factory.c \ |
| 42 | src/thrift/c_glib/protocol/thrift_binary_protocol.c \ |
| 43 | src/thrift/c_glib/protocol/thrift_binary_protocol_factory.c \ |
| 44 | src/thrift/c_glib/transport/thrift_transport.c \ |
| 45 | src/thrift/c_glib/transport/thrift_transport_factory.c \ |
Roger Meier | 63243c6 | 2014-09-29 20:29:58 +0200 | [diff] [blame] | 46 | src/thrift/c_glib/transport/thrift_buffered_transport_factory.c \ |
| 47 | src/thrift/c_glib/transport/thrift_framed_transport_factory.c \ |
Roger Meier | e3da768 | 2013-01-11 11:41:53 +0100 | [diff] [blame] | 48 | src/thrift/c_glib/transport/thrift_socket.c \ |
| 49 | src/thrift/c_glib/transport/thrift_server_transport.c \ |
| 50 | src/thrift/c_glib/transport/thrift_server_socket.c \ |
| 51 | src/thrift/c_glib/transport/thrift_buffered_transport.c \ |
| 52 | src/thrift/c_glib/transport/thrift_framed_transport.c \ |
| 53 | src/thrift/c_glib/transport/thrift_memory_buffer.c \ |
| 54 | src/thrift/c_glib/server/thrift_server.c \ |
| 55 | src/thrift/c_glib/server/thrift_simple_server.c |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 56 | |
| 57 | libthrift_c_glib_la_CFLAGS = $(common_cflags) |
| 58 | |
Jake Farrell | 363f6d4 | 2012-03-02 02:50:50 +0000 | [diff] [blame] | 59 | include_thriftdir = $(includedir)/thrift/c_glib |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 60 | include_thrift_HEADERS = \ |
| 61 | $(top_builddir)/config.h \ |
Roger Meier | e3da768 | 2013-01-11 11:41:53 +0100 | [diff] [blame] | 62 | src/thrift/c_glib/thrift.h \ |
| 63 | src/thrift/c_glib/thrift_application_exception.h \ |
| 64 | src/thrift/c_glib/thrift_struct.h |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 65 | |
| 66 | include_protocoldir = $(include_thriftdir)/protocol |
Roger Meier | e3da768 | 2013-01-11 11:41:53 +0100 | [diff] [blame] | 67 | include_protocol_HEADERS = src/thrift/c_glib/protocol/thrift_protocol.h \ |
| 68 | src/thrift/c_glib/protocol/thrift_protocol_factory.h \ |
| 69 | src/thrift/c_glib/protocol/thrift_binary_protocol.h \ |
| 70 | src/thrift/c_glib/protocol/thrift_binary_protocol_factory.h |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 71 | |
| 72 | include_transportdir = $(include_thriftdir)/transport |
Roger Meier | e3da768 | 2013-01-11 11:41:53 +0100 | [diff] [blame] | 73 | include_transport_HEADERS = src/thrift/c_glib/transport/thrift_buffered_transport.h \ |
| 74 | src/thrift/c_glib/transport/thrift_framed_transport.h \ |
| 75 | src/thrift/c_glib/transport/thrift_memory_buffer.h \ |
| 76 | src/thrift/c_glib/transport/thrift_server_socket.h \ |
| 77 | src/thrift/c_glib/transport/thrift_server_transport.h \ |
| 78 | src/thrift/c_glib/transport/thrift_socket.h \ |
| 79 | src/thrift/c_glib/transport/thrift_transport.h \ |
Roger Meier | 63243c6 | 2014-09-29 20:29:58 +0200 | [diff] [blame] | 80 | src/thrift/c_glib/transport/thrift_transport_factory.h \ |
| 81 | src/thrift/c_glib/transport/thrift_buffered_transport_factory.h \ |
| 82 | src/thrift/c_glib/transport/thrift_framed_transport_factory.h |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 83 | |
| 84 | include_serverdir = $(include_thriftdir)/server |
Roger Meier | e3da768 | 2013-01-11 11:41:53 +0100 | [diff] [blame] | 85 | include_server_HEADERS = src/thrift/c_glib/server/thrift_server.h \ |
| 86 | src/thrift/c_glib/server/thrift_simple_server.h |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 87 | |
| 88 | include_processordir = $(include_thriftdir)/processor |
Roger Meier | 63243c6 | 2014-09-29 20:29:58 +0200 | [diff] [blame] | 89 | include_processor_HEADERS = src/thrift/c_glib/processor/thrift_processor.h \ |
| 90 | src/thrift/c_glib/processor/thrift_dispatch_processor.h |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 91 | |
| 92 | |
| 93 | EXTRA_DIST = \ |
Roger Meier | 16fcad0 | 2014-03-16 21:12:11 +0100 | [diff] [blame] | 94 | README.md \ |
Jake Farrell | e0c5316 | 2011-11-16 12:58:36 +0000 | [diff] [blame] | 95 | test/glib.suppress \ |
Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 96 | thrift_c_glib.pc.in |
| 97 | |
| 98 | CLEANFILES = \ |
| 99 | *.gcno \ |
| 100 | *.gcda |