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