-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
-# Includes will have to be changed in the .c files if we want to
-# remove the top_srcdir from the includes path.
-AM_CPPFLAGS = \
- -I$(top_srcdir)/lttv \
- -I$(top_srcdir)
-
-# 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