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