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