include $(top_srcdir)/config/common.am
-SUBDIRS = controllers @FRONTEND@
+SUBDIRS = $(FRONTENDS_SUBDIRS) .
-DIST_SUBDIRS = controllers xforms qt2 gnome
+DIST_SUBDIRS = qt4 .
-noinst_LTLIBRARIES = libfrontends.la
+noinst_LIBRARIES = liblyxfrontends.a
-LIBS += @FRONTEND_LDFLAGS@ @FRONTEND_LIBS@
+AM_CPPFLAGS += -I$(srcdir)/.. \
+ $(BOOST_INCLUDES) $(ICONV_INCLUDES) $(ZLIB_INCLUDES)
-INCLUDES = $(FRONTEND_INCLUDES) -I$(srcdir)/.. $(SIGC_CFLAGS) $(BOOST_INCLUDES)
-libfrontends_la_LIBADD = @FRONTEND_GUILIB@ controllers/*.lo
+liblyxfrontends_a_SOURCES = \
+ alert.h \
+ Application.h \
+ FontLoader.h \
+ FontMetrics.h \
+ Delegates.h \
+ KeyModifier.h \
+ KeySymbol.h \
+ Painter.h \
+ Clipboard.h \
+ Selection.h \
+ WorkArea.h \
+ WorkAreaManager.cpp \
+ WorkAreaManager.h \
+ mouse_state.h
-libfrontends_la_DEPENDENCIES = $(libfrontends_la_LIBADD)
+################################# Tests ################################
-libfrontends_la_SOURCES = \
- Alert.C \
- Alert.h \
- Alert_pimpl.h \
- Dialogs.C \
- Dialogs.h \
- DialogBase.h \
- FileDialog.h \
- GUIRunTime.h \
- Liason.C \
- Liason.h \
- Menubar.C \
- Menubar.h \
- Painter.C \
- Painter.h \
- Timeout.C \
- Timeout.h \
- Toolbar.C \
- Toolbar.h
+EXTRA_DIST = \
+ CMakeLists.txt \
+ tests/CMakeLists.txt \
+ tests/test_biblio.cmake \
+ tests/test_biblio \
+ tests/regfiles/biblio
+
+TESTS = \
+ tests/test_biblio
+
+check_PROGRAMS = \
+ biblio
+
+biblio_LDADD = $(BOOST_LIBS) $(ICONV_LIBS) $(ZLIB_LIBS)
+biblio_SOURCES = \
+ tests/biblio.cpp \
+ tests/boost.cpp
+
+makeregfiles: ${check_PROGRAMS}
+ for all in ${check_PROGRAMS} ; do \
+ ./$$all > ${srcdir}/tests/regfiles/$$all ; \
+ done