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