add lttv wrapper
[lttv.git] / ltt / branches / poly / lttv / lttv / Makefile.am
index f54180408f664a93d6283a4196df6b2dfc5a5356..442f2477668cef75176826fe3a734caabdf2c4c3 100644 (file)
@@ -1,7 +1,24 @@
 AM_CFLAGS = $(GLIB_CFLAGS) 
 LIBS += $(POPT_LIBS) $(GLIB_LIBS) -lgobject-2.0 -L$(top_srcdir)/ltt -ltraceread
 
-bin_PROGRAMS = lttv
+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 lttv.sh >> lttv
+       chmod ugo+x lttv
+
+lttv-gui: lttv-gui.sh
+       rm -f lttv-gui
+       echo "#!"$(BASH) > lttv-gui
+       cat lttv-gui.sh >> lttv-gui
+       chmod ugo+x lttv-gui
+
 
 INCLUDES = \
        -DPACKAGE_PLUGIN_DIR=\""$(lttvplugindir)"\" \
@@ -21,16 +38,17 @@ lttvinclude_HEADERS = \
        stats.h\
        tracecontext.h\
        traceset.h\
-       filter.h
+       filter.h\
+       print.h
 
 #noinst_HEADERS = \
 #      filter.h
 
-lttv_SOURCES = batchtest.c main.c module.c option.c \
+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
+              tracecontext.c traceset.c filter.c print.c
 
 if LTTVSTATIC
-  lttv_LDFLAGS = -profile -static
+  lttv_real_LDFLAGS = -profile -static
 endif
This page took 0.02302 seconds and 4 git commands to generate.