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