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