]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
a3dca7310d803c6104a4e4cf7d3823647047a567
[lyx.git] / src / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 DISTCLEANFILES += config.h libintl.h
4
5 MAINTAINERCLEANFILES += $(srcdir)/config.h.in
6
7 SUBDIRS = mathed insets graphics support frontends tex2lyx
8
9 EXTRA_DIST = config.h.in stamp-h.in cheaders version.C.in \
10         Sectioning.h \
11         Sectioning.C \
12         Variables.C \
13         Variables.h \
14         paper.h
15
16 LYX_PRE_LIBS = mathed/libmathed.la insets/libinsets.la \
17         frontends/libfrontends.la
18
19 LYX_POST_LIBS = frontends/controllers/libcontrollers.la \
20         graphics/libgraphics.la \
21         support/libsupport.la
22
23 if USE_INCLUDED_BOOST
24 BOOST_LIBS = ../boost/libs/regex/src/libboostregex.la \
25         ../boost/libs/signals/src/libboostsignals.la
26 else
27 BOOST_LIBS = -lboost_regex -lboost_signals
28 endif
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 INCLUDES = $(BOOST_INCLUDES)
56
57 BUILT_SOURCES = version.C
58
59 lyx_SOURCES = \
60         Bidi.C \
61         Bidi.h \
62         BufferView.C \
63         BufferView.h \
64         BufferView_pimpl.C \
65         BufferView_pimpl.h \
66         Bullet.C \
67         Bullet.h \
68         BranchList.C \
69         BranchList.h \
70         Chktex.C \
71         Chktex.h \
72         CutAndPaste.C \
73         CutAndPaste.h \
74         DepTable.C \
75         DepTable.h \
76         FloatList.C \
77         FloatList.h \
78         Floating.C \
79         Floating.h \
80         FontIterator.C \
81         FontIterator.h \
82         FuncStatus.C \
83         FuncStatus.h \
84         InsetList.C \
85         InsetList.h \
86         LColor.C \
87         LColor.h \
88         LaTeX.C \
89         LaTeX.h \
90         LaTeXFeatures.C \
91         LaTeXFeatures.h \
92         LyXAction.C \
93         LyXAction.h \
94         MenuBackend.C \
95         MenuBackend.h \
96         ParagraphList_fwd.h \
97         ParagraphParameters.C \
98         ParagraphParameters.h \
99         PrinterParams.C \
100         PrinterParams.h \
101         RowList_fwd.h \
102         ShareContainer.h \
103         Spacing.C \
104         Spacing.h \
105         Thesaurus.C \
106         Thesaurus.h \
107         ToolbarBackend.C \
108         ToolbarBackend.h \
109         WordLangTuple.h \
110         aspell.C \
111         aspell_local.h \
112         author.C \
113         author.h \
114         boost.C \
115         box.h \
116         box.C \
117         broken_headers.h \
118         buffer.C \
119         buffer.h \
120         buffer_funcs.C \
121         buffer_funcs.h \
122         bufferlist.C \
123         bufferlist.h \
124         bufferparams.C \
125         bufferparams.h \
126         bufferview_funcs.C \
127         bufferview_funcs.h \
128         changes.C \
129         changes.h \
130         chset.C \
131         chset.h \
132         config.h.in \
133         converter.C \
134         converter.h \
135         counters.C \
136         counters.h \
137         cursor.C \
138         cursor.h \
139         cursor_slice.C \
140         cursor_slice.h \
141         debug.C \
142         debug.h \
143         dimension.C \
144         dimension.h \
145         dociterator.C \
146         dociterator.h \
147         dispatchresult.h \
148         encoding.C \
149         encoding.h \
150         errorlist.C \
151         errorlist.h \
152         exporter.C \
153         exporter.h \
154         gettext.C \
155         gettext.h \
156         factory.h \
157         factory.C \
158         format.C \
159         format.h \
160         funcrequest.h \
161         funcrequest.C \
162         graph.C \
163         graph.h \
164         importer.C \
165         importer.h \
166         intl.C \
167         intl.h \
168         iterators.C \
169         iterators.h \
170         kbmap.C \
171         kbmap.h \
172         kbsequence.C \
173         kbsequence.h \
174         language.C \
175         language.h \
176         lastfiles.C \
177         lastfiles.h \
178         layout.h \
179         lengthcommon.C \
180         lengthcommon.h \
181         lfuns.h \
182         lyx_cb.C \
183         lyx_cb.h \
184         lyx_main.C \
185         lyx_main.h \
186         lyx_sty.C \
187         lyx_sty.h \
188         lyxfont.C \
189         lyxfont.h \
190         lyxfind.C \
191         lyxfind.h \
192         lyxfunc.C \
193         lyxfunc.h \
194         lyxgluelength.C \
195         lyxgluelength.h \
196         lyxlayout.C \
197         lyxlayout.h \
198         lyxlayout_ptr_fwd.h \
199         lyxlength.C \
200         lyxlength.h \
201         lyxlex.C \
202         lyxlex.h \
203         lyxlex_pimpl.C \
204         lyxlex_pimpl.h \
205         lyxrc.C \
206         lyxrc.h \
207         lyxrow.C \
208         lyxrow.h \
209         lyxrow_funcs.C \
210         lyxrow_funcs.h \
211         lyxserver.C \
212         lyxserver.h \
213         lyxsocket.C \
214         lyxsocket.h \
215         lyxtext.h \
216         lyxtextclass.C \
217         lyxtextclass.h \
218         lyxtextclasslist.C \
219         lyxtextclasslist.h \
220         lyxvc.C \
221         lyxvc.h \
222         messages.C \
223         messages.h \
224         metricsinfo.C \
225         metricsinfo.h \
226         output.C \
227         output.h \
228         outputparams.h \
229         output_docbook.C \
230         output_docbook.h \
231         output_latex.C \
232         output_latex.h \
233         output_linuxdoc.C \
234         output_linuxdoc.h \
235         output_plaintext.C \
236         output_plaintext.h \
237         paper.h \
238         paragraph.C \
239         paragraph.h \
240         paragraph_funcs.C \
241         paragraph_funcs.h \
242         paragraph_pimpl.C \
243         paragraph_pimpl.h \
244         SpellBase.h \
245         ispell.C \
246         ispell.h \
247         pspell.C \
248         pspell.h \
249         rowpainter.C \
250         rowpainter.h \
251         sgml.C \
252         sgml.h \
253         tabular.C \
254         tabular.h \
255         tex-accent.C \
256         tex-accent.h \
257         tex-strings.C \
258         tex-strings.h \
259         texrow.C \
260         texrow.h \
261         text.C \
262         text2.C \
263         text3.C \
264         toc.C \
265         toc.h \
266         trans.C \
267         trans.h \
268         trans_decl.h \
269         trans_mgr.C \
270         trans_mgr.h \
271         undo.C \
272         undo.h \
273         vc-backend.C \
274         vc-backend.h \
275         version.C \
276         version.h \
277         vspace.C \
278         vspace.h
279
280 dist-hook:
281         cd $(distdir) ; rm -rf `find cheaders -name \*CVS\*`
282
283 version.C: stamp-version
284         @:
285
286 stamp-version: version.C-tmp
287         if cmp -s $< version.C ; then \
288                 : ;\
289         else \
290                 rm -f version.C ;\
291                 cp $< version.C ;\
292         fi
293         echo timestamp > $@