X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=lttv%2Flttv%2FMakefile.am;h=a89b55ba365486994d433f2c320326a584dcb689;hb=08365995afd45ea5f6f62f5d8fbc90961de5eacf;hp=8e473bb2459e2c8db5ca81b5205f402243de2cde;hpb=31efe1f8304f09a4f4139c387a98d3215cd423c9;p=lttv.git diff --git a/lttv/lttv/Makefile.am b/lttv/lttv/Makefile.am index 8e473bb2..a89b55ba 100644 --- a/lttv/lttv/Makefile.am +++ b/lttv/lttv/Makefile.am @@ -1,5 +1,92 @@ -# WARNING : modules must be done at the end, so modules can dynamically link -# themselves to libraries compiled here but not installed in the system. -SUBDIRS = lttv modules +AM_CFLAGS= $(PACKAGE_CFLAGS) +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 + echo "#!"$(BASH) > lttv + cat $(srcdir)/lttv.sh >> lttv + chmod ugo+x lttv + +lttv-gui: lttv-gui.sh + rm -f lttv-gui + echo "#!"$(BASH) > lttv-gui + cat $(srcdir)/lttv-gui.sh >> lttv-gui + chmod ugo+x lttv-gui + + +INCLUDES = \ + -DPACKAGE_PLUGIN_DIR=\""$(lttvplugindir)"\" \ + $(DEFAULT_INCLUDES) + +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\ + 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\ + sync/event_analysis_chull.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 + +#install-data-hook: +# cd $(DESTDIR)$(mandir)/man1 && \ +# $(LN_S) -f lttv.1 lttv-gui.1 \ +# $(LN_S) -f lttv.1 lttv.real.1 + +lttv_real_LDFLAGS = -export-dynamic + +if LTTVSTATIC + lttv_real_LDFLAGS += -static +endif -modules_CFLAGS = -fvisibility=hidden