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