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