Roger Meier | 2814c2e | 2014-07-29 23:28:46 +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 | # |
Roger Meier | 81a1f99 | 2014-10-22 14:09:43 +0200 | [diff] [blame] | 19 | AUTOMAKE_OPTIONS = subdir-objects serial-tests |
Roger Meier | 2814c2e | 2014-07-29 23:28:46 +0200 | [diff] [blame] | 20 | |
Nobuaki Sukegawa | ef0a8fa | 2015-05-10 20:21:17 +0900 | [diff] [blame] | 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 | |
Roger Meier | 81a1f99 | 2014-10-22 14:09:43 +0200 | [diff] [blame] | 27 | AM_CFLAGS = -g -Wall -Wextra -pedantic $(GLIB_CFLAGS) $(GOBJECT_CFLAGS) @GCOV_CFLAGS@ |
Roger Meier | 2814c2e | 2014-07-29 23:28:46 +0200 | [diff] [blame] | 28 | AM_CPPFLAGS = -I$(top_srcdir)/lib/c_glib/src -Igen-c_glib |
| 29 | AM_LDFLAGS = $(GLIB_LIBS) $(GOBJECT_LIBS) @GCOV_LDFLAGS@ |
| 30 | |
| 31 | THRIFT = $(top_builddir)/compiler/cpp/thrift |
| 32 | |
Roger Meier | 2814c2e | 2014-07-29 23:28:46 +0200 | [diff] [blame] | 33 | noinst_LTLIBRARIES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 34 | libtutorialgencglib.la |
Roger Meier | 2814c2e | 2014-07-29 23:28:46 +0200 | [diff] [blame] | 35 | |
| 36 | nodist_libtutorialgencglib_la_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 37 | gen-c_glib/calculator.c \ |
| 38 | gen-c_glib/calculator.h \ |
| 39 | gen-c_glib/shared_service.c \ |
| 40 | gen-c_glib/shared_service.h \ |
| 41 | gen-c_glib/shared_types.c \ |
| 42 | gen-c_glib/shared_types.h \ |
| 43 | gen-c_glib/tutorial_types.c \ |
| 44 | gen-c_glib/tutorial_types.h |
Roger Meier | 2814c2e | 2014-07-29 23:28:46 +0200 | [diff] [blame] | 45 | |
| 46 | libtutorialgencglib_la_LIBADD = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 47 | $(top_builddir)/lib/c_glib/libthrift_c_glib.la |
Roger Meier | 2814c2e | 2014-07-29 23:28:46 +0200 | [diff] [blame] | 48 | |
| 49 | |
| 50 | noinst_PROGRAMS = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 51 | tutorial_server \ |
| 52 | tutorial_client |
Roger Meier | 2814c2e | 2014-07-29 23:28:46 +0200 | [diff] [blame] | 53 | |
Roger Meier | 4606d7d | 2014-09-29 21:01:58 +0200 | [diff] [blame] | 54 | tutorial_server_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 55 | c_glib_server.c |
Roger Meier | 4606d7d | 2014-09-29 21:01:58 +0200 | [diff] [blame] | 56 | |
| 57 | tutorial_server_LDADD = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 58 | libtutorialgencglib.la \ |
| 59 | $(top_builddir)/lib/c_glib/libthrift_c_glib.la |
Roger Meier | 4606d7d | 2014-09-29 21:01:58 +0200 | [diff] [blame] | 60 | |
Roger Meier | 2814c2e | 2014-07-29 23:28:46 +0200 | [diff] [blame] | 61 | tutorial_client_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 62 | c_glib_client.c |
Roger Meier | 2814c2e | 2014-07-29 23:28:46 +0200 | [diff] [blame] | 63 | |
| 64 | tutorial_client_LDADD = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 65 | libtutorialgencglib.la \ |
| 66 | $(top_builddir)/lib/c_glib/libthrift_c_glib.la |
Roger Meier | 2814c2e | 2014-07-29 23:28:46 +0200 | [diff] [blame] | 67 | |
| 68 | |
Roger Meier | 4712f8c | 2014-11-08 23:19:02 +0100 | [diff] [blame] | 69 | 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 |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 70 | $(THRIFT) --gen c_glib -r $< |
Roger Meier | 2814c2e | 2014-07-29 23:28:46 +0200 | [diff] [blame] | 71 | |
| 72 | clean-local: |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 73 | $(RM) -r gen-c_glib |
Roger Meier | 2814c2e | 2014-07-29 23:28:46 +0200 | [diff] [blame] | 74 | |
Roger Meier | 4606d7d | 2014-09-29 21:01:58 +0200 | [diff] [blame] | 75 | tutorialserver: all |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 76 | ./tutorial_server |
Roger Meier | 4606d7d | 2014-09-29 21:01:58 +0200 | [diff] [blame] | 77 | |
Roger Meier | 2814c2e | 2014-07-29 23:28:46 +0200 | [diff] [blame] | 78 | tutorialclient: all |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 79 | ./tutorial_client |
Roger Meier | 2814c2e | 2014-07-29 23:28:46 +0200 | [diff] [blame] | 80 | |
| 81 | EXTRA_DIST = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 82 | c_glib_server.c \ |
| 83 | c_glib_client.c |