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