Split the synchronization code into modules
[lttv.git] / lttv / lttv / Makefile.am
index 24caa3154fe7382de3b9b2687691e9f6f336887b..de0a170fa761b82b5c46b53c412f28e14ed2bf32 100644 (file)
@@ -1,14 +1,21 @@
 AM_CFLAGS= $(PACKAGE_CFLAGS)
-
-LIBS += $(THREAD_LIBS)
-LIBS += $(POPT_LIBS) $(GLIB_LIBS) -lgobject-2.0 -L${top_builddir}/ltt\
-          -llttvtraceread
+LDADD = $(POPT_LIBS) $(M_LIBS) ${top_builddir}/ltt/liblttvtraceread.la
 
 bin_PROGRAMS = lttv.real
 
+if BUILD_LTTV_GUI
 bin_SCRIPTS = lttv lttv-gui
+else
+bin_SCRIPTS = lttv
+endif
+
 CLEANFILES = $(bin_SCRIPTS)
+
+if BUILD_LTTV_GUI
 EXTRA_DIST = lttv.sh lttv-gui.sh
+else
+EXTRA_DIST = lttv.sh
+endif
 
 lttv: lttv.sh
        rm -f lttv
@@ -32,10 +39,41 @@ libdir = ${lttvplugindir}
 #noinst_HEADERS = \
 #      filter.h
 
-lttv_real_SOURCES = batchtest.c main.c module.c option.c \
-               hook.c attribute.c \
-               iattribute.c state.c stats.c \
-              tracecontext.c traceset.c filter.c print.c
+lttv_real_SOURCES = \
+       batchtest.c\
+       main.c\
+       module.c\
+       option.c\
+       hook.c\
+       attribute.c\
+       iattribute.c\
+       state.c\
+       stats.c\
+       tracecontext.c\
+       traceset.c\
+       filter.c\
+       print.c\
+       sync/sync_chain.c\
+       sync/data_structures_tcp.c\
+       sync/event_processing_lttv_common.c\
+       sync/event_processing_lttv_standard.c\
+       sync/event_processing_lttv_null.c\
+       sync/event_matching_tcp.c\
+       sync/event_analysis_linreg.c
+
+lttvinclude_HEADERS = \
+       attribute.h\
+       hook.h\
+       iattribute.h\
+       lttv.h\
+       module.h\
+       option.h\
+       state.h\
+       stats.h\
+       tracecontext.h\
+       traceset.h\
+       filter.h\
+       print.h
 
 #man_MANS = lttv.1
 #EXTRA_DIST = lttv.1
@@ -48,6 +86,6 @@ lttv_real_SOURCES = batchtest.c main.c module.c option.c \
 lttv_real_LDFLAGS = -export-dynamic
 
 if LTTVSTATIC
-  lttv_real_LDFLAGS += -profile -static
+  lttv_real_LDFLAGS += -static
 endif
 
This page took 0.038355 seconds and 4 git commands to generate.