]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/Makefile.am
implement --enable-monolithic-{client,frontend-qt4,controllers}. Careful with fronten...
[lyx.git] / src / frontends / controllers / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 EXTRA_DIST = BCView.tmpl
4
5 AM_CPPFLAGS += -I$(top_srcdir)/src $(BOOST_INCLUDES)
6
7 pkglib_LTLIBRARIES = liblyxcontrollers.la
8
9 SOURCEFILES = \
10         Dialog.cpp \
11         Kernel.cpp \
12         BCView.cpp \
13         ButtonController.cpp \
14         ButtonPolicy.cpp \
15         ControlAboutlyx.cpp \
16         ControlBibtex.cpp \
17         ControlBox.cpp \
18         ControlBranch.cpp \
19         ControlCharacter.cpp \
20         ControlChanges.cpp \
21         ControlCitation.cpp \
22         ControlCommand.cpp \
23         ControlCommandBuffer.cpp \
24         ControlDocument.cpp \
25         ControlErrorList.cpp \
26         ControlERT.cpp \
27         ControlExternal.cpp \
28         ControlFloat.cpp \
29         ControlGraphics.cpp \
30         ControlInclude.cpp \
31         ControlListings.cpp \
32         ControlLog.cpp \
33         ControlViewSource.cpp \
34         ControlMath.cpp \
35         ControlNote.cpp \
36         ControlParagraph.cpp \
37         ControlPrefs.cpp \
38         ControlPrint.cpp \
39         ControlRef.cpp \
40         ControlSearch.cpp \
41         ControlSendto.cpp \
42         ControlShowFile.cpp \
43         ControlSpellchecker.cpp \
44         ControlTabular.cpp \
45         ControlTabularCreate.cpp \
46         ControlTexinfo.cpp \
47         ControlThesaurus.cpp \
48         ControlToc.cpp \
49         ControlVSpace.cpp \
50         ControlWrap.cpp \
51         frontend_helpers.cpp 
52
53 HEADERFILES = \
54         Kernel.h \
55         ButtonController.h \
56         ButtonPolicy.h \
57         ControlAboutlyx.h \
58         ControlBibtex.h \
59         ControlBox.h \
60         ControlBranch.h \
61         ControlCharacter.h \
62         ControlChanges.h \
63         ControlCitation.h \
64         ControlCommand.h \
65         ControlCommandBuffer.h \
66         ControlDocument.h \
67         ControlErrorList.h \
68         ControlERT.h \
69         ControlExternal.h \
70         ControlFloat.h \
71         ControlGraphics.h \
72         ControlListings.h \
73         ControlInclude.h \
74         ControlLog.h \
75         ControlViewSource.h \
76         ControlMath.h \
77         ControlNote.h \
78         ControlParagraph.h \
79         ControlPrefs.h \
80         ControlPrint.h \
81         ControlRef.h \
82         ControlSearch.h \
83         ControlSendto.h \
84         ControlShowFile.h \
85         ControlSpellchecker.h \
86         ControlTabular.h \
87         ControlTabularCreate.h \
88         ControlTexinfo.h \
89         ControlThesaurus.h \
90         ControlToc.h \
91         ControlVSpace.h \
92         ControlWrap.h \
93         frontend_helpers.h
94
95 if MONOLITHIC_CONTROLLERS
96
97 lyxcontrollers.cpp:
98         @echo -e '$(SOURCEFILES:%=\n#include "%")\n' > $@
99
100 BUILT_SOURCES = lyxcontrollers.cpp
101
102 liblyxcontrollers_la_SOURCES = lyxcontrollers.cpp $(HEADERFILES) 
103
104 else
105
106 EXTRA_DIST += pch.h
107 BUILT_SOURCES = $(PCH_FILE)
108 AM_CPPFLAGS += $(PCH_FLAGS)
109
110 liblyxcontrollers_la_SOURCES = $(SOURCEFILES) $(HEADERFILES)
111
112 endif
113
114
115 ################################# Tests ################################
116
117 EXTRA_DIST += tests/test_biblio
118
119 TESTS = \
120         test_biblio
121
122 check_PROGRAMS = \
123         biblio
124
125 biblio_LDADD = $(BOOST_REGEX)
126 biblio_SOURCES = \
127         tests/biblio.cpp \
128         tests/boost.cpp
129
130 makeregfiles: ${check_PROGRAMS}
131         for all in ${check_PROGRAMS} ; do \
132                 ./$$all > ${srcdir}/regfiles/$$all ; \
133         done