]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
9d489999b9b9ae3a8975a36ac826eab5d2d5d76d
[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         ParameterStruct.h \
100         PrinterParams.C \
101         PrinterParams.h \
102         RowList_fwd.h \
103         ShareContainer.h \
104         Spacing.C \
105         Spacing.h \
106         Thesaurus.C \
107         Thesaurus.h \
108         ToolbarBackend.C \
109         ToolbarBackend.h \
110         WordLangTuple.h \
111         aspell.C \
112         aspell_local.h \
113         author.C \
114         author.h \
115         boost.C \
116         box.h \
117         box.C \
118         broken_headers.h \
119         buffer.C \
120         buffer.h \
121         buffer_funcs.C \
122         buffer_funcs.h \
123         bufferlist.C \
124         bufferlist.h \
125         bufferparams.C \
126         bufferparams.h \
127         bufferview_funcs.C \
128         bufferview_funcs.h \
129         changes.C \
130         changes.h \
131         chset.C \
132         chset.h \
133         lfuns.h \
134         config.h.in \
135         converter.C \
136         converter.h \
137         counters.C \
138         counters.h \
139         cursor.C \
140         cursor.h \
141         cursor_slice.C \
142         cursor_slice.h \
143         debug.C \
144         debug.h \
145         dimension.C \
146         dimension.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         lyx_cb.C \
182         lyx_cb.h \
183         lyx_main.C \
184         lyx_main.h \
185         lyx_sty.C \
186         lyx_sty.h \
187         lyxfont.C \
188         lyxfont.h \
189         lyxfind.C \
190         lyxfind.h \
191         lyxfunc.C \
192         lyxfunc.h \
193         lyxgluelength.C \
194         lyxgluelength.h \
195         lyxlayout.C \
196         lyxlayout.h \
197         lyxlayout_ptr_fwd.h \
198         lyxlength.C \
199         lyxlength.h \
200         lyxlex.C \
201         lyxlex.h \
202         lyxlex_pimpl.C \
203         lyxlex_pimpl.h \
204         lyxrc.C \
205         lyxrc.h \
206         lyxrow.C \
207         lyxrow.h \
208         lyxrow_funcs.C \
209         lyxrow_funcs.h \
210         lyxserver.C \
211         lyxserver.h \
212         lyxsocket.C \
213         lyxsocket.h \
214         lyxtext.h \
215         lyxtextclass.C \
216         lyxtextclass.h \
217         lyxtextclasslist.C \
218         lyxtextclasslist.h \
219         lyxvc.C \
220         lyxvc.h \
221         messages.C \
222         messages.h \
223         metricsinfo.C \
224         metricsinfo.h \
225         output.C \
226         output.h \
227         outputparams.h \
228         output_docbook.C \
229         output_docbook.h \
230         output_latex.C \
231         output_latex.h \
232         output_linuxdoc.C \
233         output_linuxdoc.h \
234         output_plaintext.C \
235         output_plaintext.h \
236         paper.h \
237         paragraph.C \
238         paragraph.h \
239         paragraph_funcs.C \
240         paragraph_funcs.h \
241         paragraph_pimpl.C \
242         paragraph_pimpl.h \
243         PosIterator.h \
244         PosIterator.C \
245         SpellBase.h \
246         ispell.C \
247         ispell.h \
248         pspell.C \
249         pspell.h \
250         rowpainter.C \
251         rowpainter.h \
252         sgml.C \
253         sgml.h \
254         tabular.C \
255         tabular.h \
256         tex-accent.C \
257         tex-accent.h \
258         tex-strings.C \
259         tex-strings.h \
260         texrow.C \
261         texrow.h \
262         text.C \
263         text2.C \
264         text3.C \
265         toc.C \
266         toc.h \
267         trans.C \
268         trans.h \
269         trans_decl.h \
270         trans_mgr.C \
271         trans_mgr.h \
272         undo.C \
273         undo.h \
274         vc-backend.C \
275         vc-backend.h \
276         version.C \
277         version.h \
278         vspace.C \
279         vspace.h
280
281 dist-hook:
282         cd $(distdir) ; rm -rf `find cheaders -name \*CVS\*`
283
284 version.C: stamp-version
285         @:
286
287 stamp-version: version.C-tmp
288         if cmp -s $< version.C ; then \
289                 : ;\
290         else \
291                 rm -f version.C ;\
292                 cp $< version.C ;\
293         fi
294         echo timestamp > $@