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