blob: d89b22c75708e3b78a62403a117309defcf0fccd [file] [log] [blame]
Roger Meier213a6642010-10-27 12:30:11 +00001#
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 = . test
21
22pkgconfigdir = $(libdir)/pkgconfig
23
24lib_LTLIBRARIES = libthrift_c_glib.la
25pkgconfig_DATA = thrift_c_glib.pc
26
Roger Meier49ff8b12012-04-13 09:12:31 +000027common_cflags = -g -Wall -W -Werror -Isrc -I src/thrift $(GLIB_CFLAGS)
Roger Meier213a6642010-10-27 12:30:11 +000028common_ldflags = -g -Wall -W $(GLIB_LDFLAGS) @GCOV_LDFLAGS@
29
30# this removes optimizations and adds coverage flags
31CFLAGS = @GCOV_CFLAGS@
32
33# Define the source files for the module
34
Roger Meier49ff8b12012-04-13 09:12:31 +000035libthrift_c_glib_la_SOURCES = src/thrift/thrift.c \
36 src/thrift/thrift_struct.c \
37 src/thrift/thrift_application_exception.c \
38 src/thrift/processor/thrift_processor.c \
39 src/thrift/protocol/thrift_protocol.c \
40 src/thrift/protocol/thrift_protocol_factory.c \
41 src/thrift/protocol/thrift_binary_protocol.c \
42 src/thrift/protocol/thrift_binary_protocol_factory.c \
43 src/thrift/transport/thrift_transport.c \
44 src/thrift/transport/thrift_transport_factory.c \
45 src/thrift/transport/thrift_socket.c \
46 src/thrift/transport/thrift_server_transport.c \
47 src/thrift/transport/thrift_server_socket.c \
48 src/thrift/transport/thrift_buffered_transport.c \
49 src/thrift/transport/thrift_framed_transport.c \
50 src/thrift/transport/thrift_memory_buffer.c \
51 src/thrift/server/thrift_server.c \
52 src/thrift/server/thrift_simple_server.c
Roger Meier213a6642010-10-27 12:30:11 +000053
54libthrift_c_glib_la_CFLAGS = $(common_cflags)
55
Jake Farrell363f6d42012-03-02 02:50:50 +000056include_thriftdir = $(includedir)/thrift/c_glib
Roger Meier213a6642010-10-27 12:30:11 +000057include_thrift_HEADERS = \
58 $(top_builddir)/config.h \
Roger Meier49ff8b12012-04-13 09:12:31 +000059 src/thrift/thrift.h \
60 src/thrift/thrift_application_exception.h \
61 src/thrift/thrift_struct.h
Roger Meier213a6642010-10-27 12:30:11 +000062
63include_protocoldir = $(include_thriftdir)/protocol
Roger Meier49ff8b12012-04-13 09:12:31 +000064include_protocol_HEADERS = src/thrift/protocol/thrift_protocol.h \
65 src/thrift/protocol/thrift_protocol_factory.h \
66 src/thrift/protocol/thrift_binary_protocol.h \
67 src/thrift/protocol/thrift_binary_protocol_factory.h
Roger Meier213a6642010-10-27 12:30:11 +000068
69include_transportdir = $(include_thriftdir)/transport
Roger Meier49ff8b12012-04-13 09:12:31 +000070include_transport_HEADERS = src/thrift/transport/thrift_buffered_transport.h \
71 src/thrift/transport/thrift_framed_transport.h \
72 src/thrift/transport/thrift_memory_buffer.h \
73 src/thrift/transport/thrift_server_socket.h \
74 src/thrift/transport/thrift_server_transport.h \
75 src/thrift/transport/thrift_socket.h \
76 src/thrift/transport/thrift_transport.h \
77 src/thrift/transport/thrift_transport_factory.h
Roger Meier213a6642010-10-27 12:30:11 +000078
79include_serverdir = $(include_thriftdir)/server
Roger Meier49ff8b12012-04-13 09:12:31 +000080include_server_HEADERS = src/thrift/server/thrift_server.h \
81 src/thrift/server/thrift_simple_server.h
Roger Meier213a6642010-10-27 12:30:11 +000082
83include_processordir = $(include_thriftdir)/processor
Roger Meier49ff8b12012-04-13 09:12:31 +000084include_processor_HEADERS = src/thrift/processor/thrift_processor.h
Roger Meier213a6642010-10-27 12:30:11 +000085
86
87EXTRA_DIST = \
88 README \
Jake Farrelle0c53162011-11-16 12:58:36 +000089 test/glib.suppress \
Roger Meier213a6642010-10-27 12:30:11 +000090 thrift_c_glib.pc.in
91
92CLEANFILES = \
93 *.gcno \
94 *.gcda