X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=lttv%2Flttv%2FMakefile.am;h=e63f4d7f66e309af74dce57dae472396f9cb3eaf;hb=2b752eed1b9e67e35d508adc8b1fa59b805fb869;hp=8e473bb2459e2c8db5ca81b5205f402243de2cde;hpb=31efe1f8304f09a4f4139c387a98d3215cd423c9;p=lttv.git diff --git a/lttv/lttv/Makefile.am b/lttv/lttv/Makefile.am index 8e473bb2..e63f4d7f 100644 --- a/lttv/lttv/Makefile.am +++ b/lttv/lttv/Makefile.am @@ -1,5 +1,60 @@ -# 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) ${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 + +#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