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