]>
Commit | Line | Data |
---|---|---|
f67539c2 TL |
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 | AUTOMAKE_OPTIONS = subdir-objects serial-tests nostdinc | |
20 | ||
21 | BUILT_SOURCES = \ | |
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 | |
26 | ||
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@ | |
30 | ||
31 | noinst_LTLIBRARIES = \ | |
32 | libtutorialgencglib.la | |
33 | ||
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 | |
43 | ||
44 | libtutorialgencglib_la_LIBADD = \ | |
45 | $(top_builddir)/lib/c_glib/libthrift_c_glib.la | |
46 | ||
47 | libtutorialgencglib_la_CFLAGS = \ | |
48 | $(AM_CFLAGS) -Wno-unused-function | |
49 | ||
50 | noinst_PROGRAMS = \ | |
51 | tutorial_server \ | |
52 | tutorial_client | |
53 | ||
54 | tutorial_server_SOURCES = \ | |
55 | c_glib_server.c | |
56 | tutorial_server_LDFLAGS = $(OPENSSL_LIBS) | |
57 | ||
58 | tutorial_server_LDADD = \ | |
59 | libtutorialgencglib.la \ | |
60 | $(top_builddir)/lib/c_glib/libthrift_c_glib.la | |
61 | ||
62 | tutorial_client_SOURCES = \ | |
63 | c_glib_client.c | |
64 | ||
65 | tutorial_client_LDADD = \ | |
66 | libtutorialgencglib.la \ | |
67 | $(top_builddir)/lib/c_glib/libthrift_c_glib.la | |
68 | ||
69 | ||
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 $< | |
72 | ||
73 | clean-local: | |
74 | $(RM) gen-c_glib/* | |
75 | ||
76 | tutorialserver: all | |
77 | ./tutorial_server | |
78 | ||
79 | tutorialclient: all | |
80 | ./tutorial_client | |
81 | ||
82 | EXTRA_DIST = \ | |
83 | c_glib_server.c \ | |
84 | c_glib_client.c |