]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
layout file converter for layout files in old format
[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)
29
30 OTHERLIBS = $(BOOST_LIBS) $(INTLLIBS) $(AIKSAURUS_LIBS) @LIBS@
31
32 bin_PROGRAMS = lyx
33 noinst_PROGRAMS = $(FRONTENDS_PROGS)
34 EXTRA_PROGRAMS = lyx-xforms lyx-qt lyx-gtk
35
36 lyx_xforms_LDADD = $(lyx_OBJECTS) $(LYX_PRE_LIBS) \
37         frontends/xforms/libxforms.la $(LYX_POST_LIBS) $(OTHERLIBS)
38
39 lyx_xforms_SOURCES = main.C
40
41 lyx_qt_LDADD = $(lyx_OBJECTS) $(LYX_PRE_LIBS) \
42         frontends/qt2/libqt2.la $(LYX_POST_LIBS) $(OTHERLIBS)
43 lyx_qt_SOURCES = main.C
44
45 lyx_gtk_LDADD = $(lyx_OBJECTS) $(LYX_PRE_LIBS) \
46         frontends/gtk/libgtk.la $(LYX_POST_LIBS) $(OTHERLIBS)
47 lyx_gtk_SOURCES = main.C
48
49 lyx$(EXEEXT): $(FRONTENDS_PROGS)
50         rm -f $@
51         $(LN_S) $< $@
52
53 #lyx_LDFLAGS=-Wl,-O1
54
55 BUILT_SOURCES = $(PCH_FILE) version.C
56
57 AM_CPPFLAGS += $(PCH_FLAGS) $(BOOST_INCLUDES)
58
59 if USE_ASPELL
60 ASPELL = aspell.C aspell_local.h
61 endif
62 if USE_PSPELL
63 PSPELL = pspell.C pspell.h
64 endif
65 if USE_ISPELL
66 ISPELL = ispell.C ispell.h
67 endif
68
69
70
71 lyx_SOURCES = \
72         Bidi.C \
73         Bidi.h \
74         BufferView.C \
75         BufferView.h \
76         BufferView_pimpl.C \
77         BufferView_pimpl.h \
78         Bullet.C \
79         Bullet.h \
80         BranchList.C \
81         BranchList.h \
82         Chktex.C \
83         Chktex.h \
84         CutAndPaste.C \
85         CutAndPaste.h \
86         DepTable.C \
87         DepTable.h \
88         FloatList.C \
89         FloatList.h \
90         Floating.C \
91         Floating.h \
92         FontIterator.C \
93         FontIterator.h \
94         FuncStatus.C \
95         FuncStatus.h \
96         InsetList.C \
97         InsetList.h \
98         LColor.C \
99         LColor.h \
100         LaTeX.C \
101         LaTeX.h \
102         LaTeXFeatures.C \
103         LaTeXFeatures.h \
104         LyXAction.C \
105         LyXAction.h \
106         MenuBackend.C \
107         MenuBackend.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         lastfiles.C \
187         lastfiles.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_linuxdoc.C \
247         output_linuxdoc.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         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 > $@