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