AM_PATH_GTK_2_0(2.4.0, ,AC_MSG_ERROR([gtk is required in order to compile GUI - download it from ftp://ftp.gtk.org/pub/gtk]) , gmodule)
+AC_PATH_PROGS(BASH, bash)
+
AC_SYS_LARGEFILE
# Checks for programs.
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)"\" \
#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
if LTTVSTATIC
- lttv_LDFLAGS = -profile -static
+ lttv_real_LDFLAGS = -profile -static
endif
--- /dev/null
+# -* sh *-
+
+# This is a simple script that starts lttv with default GUI modules
+# Mathieu Desnoyers 15-09-2005
+
+$0.real -m guievents -m guifilter -m guicontrolflow -m guistatistics \
+ -m guitracecontrol $*
+
--- /dev/null
+# -* sh *-
+
+# This is a simple script that starts lttv with no modules :
+# For batch mode.
+# Mathieu Desnoyers 15-09-2005
+
+if [ x"$*" = x"" ]; then
+ echo "This is a wrapper around $0.real for convenience purposes"
+ echo "What you really want is maybe the lttv-gui command ?"
+ echo
+ $0.real --help
+else
+ $0.real $*
+fi