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