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