]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
a0ffb04762d477f1eee9fa07366c861917ec64f8
[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         BufferView.C \
61         BufferView.h \
62         BufferView_pimpl.C \
63         BufferView_pimpl.h \
64         Bullet.C \
65         Bullet.h \
66         BranchList.C \
67         BranchList.h \
68         Chktex.C \
69         Chktex.h \
70         CutAndPaste.C \
71         CutAndPaste.h \
72         DepTable.C \
73         DepTable.h \
74         FloatList.C \
75         FloatList.h \
76         Floating.C \
77         Floating.h \
78         FuncStatus.C \
79         FuncStatus.h \
80         InsetList.C \
81         InsetList.h \
82         LColor.C \
83         LColor.h \
84         LaTeX.C \
85         LaTeX.h \
86         LaTeXFeatures.C \
87         LaTeXFeatures.h \
88         latexrunparams.h \
89         LyXAction.C \
90         LyXAction.h \
91         MenuBackend.C \
92         MenuBackend.h \
93         paragraph_funcs.C \
94         paragraph_funcs.h \
95         ParagraphList_fwd.h \
96         ParagraphParameters.C \
97         ParagraphParameters.h \
98         ParameterStruct.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         lfuns.h \
133         config.h.in \
134         converter.C \
135         converter.h \
136         counters.C \
137         counters.h \
138         cursor.C \
139         cursor.h \
140         debug.C \
141         debug.h \
142         dimension.C \
143         dimension.h \
144         encoding.C \
145         encoding.h \
146         errorlist.C \
147         errorlist.h \
148         exporter.C \
149         exporter.h \
150         gettext.C \
151         gettext.h \
152         factory.h \
153         factory.C \
154         format.C \
155         format.h \
156         funcrequest.h \
157         funcrequest.C \
158         graph.C \
159         graph.h \
160         importer.C \
161         importer.h \
162         intl.C \
163         intl.h \
164         iterators.C \
165         iterators.h \
166         kbmap.C \
167         kbmap.h \
168         kbsequence.C \
169         kbsequence.h \
170         language.C \
171         language.h \
172         lastfiles.C \
173         lastfiles.h \
174         layout.h \
175         lengthcommon.C \
176         lengthcommon.h \
177         lyx_cb.C \
178         lyx_cb.h \
179         lyx_main.C \
180         lyx_main.h \
181         lyx_sty.C \
182         lyx_sty.h \
183         lyxcursor.C \
184         lyxcursor.h \
185         lyxfont.C \
186         lyxfont.h \
187         lyxfind.C \
188         lyxfind.h \
189         lyxfunc.C \
190         lyxfunc.h \
191         lyxgluelength.C \
192         lyxgluelength.h \
193         lyxlayout.C \
194         lyxlayout.h \
195         lyxlayout_ptr_fwd.h \
196         lyxlength.C \
197         lyxlength.h \
198         lyxlex.C \
199         lyxlex.h \
200         lyxlex_pimpl.C \
201         lyxlex_pimpl.h \
202         lyxrc.C \
203         lyxrc.h \
204         lyxrow.C \
205         lyxrow.h \
206         lyxrow_funcs.C \
207         lyxrow_funcs.h \
208         lyxserver.C \
209         lyxserver.h \
210         lyxsocket.C \
211         lyxsocket.h \
212         lyxtext.h \
213         lyxtextclass.C \
214         lyxtextclass.h \
215         lyxtextclasslist.C \
216         lyxtextclasslist.h \
217         lyxvc.C \
218         lyxvc.h \
219         messages.C \
220         messages.h \
221         metricsinfo.C \
222         metricsinfo.h \
223         paper.h \
224         paragraph.C \
225         paragraph.h \
226         paragraph_pimpl.C \
227         paragraph_pimpl.h \
228         SpellBase.h \
229         ispell.C \
230         ispell.h \
231         pspell.C \
232         pspell.h \
233         rowpainter.C \
234         rowpainter.h \
235         sgml.C \
236         sgml.h \
237         tabular.C \
238         tabular.h \
239         tex-accent.C \
240         tex-accent.h \
241         tex-strings.C \
242         tex-strings.h \
243         texrow.C \
244         texrow.h \
245         text.C \
246         text2.C \
247         text3.C \
248         textcursor.C \
249         textcursor.h \
250         text_funcs.C \
251         text_funcs.h \
252         toc.C \
253         toc.h \
254         trans.C \
255         trans.h \
256         trans_decl.h \
257         trans_mgr.C \
258         trans_mgr.h \
259         undo.C \
260         undo.h \
261         vc-backend.C \
262         vc-backend.h \
263         version.C \
264         version.h \
265         vspace.C \
266         vspace.h
267
268 dist-hook:
269         cd $(distdir) ; rm -rf `find cheaders -name \*CVS\*`
270
271 version.C: stamp-version
272         @:
273
274 stamp-version: version.C-tmp
275         if cmp -s $< version.C ; then \
276                 : ;\
277         else \
278                 rm -f version.C ;\
279                 cp $< version.C ;\
280         fi
281         echo timestamp > $@