X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2FMakefile.am;h=862613a67f51964dded997125b30f6fcd9cac155;hb=28be7d552f62cc02fa86d7f79201d089bfb2d7b5;hp=ee31fca5683b2035b6a06f9e106a9774f849eb75;hpb=0a8d0c71a34eb4cbb87771fb3103179258e64c99;p=lyx.git diff --git a/src/frontends/Makefile.am b/src/frontends/Makefile.am index ee31fca568..862613a67f 100644 --- a/src/frontends/Makefile.am +++ b/src/frontends/Makefile.am @@ -1,50 +1,51 @@ -AUTOMAKE_OPTIONS = foreign 1.4 -DISTCLEANFILES= *.orig *.rej *~ *.bak core -MAINTAINERCLEANFILES = $(srcdir)/Makefile.in -# xforms has to be fixed here as we still need object files in this directory -# for the compilation of other frontends, so until that we have to let this -# here. -SUBDIRS = controllers xforms @FRONTEND@ -ETAGS_ARGS = --lang=c++ -BOOST_INCLUDES = -I$(top_srcdir)/boost -INCLUDES = ${FRONTEND_INCLUDES} -I${srcdir}/.. -I${srcdir}/xforms ${SIGC_CFLAGS} $(BOOST_INCLUDES) -LIBS = -noinst_LTLIBRARIES = libfrontends.la - -libfrontends_la_LIBADD= \ - xforms/*.lo \ - controllers/*.lo - -libfrontends_la_DEPENDENCIES = \ - xforms/*.lo \ - controllers/*.lo - -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 \ - Timeout.C \ - Timeout.h \ - Toolbar.C \ - Toolbar.h - -libfrontends.la: libfrontends.o - -libfrontends.o: $(libfrontends_la_OBJECTS) $(libfrontends_la_DEPENDENCIES) - $(CXXLINK) $(libfrontends_la_OBJECTS) $(libfrontends_la_LIBADD) - -EXTRA_DIST = qt2 gnome - -dist-hook: - @cd $(distdir) ; \ - rm -rf `find qt2 -name \*CVS\*`; \ - rm -rf `find gnome -name \*CVS\*` +include $(top_srcdir)/config/common.am + +SUBDIRS = $(FRONTENDS_SUBDIRS) . + +DIST_SUBDIRS = qt4 . + +noinst_LIBRARIES = liblyxfrontends.a + +AM_CPPFLAGS += -I$(srcdir)/.. \ + $(BOOST_INCLUDES) $(ICONV_INCLUDES) $(ZLIB_INCLUDES) + +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 + +################################# Tests ################################ + +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