X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fcontrollers%2FMakefile.am;h=ffb999b38e85417d816dfcc521bd4e4b0b28c540;hb=e093f9212b5fbb09811d2a27aa381105136e9cc5;hp=c34df9e61c7c4a6ca5fa5c3d120effa7019a761c;hpb=cf9da8bc68accb5a42a0b8f8dde00ba42e378314;p=lyx.git diff --git a/src/frontends/controllers/Makefile.am b/src/frontends/controllers/Makefile.am index c34df9e61c..ffb999b38e 100644 --- a/src/frontends/controllers/Makefile.am +++ b/src/frontends/controllers/Makefile.am @@ -1,109 +1,82 @@ include $(top_srcdir)/config/common.am -EXTRA_DIST = BCView.tmpl ControlDialog.tmpl - -INCLUDES = -I$(top_srcdir)/src $(BOOST_INCLUDES) - -noinst_LTLIBRARIES = libcontrollers.la - -libcontrollers_la_SOURCES= \ - Dialog.C \ - Dialog.h \ - Kernel.C \ - Kernel.h \ - biblio.C \ - biblio.h \ - character.C \ - character.h \ - frnt_lang.C \ - frnt_lang.h \ - tex_helpers.C \ - tex_helpers.h \ - BCView.h \ - BCView.C \ - ButtonController.C \ - ButtonController.h \ - ButtonPolicies.C \ - ButtonPolicies.h \ - ControlAboutlyx.C \ - ControlAboutlyx.h \ - ControlBibtex.C \ - ControlBibtex.h \ - ControlButtons.C \ - ControlButtons.h \ - ControlCharacter.C \ - ControlCharacter.h \ - ControlChanges.C \ - ControlChanges.h \ - ControlCitation.C \ - ControlCitation.h \ - ControlCommand.C \ +AM_CPPFLAGS += -I$(top_srcdir)/src $(BOOST_INCLUDES) + +EXTRA_DIST = tests/regfiles/biblio + +noinst_LTLIBRARIES = liblyxcontrollers.la + +SOURCEFILES = \ + Dialog.cpp \ + ButtonPolicy.cpp \ + ControlCommand.cpp \ + ControlCommandBuffer.cpp \ + ControlDocument.cpp \ + ControlExternal.cpp \ + ControlGraphics.cpp \ + ControlMath.cpp \ + ControlParagraph.cpp \ + ControlPrefs.cpp \ + ControlPrint.cpp \ + ControlSearch.cpp \ + ControlSendto.cpp \ + ControlThesaurus.cpp \ + ControlToc.cpp \ + frontend_helpers.cpp + +HEADERFILES = \ + ButtonPolicy.h \ ControlCommand.h \ - ControlCommandBuffer.C \ ControlCommandBuffer.h \ - ControlConnections.C \ - ControlConnections.h \ - ControlDialog.h \ - ControlDialog_impl.C \ - ControlDialog_impl.h \ - ControlDocument.C \ ControlDocument.h \ - ControlErrorList.C \ - ControlErrorList.h \ - ControlERT.C \ - ControlERT.h \ - ControlExternal.C \ ControlExternal.h \ - ControlFloat.C \ - ControlFloat.h \ - ControlForks.C \ - ControlForks.h \ - ControlGraphics.C \ ControlGraphics.h \ - ControlInclude.C \ - ControlInclude.h \ - ControlLog.C \ - ControlLog.h \ - ControlMath.C \ ControlMath.h \ - ControlMinipage.C \ - ControlMinipage.h \ - ControlNote.C \ - ControlNote.h \ - ControlParagraph.C \ ControlParagraph.h \ - ControlPreamble.C \ - ControlPreamble.h \ - ControlPrefs.C \ ControlPrefs.h \ - ControlPrint.C \ ControlPrint.h \ - ControlRef.C \ - ControlRef.h \ - ControlSearch.C \ ControlSearch.h \ - ControlSendto.C \ ControlSendto.h \ - ControlShowFile.C \ - ControlShowFile.h \ - ControlSpellchecker.C \ - ControlSpellchecker.h \ - ControlTabular.C \ - ControlTabular.h \ - ControlTabularCreate.C \ - ControlTabularCreate.h \ - ControlTexinfo.C \ - ControlTexinfo.h \ - ControlThesaurus.C \ ControlThesaurus.h \ - ControlToc.C \ ControlToc.h \ - ControlVCLog.C \ - ControlVCLog.h \ - ControlWrap.C \ - ControlWrap.h \ - GUI.h \ - ViewBase.h \ - ViewBase.C \ - helper_funcs.C \ - helper_funcs.h + frontend_helpers.h + +if MONOLITHIC_CONTROLLERS + +lyxcontrollers.cpp: + @echo -e '$(SOURCEFILES:%=\n#include "%")\n' > $@ + +BUILT_SOURCES = lyxcontrollers.cpp + +liblyxcontrollers_la_SOURCES = lyxcontrollers.cpp $(HEADERFILES) + +else + +EXTRA_DIST += pch.h +BUILT_SOURCES = $(PCH_FILE) +AM_CPPFLAGS += $(PCH_FLAGS) + +liblyxcontrollers_la_SOURCES = $(SOURCEFILES) $(HEADERFILES) + +endif + + +################################# Tests ################################ + +EXTRA_DIST += tests/test_biblio + +TESTS = \ + test_biblio + +check_PROGRAMS = \ + biblio + +biblio_LDADD = $(BOOST_REGEX) +biblio_SOURCES = \ + tests/biblio.cpp \ + tests/boost.cpp + +makeregfiles: ${check_PROGRAMS} + for all in ${check_PROGRAMS} ; do \ + ./$$all > ${srcdir}/regfiles/$$all ; \ + done