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