| 1 | AM_CFLAGS = $(GLIB_CFLAGS) |
| 2 | LIBS += $(POPT_LIBS) $(GLIB_LIBS) -lgobject-2.0 -L$(top_srcdir)/ltt -ltraceread |
| 3 | |
| 4 | bin_PROGRAMS = lttv.real |
| 5 | |
| 6 | bin_SCRIPTS = lttv lttv-gui |
| 7 | CLEANFILES = $(bin_SCRIPTS) |
| 8 | EXTRA_DIST = lttv.sh lttv-gui.sh |
| 9 | |
| 10 | lttv: lttv.sh |
| 11 | rm -f lttv |
| 12 | echo "#!"$(BASH) > lttv |
| 13 | cat lttv.sh >> lttv |
| 14 | chmod ugo+x lttv |
| 15 | |
| 16 | lttv-gui: lttv-gui.sh |
| 17 | rm -f lttv-gui |
| 18 | echo "#!"$(BASH) > lttv-gui |
| 19 | cat lttv-gui.sh >> lttv-gui |
| 20 | chmod ugo+x lttv-gui |
| 21 | |
| 22 | |
| 23 | INCLUDES = \ |
| 24 | -DPACKAGE_PLUGIN_DIR=\""$(lttvplugindir)"\" \ |
| 25 | @PACKAGE_CFLAGS@ \ |
| 26 | $(DEFAULT_INCLUDES) |
| 27 | |
| 28 | libdir = ${lttvplugindir} |
| 29 | |
| 30 | lttvinclude_HEADERS = \ |
| 31 | attribute.h\ |
| 32 | hook.h\ |
| 33 | iattribute.h\ |
| 34 | lttv.h\ |
| 35 | module.h\ |
| 36 | option.h\ |
| 37 | state.h\ |
| 38 | stats.h\ |
| 39 | tracecontext.h\ |
| 40 | traceset.h\ |
| 41 | filter.h\ |
| 42 | print.h |
| 43 | |
| 44 | #noinst_HEADERS = \ |
| 45 | # filter.h |
| 46 | |
| 47 | lttv_real_SOURCES = batchtest.c main.c module.c option.c \ |
| 48 | hook.c attribute.c \ |
| 49 | iattribute.c state.c stats.c \ |
| 50 | tracecontext.c traceset.c filter.c print.c |
| 51 | |
| 52 | if LTTVSTATIC |
| 53 | lttv_real_LDFLAGS = -profile -static |
| 54 | endif |