]> git.lyx.org Git - features.git/blob - src/Makefile.am
enable building of shared libraries. reduces final linktime. also combine boost stuff...
[features.git] / src / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 DISTCLEANFILES += config.h libintl.h version.cpp stamp-version version.cpp-tmp
4
5 MAINTAINERCLEANFILES += $(srcdir)/config.h.in
6
7 if BUILD_CLIENT_SUBDIR
8 CLIENT = client
9 endif
10
11 SUBDIRS = mathed insets graphics support frontends . $(CLIENT) tex2lyx
12
13 EXTRA_DIST = config.h.in stamp-h.in version.cpp.in \
14         Section.h \
15         Section.cpp \
16         Variables.cpp \
17         Variables.h \
18         paper.h \
19         pch.h
20
21 LYX_PRE_LIBS = mathed/liblyxmathed.la insets/liblyxinsets.la \
22         frontends/liblyxfrontends.la
23
24 LYX_POST_LIBS = frontends/controllers/liblyxcontrollers.la \
25         graphics/liblyxgraphics.la \
26         support/liblyxsupport.la
27
28 OTHERLIBS = $(BOOST_LIBS) $(INTLLIBS) $(AIKSAURUS_LIBS) @LIBS@ $(SOCKET_LIBS)
29
30 pkglib_LTLIBRARIES = liblyxcore.la
31 noinst_PROGRAMS = $(FRONTENDS_PROGS)
32 EXTRA_PROGRAMS = lyx-qt4
33
34 lyx_qt4_LDADD = liblyxcore.la  $(LYX_PRE_LIBS) \
35         frontends/qt4/liblyxqt4.la $(LYX_POST_LIBS) $(OTHERLIBS)
36 lyx_qt4_SOURCES = main.cpp
37
38 lyx$(EXEEXT): $(FRONTENDS_PROGS)
39         rm -f $@
40         $(LN_S) $< $@
41
42 #lyx_LDFLAGS=-Wl,-O1
43
44 BUILT_SOURCES = $(PCH_FILE) version.cpp
45
46 AM_CPPFLAGS += $(PCH_FLAGS) $(BOOST_INCLUDES)
47
48 if USE_ASPELL
49 ASPELL = ASpell.cpp ASpell_local.h
50 endif
51 if USE_PSPELL
52 PSPELL = PSpell.cpp PSpell.h
53 endif
54 if USE_ISPELL
55 ISPELL = ISpell.cpp ISpell.h
56 endif
57
58
59 liblyxcore_la_SOURCES = \
60         $(ASPELL) $(PSPELL) $(ISPELL) SpellBase.cpp \
61         Author.cpp \
62         Author.h \
63         Bidi.cpp \
64         Bidi.h \
65         boost.cpp \
66         Box.cpp \
67         Box.h \
68         BranchList.cpp \
69         BranchList.h \
70         Buffer.cpp \
71         buffer_funcs.cpp \
72         buffer_funcs.h \
73         Buffer.h \
74         BufferList.cpp \
75         BufferList.h \
76         BufferParams.cpp \
77         BufferParams.h \
78         BufferView.cpp \
79         bufferview_funcs.cpp \
80         bufferview_funcs.h \
81         BufferView.h \
82         Bullet.cpp \
83         Bullet.h \
84         Changes.cpp \
85         Changes.h \
86         Chktex.cpp \
87         Chktex.h \
88         Color.cpp \
89         Color.h \
90         config.h.in \
91         ConverterCache.cpp \
92         ConverterCache.h \
93         Converter.cpp \
94         Converter.h \
95         CoordCache.cpp \
96         CoordCache.h \
97         Counters.cpp \
98         Counters.h \
99         Cursor.cpp \
100         Cursor.h \
101         CursorSlice.cpp \
102         CursorSlice.h \
103         CutAndPaste.cpp \
104         CutAndPaste.h \
105         debug.cpp \
106         debug.h \
107         DepTable.cpp \
108         DepTable.h \
109         Dimension.cpp \
110         Dimension.h \
111         DispatchResult.h \
112         DocIterator.cpp \
113         DocIterator.h \
114         Encoding.cpp \
115         Encoding.h \
116         ErrorList.cpp \
117         ErrorList.h \
118         Exporter.cpp \
119         Exporter.h \
120         factory.cpp \
121         factory.h \
122         Floating.cpp \
123         Floating.h \
124         FloatList.cpp \
125         FloatList.h \
126         Font.cpp \
127         Font.h \
128         FontIterator.cpp \
129         FontIterator.h \
130         Format.cpp \
131         Format.h \
132         FuncRequest.cpp \
133         FuncRequest.h \
134         FuncStatus.cpp \
135         FuncStatus.h \
136         gettext.cpp \
137         gettext.h \
138         Graph.cpp \
139         Graph.h \
140         Importer.cpp \
141         Importer.h \
142         InsetIterator.cpp \
143         InsetIterator.h \
144         InsetList.cpp \
145         InsetList.h \
146         Intl.cpp \
147         Intl.h \
148         KeyMap.cpp \
149         KeyMap.h \
150         KeySequence.cpp \
151         KeySequence.h \
152         Language.cpp \
153         Language.h \
154         LaTeX.cpp \
155         LaTeXFeatures.cpp \
156         LaTeXFeatures.h \
157         LaTeX.h \
158         Layout.cpp \
159         Layout.h \
160         Length.cpp \
161         Length.h \
162         lengthcommon.cpp \
163         lengthcommon.h \
164         Lexer.cpp \
165         Lexer.h \
166         lfuns.h \
167         LyXAction.cpp \
168         LyXAction.h \
169         callback.cpp \
170         callback.h \
171         LyX.cpp \
172         lyxfind.cpp \
173         lyxfind.h \
174         LyXFunc.cpp \
175         LyXFunc.h \
176         LyX.h \
177         lyxlayout_ptr_fwd.h \
178         LyXRC.cpp \
179         LyXRC.h \
180         Server.cpp \
181         Server.h \
182         ServerSocket.cpp \
183         ServerSocket.h \
184         LyXVC.cpp \
185         LyXVC.h \
186         MenuBackend.cpp \
187         MenuBackend.h \
188         Messages.cpp \
189         Messages.h \
190         MetricsInfo.cpp \
191         MetricsInfo.h \
192         Mover.cpp \
193         Mover.h \
194         output.cpp \
195         output_docbook.cpp \
196         output_docbook.h \
197         output.h \
198         output_latex.cpp \
199         output_latex.h \
200         OutputParams.cpp \
201         OutputParams.h \
202         output_plaintext.cpp \
203         output_plaintext.h \
204         paper.h \
205         Paragraph.cpp \
206         paragraph_funcs.cpp \
207         paragraph_funcs.h \
208         Paragraph.h \
209         ParagraphList.h \
210         ParagraphMetrics.cpp \
211         ParagraphMetrics.h \
212         ParagraphParameters.cpp \
213         ParagraphParameters.h \
214         ParIterator.cpp \
215         ParIterator.h \
216         PrinterParams.cpp \
217         PrinterParams.h \
218         Row.cpp \
219         Row.h \
220         rowpainter.cpp \
221         rowpainter.h \
222         Session.cpp \
223         Session.h \
224         sgml.cpp \
225         sgml.h \
226         Spacing.cpp \
227         Spacing.h \
228         SpellBase.h \
229         TexRow.cpp \
230         TexRow.h \
231         Text.h \
232         Text.cpp \
233         Text2.cpp \
234         Text3.cpp \
235         TextClass.cpp \
236         TextClass.h \
237         TextClassList.cpp \
238         TextClassList.h \
239         TextMetrics.cpp \
240         TextMetrics.h \
241         Thesaurus.cpp \
242         Thesaurus.h \
243         TocBackend.cpp \
244         TocBackend.h \
245         toc.cpp \
246         toc.h \
247         ToolbarBackend.cpp \
248         ToolbarBackend.h \
249         Trans.cpp \
250         Trans.h \
251         Undo.cpp \
252         Undo.h \
253         update_flags.h \
254         VCBackend.cpp \
255         VCBackend.h \
256         version.cpp \
257         version.h \
258         WordLangTuple.h \
259         VSpace.cpp \
260         VSpace.h
261
262 version.cpp: stamp-version
263         @:
264
265 stamp-version: version.cpp-tmp
266         if cmp -s $< version.cpp ; then \
267                 : ;\
268         else \
269                 rm -f version.cpp ;\
270                 cp $< version.cpp ;\
271         fi
272         echo timestamp > $@