]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
25ff4213c9286e492ec677220a5cf311849ded69
[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         FuncStatus.C \
81         FuncStatus.h \
82         InsetList.C \
83         InsetList.h \
84         LColor.C \
85         LColor.h \
86         LaTeX.C \
87         LaTeX.h \
88         LaTeXFeatures.C \
89         LaTeXFeatures.h \
90         latexrunparams.h \
91         LyXAction.C \
92         LyXAction.h \
93         MenuBackend.C \
94         MenuBackend.h \
95         paragraph_funcs.C \
96         paragraph_funcs.h \
97         ParagraphList_fwd.h \
98         ParagraphParameters.C \
99         ParagraphParameters.h \
100         ParameterStruct.h \
101         PrinterParams.C \
102         PrinterParams.h \
103         RowList_fwd.h \
104         ShareContainer.h \
105         Spacing.C \
106         Spacing.h \
107         Thesaurus.C \
108         Thesaurus.h \
109         ToolbarBackend.C \
110         ToolbarBackend.h \
111         WordLangTuple.h \
112         aspell.C \
113         aspell_local.h \
114         author.C \
115         author.h \
116         boost.C \
117         box.h \
118         box.C \
119         broken_headers.h \
120         buffer.C \
121         buffer.h \
122         buffer_funcs.C \
123         buffer_funcs.h \
124         bufferlist.C \
125         bufferlist.h \
126         bufferparams.C \
127         bufferparams.h \
128         bufferview_funcs.C \
129         bufferview_funcs.h \
130         changes.C \
131         changes.h \
132         chset.C \
133         chset.h \
134         lfuns.h \
135         config.h.in \
136         converter.C \
137         converter.h \
138         counters.C \
139         counters.h \
140         cursor.C \
141         cursor.h \
142         debug.C \
143         debug.h \
144         dimension.C \
145         dimension.h \
146         dispatchresult.h \
147         encoding.C \
148         encoding.h \
149         errorlist.C \
150         errorlist.h \
151         exporter.C \
152         exporter.h \
153         gettext.C \
154         gettext.h \
155         factory.h \
156         factory.C \
157         format.C \
158         format.h \
159         funcrequest.h \
160         funcrequest.C \
161         graph.C \
162         graph.h \
163         importer.C \
164         importer.h \
165         intl.C \
166         intl.h \
167         iterators.C \
168         iterators.h \
169         kbmap.C \
170         kbmap.h \
171         kbsequence.C \
172         kbsequence.h \
173         language.C \
174         language.h \
175         lastfiles.C \
176         lastfiles.h \
177         layout.h \
178         lengthcommon.C \
179         lengthcommon.h \
180         lyx_cb.C \
181         lyx_cb.h \
182         lyx_main.C \
183         lyx_main.h \
184         lyx_sty.C \
185         lyx_sty.h \
186         lyxcursor.C \
187         lyxcursor.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         paper.h \
227         paragraph.C \
228         paragraph.h \
229         paragraph_pimpl.C \
230         paragraph_pimpl.h \
231         PosIterator.h \
232         PosIterator.C \
233         SpellBase.h \
234         ispell.C \
235         ispell.h \
236         pspell.C \
237         pspell.h \
238         rowpainter.C \
239         rowpainter.h \
240         sgml.C \
241         sgml.h \
242         tabular.C \
243         tabular.h \
244         tex-accent.C \
245         tex-accent.h \
246         tex-strings.C \
247         tex-strings.h \
248         texrow.C \
249         texrow.h \
250         text.C \
251         text2.C \
252         text3.C \
253         textcursor.C \
254         textcursor.h \
255         text_funcs.C \
256         text_funcs.h \
257         toc.C \
258         toc.h \
259         trans.C \
260         trans.h \
261         trans_decl.h \
262         trans_mgr.C \
263         trans_mgr.h \
264         undo.C \
265         undo.h \
266         vc-backend.C \
267         vc-backend.h \
268         version.C \
269         version.h \
270         vspace.C \
271         vspace.h
272
273 dist-hook:
274         cd $(distdir) ; rm -rf `find cheaders -name \*CVS\*`
275
276 version.C: stamp-version
277         @:
278
279 stamp-version: version.C-tmp
280         if cmp -s $< version.C ; then \
281                 : ;\
282         else \
283                 rm -f version.C ;\
284                 cp $< version.C ;\
285         fi
286         echo timestamp > $@