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