]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
Change tracking:
[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         Bullet.C \
76         Bullet.h \
77         BranchList.C \
78         BranchList.h \
79         Chktex.C \
80         Chktex.h \
81         Color.C \
82         Color.h \
83         CutAndPaste.C \
84         CutAndPaste.h \
85         DepTable.C \
86         DepTable.h \
87         FloatList.C \
88         FloatList.h \
89         Floating.C \
90         Floating.h \
91         FontIterator.C \
92         FontIterator.h \
93         FuncStatus.C \
94         FuncStatus.h \
95         InsetList.C \
96         InsetList.h \
97         LColor.C \
98         LColor.h \
99         LaTeX.C \
100         LaTeX.h \
101         LaTeXFeatures.C \
102         LaTeXFeatures.h \
103         LyXAction.C \
104         LyXAction.h \
105         MenuBackend.C \
106         MenuBackend.h \
107         ParagraphList.h \
108         ParagraphList_fwd.h \
109         ParagraphParameters.C \
110         ParagraphParameters.h \
111         PrinterParams.C \
112         PrinterParams.h \
113         RowList_fwd.h \
114         Spacing.C \
115         Spacing.h \
116         Thesaurus.C \
117         Thesaurus.h \
118         ToolbarBackend.C \
119         ToolbarBackend.h \
120         WordLangTuple.h \
121         author.C \
122         author.h \
123         boost.C \
124         box.h \
125         box.C \
126         buffer.C \
127         buffer.h \
128         buffer_funcs.C \
129         buffer_funcs.h \
130         bufferlist.C \
131         bufferlist.h \
132         bufferparams.C \
133         bufferparams.h \
134         bufferview_funcs.C \
135         bufferview_funcs.h \
136         changes.C \
137         changes.h \
138         chset.C \
139         chset.h \
140         config.h.in \
141         converter.C \
142         converter.h \
143         counters.C \
144         counters.h \
145         coordcache.C \
146         coordcache.h \
147         cursor.C \
148         cursor.h \
149         cursor_slice.C \
150         cursor_slice.h \
151         debug.C \
152         debug.h \
153         dimension.C \
154         dimension.h \
155         dociterator.C \
156         dociterator.h \
157         dispatchresult.h \
158         encoding.C \
159         encoding.h \
160         errorlist.C \
161         errorlist.h \
162         exporter.C \
163         exporter.h \
164         gettext.C \
165         gettext.h \
166         factory.h \
167         factory.C \
168         format.C \
169         format.h \
170         funcrequest.h \
171         funcrequest.C \
172         graph.C \
173         graph.h \
174         importer.C \
175         importer.h \
176         intl.C \
177         intl.h \
178         insetiterator.C \
179         insetiterator.h \
180         kbmap.C \
181         kbmap.h \
182         kbsequence.C \
183         kbsequence.h \
184         language.C \
185         language.h \
186         session.C \
187         session.h \
188         layout.h \
189         lengthcommon.C \
190         lengthcommon.h \
191         lfuns.h \
192         lyx_cb.C \
193         lyx_cb.h \
194         lyx_main.C \
195         lyx_main.h \
196         lyx_sty.C \
197         lyx_sty.h \
198         lyxfont.C \
199         lyxfont.h \
200         lyxfind.C \
201         lyxfind.h \
202         lyxfunc.C \
203         lyxfunc.h \
204         lyxgluelength.C \
205         lyxgluelength.h \
206         lyxlayout.C \
207         lyxlayout.h \
208         lyxlayout_ptr_fwd.h \
209         lyxlength.C \
210         lyxlength.h \
211         lyxlex.C \
212         lyxlex.h \
213         lyxlex_pimpl.C \
214         lyxlex_pimpl.h \
215         lyxrc.C \
216         lyxrc.h \
217         lyxrow.C \
218         lyxrow.h \
219         lyxrow_funcs.C \
220         lyxrow_funcs.h \
221         lyxserver.C \
222         lyxserver.h \
223         lyxsocket.C \
224         lyxsocket.h \
225         lyxtext.h \
226         lyxtextclass.C \
227         lyxtextclass.h \
228         lyxtextclasslist.C \
229         lyxtextclasslist.h \
230         lyxvc.C \
231         lyxvc.h \
232         messages.C \
233         messages.h \
234         metricsinfo.C \
235         metricsinfo.h \
236         mover.C \
237         mover.h \
238         output.C \
239         output.h \
240         outputparams.C \
241         outputparams.h \
242         output_docbook.C \
243         output_docbook.h \
244         output_latex.C \
245         output_latex.h \
246         output_plaintext.C \
247         output_plaintext.h \
248         paper.h \
249         paragraph.C \
250         paragraph.h \
251         paragraph_funcs.C \
252         paragraph_funcs.h \
253         paragraph_pimpl.C \
254         paragraph_pimpl.h \
255         pariterator.C \
256         pariterator.h \
257         $(ASPELL) $(PSPELL) $(ISPELL) SpellBase.C \
258         SpellBase.h \
259         rowpainter.C \
260         rowpainter.h \
261         sgml.C \
262         sgml.h \
263         tabular.C \
264         tabular.h \
265         tex-accent.C \
266         tex-accent.h \
267         tex-strings.C \
268         tex-strings.h \
269         texrow.C \
270         texrow.h \
271         text.C \
272         text2.C \
273         text3.C \
274         TocBackend.C \
275         TocBackend.h \
276         toc.C \
277         toc.h \
278         trans.C \
279         trans.h \
280         trans_decl.h \
281         trans_mgr.C \
282         trans_mgr.h \
283         undo.C \
284         undo.h \
285         vc-backend.C \
286         vc-backend.h \
287         version.C \
288         version.h \
289         vspace.C \
290         vspace.h
291
292 version.C: stamp-version
293         @:
294
295 stamp-version: version.C-tmp
296         if cmp -s $< version.C ; then \
297                 : ;\
298         else \
299                 rm -f version.C ;\
300                 cp $< version.C ;\
301         fi
302         echo timestamp > $@