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 = \ |
| 29 | libtutorialgencglib.la |
| 30 | |
| 31 | nodist_libtutorialgencglib_la_SOURCES = \ |
| 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 |
| 40 | |
| 41 | libtutorialgencglib_la_LIBADD = \ |
| 42 | $(top_builddir)/lib/c_glib/libthrift_c_glib.la |
| 43 | |
| 44 | |
| 45 | noinst_PROGRAMS = \ |
| 46 | tutorial_client |
| 47 | |
| 48 | tutorial_client_SOURCES = \ |
| 49 | c_glib_client.c |
| 50 | |
| 51 | tutorial_client_LDADD = \ |
| 52 | libtutorialgencglib.la \ |
| 53 | $(top_builddir)/lib/c_glib/libthrift_c_glib.la |
| 54 | |
| 55 | |
| 56 | $(nodist_libtutorialgencglib_la_SOURCES): $(top_srcdir)/tutorial/tutorial.thrift |
| 57 | $(THRIFT) --gen c_glib -r $< |
| 58 | |
| 59 | clean-local: |
| 60 | $(RM) -r gen-c_glib |
| 61 | |
| 62 | tutorialclient: all |
| 63 | ./tutorial_client |
| 64 | |
| 65 | EXTRA_DIST = \ |
| 66 | c_glib_client.c |