print syscalls
[lttv.git] / ltt / branches / poly / lttv / lttv / Makefile.am
index fb7e13291c191ce6656a97b179ed668250dbe45d..f96f418f4c3b0c34e3d611764ea6caac7cea5560 100644 (file)
@@ -1,7 +1,25 @@
 AM_CFLAGS = $(GLIB_CFLAGS) 
-LIBS += $(POPT_LIBS) $(GLIB_LIBS) -lgobject-2.0 -L$(top_srcdir)/ltt -ltraceread
+LIBS += $(POPT_LIBS) $(GLIB_LIBS) -lgobject-2.0 -L${top_builddir}/ltt\
+          -llttvtraceread
+
+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
 
-bin_PROGRAMS = lttv
 
 INCLUDES = \
        -DPACKAGE_PLUGIN_DIR=\""$(lttvplugindir)"\" \
@@ -27,11 +45,22 @@ lttvinclude_HEADERS = \
 #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 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_LDFLAGS = -profile -static
+  lttv_real_LDFLAGS += -profile -static
 endif
+
This page took 0.024455 seconds and 4 git commands to generate.