-bin_PROGRAMS = textui
+# 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
-AM_CPPFLAGS = \
- -I$(top_srcdir)/include
-
-# MD //FIXME add headers dependancy
-textui_SOURCES = main.c module.c option.c hook.c attribute.c
-textui_LDFLAGS = -lpopt -lgmodule-2.0 -ldl -lglib-2.0