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