]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
4911718e9676d19346b1e12eab2db563c38df141
[lyx.git] / src / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 DISTCLEANFILES += config.h libintl.h version.C stamp-version version.C-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.C.in \
14         Sectioning.h \
15         Sectioning.C \
16         Variables.C \
17         Variables.h \
18         paper.h \
19         pch.h
20
21 LYX_PRE_LIBS = mathed/libmathed.la insets/libinsets.la \
22         frontends/libfrontends.la
23
24 LYX_POST_LIBS = frontends/controllers/libcontrollers.la \
25         graphics/libgraphics.la \
26         support/libsupport.la
27
28 BOOST_LIBS = $(BOOST_REGEX) $(BOOST_SIGNALS) $(BOOST_FILESYSTEM) $(BOOST_IOSTREAMS)
29
30 OTHERLIBS = $(BOOST_LIBS) $(LIBICONV) $(INTLLIBS) $(AIKSAURUS_LIBS) @LIBS@ $(SOCKET_LIBS)
31
32 bin_PROGRAMS = lyx
33 noinst_PROGRAMS = $(FRONTENDS_PROGS)
34 EXTRA_PROGRAMS = lyx-qt3 lyx-gtk lyx-qt4
35
36 lyx_qt3_LDADD = $(lyx_OBJECTS) $(LYX_PRE_LIBS) \
37         frontends/qt3/libqt3.la $(LYX_POST_LIBS) $(OTHERLIBS)
38 lyx_qt3_SOURCES = main.C
39
40 lyx_qt4_LDADD = $(lyx_OBJECTS) $(LYX_PRE_LIBS) \
41         frontends/qt4/libqt4.la $(LYX_POST_LIBS) $(OTHERLIBS)
42 lyx_qt4_SOURCES = main.C
43
44 lyx_gtk_LDADD = $(lyx_OBJECTS) $(LYX_PRE_LIBS) \
45         frontends/gtk/libgtk.la $(LYX_POST_LIBS) $(OTHERLIBS)
46 lyx_gtk_SOURCES = main.C
47
48 lyx$(EXEEXT): $(FRONTENDS_PROGS)
49         rm -f $@
50         $(LN_S) $< $@
51
52 #lyx_LDFLAGS=-Wl,-O1
53
54 BUILT_SOURCES = $(PCH_FILE) version.C
55
56 AM_CPPFLAGS += $(PCH_FLAGS) $(BOOST_INCLUDES)
57
58 if USE_ASPELL
59 ASPELL = aspell.C aspell_local.h
60 endif
61 if USE_PSPELL
62 PSPELL = pspell.C pspell.h
63 endif
64 if USE_ISPELL
65 ISPELL = ispell.C ispell.h
66 endif
67
68
69
70 lyx_SOURCES = \
71         Bidi.C \
72         Bidi.h \
73         BufferView.C \
74         BufferView.h \
75         BufferView_pimpl.C \
76         BufferView_pimpl.h \
77         Bullet.C \
78         Bullet.h \
79         BranchList.C \
80         BranchList.h \
81         Chktex.C \
82         Chktex.h \
83         Color.C \
84         Color.h \
85         CutAndPaste.C \
86         CutAndPaste.h \
87         DepTable.C \
88         DepTable.h \
89         FloatList.C \
90         FloatList.h \
91         Floating.C \
92         Floating.h \
93         FontIterator.C \
94         FontIterator.h \
95         FuncStatus.C \
96         FuncStatus.h \
97         InsetList.C \
98         InsetList.h \
99         LColor.C \
100         LColor.h \
101         LaTeX.C \
102         LaTeX.h \
103         LaTeXFeatures.C \
104         LaTeXFeatures.h \
105         LyXAction.C \
106         LyXAction.h \
107         MenuBackend.C \
108         MenuBackend.h \
109         ParagraphList.h \
110         ParagraphList_fwd.h \
111         ParagraphParameters.C \
112         ParagraphParameters.h \
113         PrinterParams.C \
114         PrinterParams.h \
115         RowList_fwd.h \
116         Spacing.C \
117         Spacing.h \
118         Thesaurus.C \
119         Thesaurus.h \
120         ToolbarBackend.C \
121         ToolbarBackend.h \
122         WordLangTuple.h \
123         author.C \
124         author.h \
125         boost.C \
126         box.h \
127         box.C \
128         buffer.C \
129         buffer.h \
130         buffer_funcs.C \
131         buffer_funcs.h \
132         bufferlist.C \
133         bufferlist.h \
134         bufferparams.C \
135         bufferparams.h \
136         bufferview_funcs.C \
137         bufferview_funcs.h \
138         changes.C \
139         changes.h \
140         chset.C \
141         chset.h \
142         config.h.in \
143         converter.C \
144         converter.h \
145         counters.C \
146         counters.h \
147         coordcache.C \
148         coordcache.h \
149         cursor.C \
150         cursor.h \
151         cursor_slice.C \
152         cursor_slice.h \
153         debug.C \
154         debug.h \
155         dimension.C \
156         dimension.h \
157         dociterator.C \
158         dociterator.h \
159         dispatchresult.h \
160         encoding.C \
161         encoding.h \
162         errorlist.C \
163         errorlist.h \
164         exporter.C \
165         exporter.h \
166         gettext.C \
167         gettext.h \
168         factory.h \
169         factory.C \
170         format.C \
171         format.h \
172         funcrequest.h \
173         funcrequest.C \
174         graph.C \
175         graph.h \
176         importer.C \
177         importer.h \
178         intl.C \
179         intl.h \
180         insetiterator.C \
181         insetiterator.h \
182         kbmap.C \
183         kbmap.h \
184         kbsequence.C \
185         kbsequence.h \
186         language.C \
187         language.h \
188         session.C \
189         session.h \
190         layout.h \
191         lengthcommon.C \
192         lengthcommon.h \
193         lfuns.h \
194         lyx_cb.C \
195         lyx_cb.h \
196         lyx_main.C \
197         lyx_main.h \
198         lyx_sty.C \
199         lyx_sty.h \
200         lyxfont.C \
201         lyxfont.h \
202         lyxfind.C \
203         lyxfind.h \
204         lyxfunc.C \
205         lyxfunc.h \
206         lyxgluelength.C \
207         lyxgluelength.h \
208         lyxlayout.C \
209         lyxlayout.h \
210         lyxlayout_ptr_fwd.h \
211         lyxlength.C \
212         lyxlength.h \
213         lyxlex.C \
214         lyxlex.h \
215         lyxlex_pimpl.C \
216         lyxlex_pimpl.h \
217         lyxrc.C \
218         lyxrc.h \
219         lyxrow.C \
220         lyxrow.h \
221         lyxrow_funcs.C \
222         lyxrow_funcs.h \
223         lyxserver.C \
224         lyxserver.h \
225         lyxsocket.C \
226         lyxsocket.h \
227         lyxtext.h \
228         lyxtextclass.C \
229         lyxtextclass.h \
230         lyxtextclasslist.C \
231         lyxtextclasslist.h \
232         lyxvc.C \
233         lyxvc.h \
234         messages.C \
235         messages.h \
236         metricsinfo.C \
237         metricsinfo.h \
238         mover.C \
239         mover.h \
240         output.C \
241         output.h \
242         outputparams.C \
243         outputparams.h \
244         output_docbook.C \
245         output_docbook.h \
246         output_latex.C \
247         output_latex.h \
248         output_plaintext.C \
249         output_plaintext.h \
250         paper.h \
251         paragraph.C \
252         paragraph.h \
253         paragraph_funcs.C \
254         paragraph_funcs.h \
255         paragraph_pimpl.C \
256         paragraph_pimpl.h \
257         pariterator.C \
258         pariterator.h \
259         $(ASPELL) $(PSPELL) $(ISPELL) SpellBase.C \
260         SpellBase.h \
261         rowpainter.C \
262         rowpainter.h \
263         sgml.C \
264         sgml.h \
265         tabular.C \
266         tabular.h \
267         tex-accent.C \
268         tex-accent.h \
269         tex-strings.C \
270         tex-strings.h \
271         texrow.C \
272         texrow.h \
273         text.C \
274         text2.C \
275         text3.C \
276         TocBackend.C \
277         TocBackend.h \
278         toc.C \
279         toc.h \
280         trans.C \
281         trans.h \
282         trans_decl.h \
283         trans_mgr.C \
284         trans_mgr.h \
285         undo.C \
286         undo.h \
287         vc-backend.C \
288         vc-backend.h \
289         version.C \
290         version.h \
291         vspace.C \
292         vspace.h
293
294 version.C: stamp-version
295         @:
296
297 stamp-version: version.C-tmp
298         if cmp -s $< version.C ; then \
299                 : ;\
300         else \
301                 rm -f version.C ;\
302                 cp $< version.C ;\
303         fi
304         echo timestamp > $@