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
10 # http://www.apache.org/licenses/LICENSE-2.0
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
19 AUTOMAKE_OPTIONS = subdir-objects serial-tests nostdinc
22 gen-c_glib/calculator.h \
23 gen-c_glib/shared_service.h \
24 gen-c_glib/shared_types.h \
25 gen-c_glib/tutorial_types.h
27 AM_CFLAGS = -g -Wall -Wextra -pedantic $(GLIB_CFLAGS) $(GOBJECT_CFLAGS) $(OPENSSL_INCLUDES) @GCOV_CFLAGS@ -I$(top_builddir)/lib/c_glib/src/thrift
28 AM_CPPFLAGS = -I$(top_srcdir)/lib/c_glib/src -Igen-c_glib
29 AM_LDFLAGS = $(GLIB_LIBS) $(GOBJECT_LIBS) $(OPENSSL_LDFLAGS) $(OPENSSL_LIBS) @GCOV_LDFLAGS@
31 noinst_LTLIBRARIES = \
32 libtutorialgencglib.la
34 nodist_libtutorialgencglib_la_SOURCES = \
35 gen-c_glib/calculator.c \
36 gen-c_glib/calculator.h \
37 gen-c_glib/shared_service.c \
38 gen-c_glib/shared_service.h \
39 gen-c_glib/shared_types.c \
40 gen-c_glib/shared_types.h \
41 gen-c_glib/tutorial_types.c \
42 gen-c_glib/tutorial_types.h
44 libtutorialgencglib_la_LIBADD = \
45 $(top_builddir)/lib/c_glib/libthrift_c_glib.la
47 libtutorialgencglib_la_CFLAGS = \
48 $(AM_CFLAGS) -Wno-unused-function
54 tutorial_server_SOURCES = \
56 tutorial_server_LDFLAGS = $(OPENSSL_LIBS)
58 tutorial_server_LDADD = \
59 libtutorialgencglib.la \
60 $(top_builddir)/lib/c_glib/libthrift_c_glib.la
62 tutorial_client_SOURCES = \
65 tutorial_client_LDADD = \
66 libtutorialgencglib.la \
67 $(top_builddir)/lib/c_glib/libthrift_c_glib.la
70 gen-c_glib/calculator.c gen-c_glib/calculator.h gen-c_glib/shared_service.c gen-c_glib/shared_service.h gen-c_glib/shared_types.c gen-c_glib/shared_types.h gen-c_glib/tutorial_types.c gen-c_glib/tutorial_types.h: $(top_srcdir)/tutorial/tutorial.thrift
71 $(THRIFT) --gen c_glib -r $<