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