X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=lttv%2Flttv%2FMakefile.am;h=944d5988132eb518284a88040c5806bef5fd9cc0;hb=3d55af6e55e4f5e15f3417c952b3ae49a42991c2;hp=8e473bb2459e2c8db5ca81b5205f402243de2cde;hpb=31efe1f8304f09a4f4139c387a98d3215cd423c9;p=lttv.git diff --git a/lttv/lttv/Makefile.am b/lttv/lttv/Makefile.am index 8e473bb2..944d5988 100644 --- a/lttv/lttv/Makefile.am +++ b/lttv/lttv/Makefile.am @@ -1,5 +1,50 @@ -# 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 + +bin_SCRIPTS = lttv lttv-gui +CLEANFILES = $(bin_SCRIPTS) +EXTRA_DIST = lttv.sh lttv-gui.sh + +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 += -profile -static +endif -modules_CFLAGS = -fvisibility=hidden