]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/Makefile.am
next one
[lyx.git] / src / frontends / controllers / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 AM_CPPFLAGS += -I$(top_srcdir)/src $(BOOST_INCLUDES)
4
5 EXTRA_DIST = tests/regfiles/biblio
6
7 noinst_LTLIBRARIES = liblyxcontrollers.la
8
9 SOURCEFILES = \
10         Dialog.cpp \
11         ButtonPolicy.cpp \
12         ControlCitation.cpp \
13         ControlCommand.cpp \
14         ControlCommandBuffer.cpp \
15         ControlDocument.cpp \
16         ControlEmbeddedFiles.cpp \
17         ControlErrorList.cpp \
18         ControlExternal.cpp \
19         ControlGraphics.cpp \
20         ControlInclude.cpp \
21         ControlLog.cpp \
22         ControlViewSource.cpp \
23         ControlMath.cpp \
24         ControlParagraph.cpp \
25         ControlPrefs.cpp \
26         ControlPrint.cpp \
27         ControlSearch.cpp \
28         ControlSendto.cpp \
29         ControlSpellchecker.cpp \
30         ControlThesaurus.cpp \
31         ControlToc.cpp \
32         frontend_helpers.cpp 
33
34 HEADERFILES = \
35         ButtonPolicy.h \
36         ControlCitation.h \
37         ControlCommand.h \
38         ControlCommandBuffer.h \
39         ControlDocument.h \
40         ControlErrorList.h \
41         ControlEmbeddedFiles.h \
42         ControlExternal.h \
43         ControlGraphics.h \
44         ControlInclude.h \
45         ControlLog.h \
46         ControlViewSource.h \
47         ControlMath.h \
48         ControlParagraph.h \
49         ControlPrefs.h \
50         ControlPrint.h \
51         ControlSearch.h \
52         ControlSendto.h \
53         ControlSpellchecker.h \
54         ControlThesaurus.h \
55         ControlToc.h \
56         frontend_helpers.h
57
58 if MONOLITHIC_CONTROLLERS
59
60 lyxcontrollers.cpp:
61         @echo -e '$(SOURCEFILES:%=\n#include "%")\n' > $@
62
63 BUILT_SOURCES = lyxcontrollers.cpp
64
65 liblyxcontrollers_la_SOURCES = lyxcontrollers.cpp $(HEADERFILES) 
66
67 else
68
69 EXTRA_DIST += pch.h
70 BUILT_SOURCES = $(PCH_FILE)
71 AM_CPPFLAGS += $(PCH_FLAGS)
72
73 liblyxcontrollers_la_SOURCES = $(SOURCEFILES) $(HEADERFILES)
74
75 endif
76
77
78 ################################# Tests ################################
79
80 EXTRA_DIST += tests/test_biblio
81
82 TESTS = \
83         test_biblio
84
85 check_PROGRAMS = \
86         biblio
87
88 biblio_LDADD = $(BOOST_REGEX)
89 biblio_SOURCES = \
90         tests/biblio.cpp \
91         tests/boost.cpp
92
93 makeregfiles: ${check_PROGRAMS}
94         for all in ${check_PROGRAMS} ; do \
95                 ./$$all > ${srcdir}/regfiles/$$all ; \
96         done