-SUBDIRS = modules plugins
+# WARNING : modules must be done at the end, so modules can dynamically link
+# themselves to libraries compiled here but not installed in the system.
+SUBDIRS = lttv modules
-bin_PROGRAMS = textui
-
-#AM_CPPFLAGS = \
-# -I$(top_srcdir)/include
-#INCLUDES=$(top_srcdir)/include
-
-textui_SOURCES = main.c module.c option.c hook.c attribute.c \
- attribute.h lttv.h module.h option.h trace.h