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