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