1#SUFFIXES=.x 2#.c.x: rpcgen $< 3 4if STATIC_BUILD 5GCFLAGS = -D_LARGEFILE64_SOURCE 6GLDADD = 7GLDFLAGS = -static 8else 9GCFLAGS = -D_LARGEFILE64_SOURCE 10GLDADD = 11GLDFLAGS = 12endif 13if BUILD_SFLOW 14GCFLAGS += -DSFLOW 15endif 16 17INCLUDES = @APR_INCLUDES@ 18AM_CFLAGS = -I.. -I. -I$(top_builddir)/include/ $(GCFLAGS) -DSYSCONFDIR='"$(sysconfdir)"' 19 20include_HEADERS = gm_protocol.h 21 22EXTRA_DIST=gm_protocol.x 23gm_protocol_xdr.c gm_protocol.h: gm_protocol.x 24 rpcgen gm_protocol.x 25 26lib_LTLIBRARIES = libganglia.la 27libganglia_la_SOURCES = gm_protocol_xdr.c gm_protocol.h \ 28become_a_nobody.c become_a_nobody.h \ 29debug_msg.c update_pidfile.c update_pidfile.h file.c \ 30dotconf.c dotconf.h error_msg.c ganglia_priv.h \ 31ganglia.c hash.c hash.h inetaddr.c llist.c llist.h \ 32my_inet_ntop.c my_inet_ntop.h net.h rdwr.c rdwr.h readdir.c readdir.h tcp.c \ 33scoreboard.c gm_scoreboard.h apr_net.c apr_net.h libgmond.c 34libganglia_la_LDFLAGS = \ 35 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ 36 -export-dynamic \ 37 $(GLDFLAGS) 38 39libganglia_la_LIBADD = $(GLDADD) 40 41noinst_LIBRARIES = libgetopthelper.a 42# A little helper for getopt functions 43libgetopthelper_a_SOURCES = getopt1.c getopt.c getopt_init.c getopt.h 44