| pwyckoff | 99b000b | 2008-04-03 19:30:55 +0000 | [diff] [blame] | 1 | @GLOBAL_HEADER_MK@ | 
 | 2 |  | 
 | 3 | @PRODUCT_MK@ | 
 | 4 |  | 
 | 5 |  | 
 | 6 | # User specified path variables set in configure.ac. | 
 | 7 | # thrift_home | 
| pwyckoff | 99b000b | 2008-04-03 19:30:55 +0000 | [diff] [blame] | 8 | # | 
 | 9 | THRIFT = $(thrift_home)/bin/thrift | 
 | 10 |  | 
 | 11 | # User defined conditionals and conditonal statements set up in configure.ac. | 
 | 12 | if DEBUG | 
 | 13 |    DEBUG_CPPFLAGS = -DDEBUG_TIMING | 
 | 14 | endif | 
 | 15 |  | 
 | 16 | # Set common flags recognized by automake. | 
 | 17 | # DO NOT USE CPPFLAGS, CXXFLAGS, CFLAGS, LDFLAGS here! Set in configure.ac and|or override on command line. | 
 | 18 | # USE flags AM_CXXFLAGS, AM_CFLAGS, AM_CPPFLAGS, AM_LDFLAGS, LDADD in this section. | 
 | 19 |  | 
 | 20 | AM_CPPFLAGS = -I.. | 
 | 21 | AM_CPPFLAGS += -Igen-cpp | 
| David Reiss | 7c28b33 | 2008-09-20 00:14:01 +0000 | [diff] [blame] | 22 | AM_CPPFLAGS += -I$(thrift_home)/include/thrift  | 
 | 23 | AM_CPPFLAGS += $(BOOST_CPPFLAGS) | 
| pwyckoff | 99b000b | 2008-04-03 19:30:55 +0000 | [diff] [blame] | 24 | AM_CPPFLAGS += $(FB_CPPFLAGS) $(DEBUG_CPPFLAGS) | 
 | 25 |  | 
 | 26 | # GENERATE BUILD RULES | 
 | 27 | # Set Program/library specific flags recognized by automake. | 
 | 28 | # Use <progname|libname>_<FLAG> to set prog / lib specific flag s | 
 | 29 | # foo_CXXFLAGS foo_CPPFLAGS foo_LDFLAGS foo_LDADD | 
 | 30 |  | 
 | 31 | fb303_lib = gen-cpp/FacebookService.cpp gen-cpp/fb303_constants.cpp gen-cpp/fb303_types.cpp FacebookBase.cpp ServiceTracker.cpp | 
 | 32 |  | 
 | 33 | # Static -- multiple libraries can be defined | 
 | 34 | if STATIC | 
 | 35 | lib_LIBRARIES = libfb303.a | 
 | 36 | libfb303_a_SOURCES = $(fb303_lib) | 
 | 37 | INTERNAL_LIBS = libfb303.a | 
 | 38 | endif | 
 | 39 |  | 
 | 40 | # Shared -- multiple libraries can be defined | 
 | 41 | if SHARED | 
 | 42 | shareddir = lib | 
 | 43 | shared_PROGRAMS = libfb303.so | 
 | 44 | libfb303_so_SOURCES = $(fb303_lib) | 
 | 45 | libfb303_so_CXXFLAGS = $(SHARED_CXXFLAGS) | 
 | 46 | libfb303_so_LDFLAGS = $(SHARED_LDFLAGS) | 
 | 47 | INTERNAL_LIBS =  libfb303.so | 
 | 48 | endif | 
 | 49 |  | 
 | 50 | # Set up Thrift specific activity here. | 
 | 51 | # We assume that a <name>+types.cpp will always be built from <name>.thrift. | 
 | 52 | $(eval $(call thrift_template,.,../if/fb303.thrift,-I $(thrift_home)/share  --gen cpp )) | 
 | 53 |  | 
 | 54 | include_fb303dir = $(includedir)/thrift/fb303 | 
 | 55 | include_fb303_HEADERS = FacebookBase.h ServiceTracker.h gen-cpp/FacebookService.h gen-cpp/fb303_constants.h gen-cpp/fb303_types.h | 
 | 56 |  | 
| David Reiss | 576dfdc | 2009-02-07 02:37:00 +0000 | [diff] [blame] | 57 | include_fb303ifdir = $(prefix)/share/fb303/if | 
| pwyckoff | 99b000b | 2008-04-03 19:30:55 +0000 | [diff] [blame] | 58 | include_fb303if_HEADERS = ../if/fb303.thrift | 
 | 59 |  | 
 | 60 | BUILT_SOURCES = thriftstyle | 
 | 61 |  | 
 | 62 | # Add to pre-existing target clean | 
 | 63 | clean-local: clean-common | 
 | 64 |  | 
 | 65 | @GLOBAL_FOOTER_MK@ |