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