| 1 | AM_CFLAGS= $(PACKAGE_CFLAGS) |
| 2 | LDADD = $(POPT_LIBS) ${top_builddir}/ltt/liblttvtraceread.la |
| 3 | |
| 4 | bin_PROGRAMS = lttv.real |
| 5 | |
| 6 | if BUILD_LTTV_GUI |
| 7 | bin_SCRIPTS = lttv lttv-gui |
| 8 | else |
| 9 | bin_SCRIPTS = lttv |
| 10 | endif |
| 11 | |
| 12 | CLEANFILES = $(bin_SCRIPTS) |
| 13 | |
| 14 | if BUILD_LTTV_GUI |
| 15 | EXTRA_DIST = lttv.sh lttv-gui.sh |
| 16 | else |
| 17 | EXTRA_DIST = lttv.sh |
| 18 | endif |
| 19 | |
| 20 | lttv: lttv.sh |
| 21 | rm -f lttv |
| 22 | echo "#!"$(BASH) > lttv |
| 23 | cat $(srcdir)/lttv.sh >> lttv |
| 24 | chmod ugo+x lttv |
| 25 | |
| 26 | lttv-gui: lttv-gui.sh |
| 27 | rm -f lttv-gui |
| 28 | echo "#!"$(BASH) > lttv-gui |
| 29 | cat $(srcdir)/lttv-gui.sh >> lttv-gui |
| 30 | chmod ugo+x lttv-gui |
| 31 | |
| 32 | |
| 33 | INCLUDES = \ |
| 34 | -DPACKAGE_PLUGIN_DIR=\""$(lttvplugindir)"\" \ |
| 35 | $(DEFAULT_INCLUDES) |
| 36 | |
| 37 | libdir = ${lttvplugindir} |
| 38 | |
| 39 | #noinst_HEADERS = \ |
| 40 | # filter.h |
| 41 | |
| 42 | lttv_real_SOURCES = batchtest.c main.c module.c option.c \ |
| 43 | hook.c attribute.c \ |
| 44 | iattribute.c state.c stats.c \ |
| 45 | tracecontext.c traceset.c filter.c print.c |
| 46 | |
| 47 | #man_MANS = lttv.1 |
| 48 | #EXTRA_DIST = lttv.1 |
| 49 | |
| 50 | #install-data-hook: |
| 51 | # cd $(DESTDIR)$(mandir)/man1 && \ |
| 52 | # $(LN_S) -f lttv.1 lttv-gui.1 \ |
| 53 | # $(LN_S) -f lttv.1 lttv.real.1 |
| 54 | |
| 55 | lttv_real_LDFLAGS = -export-dynamic |
| 56 | |
| 57 | if LTTVSTATIC |
| 58 | lttv_real_LDFLAGS += -static |
| 59 | endif |
| 60 | |