]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
77e0be441714f5b2637e1b29ca0d092b10529bb9
[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         tracer.C \
15         tracer.h
16
17 LYX_PRE_LIBS = mathed/libmathed.la insets/libinsets.la \
18         frontends/libfrontends.la 
19
20 LYX_POST_LIBS = frontends/controllers/libcontrollers.la \
21         graphics/libgraphics.la \
22         support/libsupport.la
23
24 if USE_INCLUDED_BOOST
25 BOOST_LIBS = ../boost/libs/regex/src/libboostregex.la \
26         ../boost/libs/signals/src/libboostsignals.la
27 else
28 BOOST_LIBS = -lboost_regex -lboost_signals
29 endif
30
31 OTHERLIBS = $(BOOST_LIBS) $(INTLLIBS) $(AIKSAURUS_LIBS) @LIBS@
32
33 bin_PROGRAMS = lyx 
34 noinst_PROGRAMS = $(FRONTENDS_PROGS)
35 EXTRA_PROGRAMS = lyx-xforms lyx-qt
36
37 lyx_xforms_LDADD = $(lyx_OBJECTS) $(LYX_PRE_LIBS) \
38         frontends/xforms/libxforms.la $(LYX_POST_LIBS) $(OTHERLIBS) 
39
40 lyx_xforms_SOURCES = main.C
41
42 lyx_qt_LDADD = $(lyx_OBJECTS) $(LYX_PRE_LIBS) \
43         frontends/qt2/libqt2.la $(LYX_POST_LIBS) $(OTHERLIBS)
44 lyx_qt_SOURCES = main.C
45
46 lyx$(EXEEXT): $(FRONTENDS_PROGS)
47         rm -f $@
48         $(LN_S) $< $@
49
50 #lyx_LDFLAGS=-Wl,-O1
51
52 INCLUDES = $(BOOST_INCLUDES)
53
54 BUILT_SOURCES = version.C
55
56 lyx_SOURCES = \
57         BufferView.C \
58         BufferView.h \
59         BufferView_pimpl.C \
60         BufferView_pimpl.h \
61         Bullet.C \
62         Bullet.h \
63         Chktex.C \
64         Chktex.h \
65         CutAndPaste.C \
66         CutAndPaste.h \
67         DepTable.C \
68         DepTable.h \
69         FloatList.C \
70         FloatList.h \
71         Floating.C \
72         Floating.h \
73         FuncStatus.C \
74         FuncStatus.h \
75         InsetList.C \
76         InsetList.h \
77         LColor.C \
78         LColor.h \
79         LString.h \
80         LaTeX.C \
81         LaTeX.h \
82         LaTeXFeatures.C \
83         LaTeXFeatures.h \
84         latexrunparams.h \
85         Lsstream.h \
86         LyXAction.C \
87         LyXAction.h \
88         MenuBackend.C \
89         MenuBackend.h \
90         paragraph_funcs.C \
91         paragraph_funcs.h \
92         ParagraphList.h \
93         ParagraphParameters.C \
94         ParagraphParameters.h \
95         ParameterStruct.h \
96         PrinterParams.h \
97         RowList.h \
98         ShareContainer.h \
99         Spacing.C \
100         Spacing.h \
101         TextCache.C \
102         TextCache.h \
103         Thesaurus.C \
104         Thesaurus.h \
105         ToolbarBackend.C \
106         ToolbarBackend.h \
107         WordLangTuple.h \
108         aspell.C \
109         aspell_local.h \
110         author.C \
111         author.h \
112         boost.C \
113         box.h \
114         box.C \
115         broken_headers.h \
116         buffer.C \
117         buffer.h \
118         buffer_funcs.C \
119         buffer_funcs.h \
120         bufferlist.C \
121         bufferlist.h \
122         bufferparams.C \
123         bufferparams.h \
124         bufferview_funcs.C \
125         bufferview_funcs.h \
126         changes.C \
127         changes.h \
128         chset.C \
129         chset.h \
130         lfuns.h \
131         config.h.in \
132         converter.C \
133         converter.h \
134         counters.C \
135         counters.h \
136         debug.C \
137         debug.h \
138         dimension.C \
139         dimension.h \
140         encoding.C \
141         encoding.h \
142         errorlist.C \
143         errorlist.h \
144         exporter.C \
145         exporter.h \
146         gettext.C \
147         gettext.h \
148         factory.h \
149         factory.C \
150         format.C \
151         format.h \
152         funcrequest.h \
153         funcrequest.C \
154         graph.C \
155         graph.h \
156         importer.C \
157         importer.h \
158         intl.C \
159         intl.h \
160         iterators.C \
161         iterators.h \
162         kbmap.C \
163         kbmap.h \
164         kbsequence.C \
165         kbsequence.h \
166         language.C \
167         language.h \
168         lastfiles.C \
169         lastfiles.h \
170         layout.h \
171         lengthcommon.C \
172         lengthcommon.h \
173         lyx_cb.C \
174         lyx_cb.h \
175         lyx_main.C \
176         lyx_main.h \
177         lyx_sty.C \
178         lyx_sty.h \
179         lyxcursor.C \
180         lyxcursor.h \
181         lyxfont.C \
182         lyxfont.h \
183         lyxfind.C \
184         lyxfind.h \
185         lyxfunc.C \
186         lyxfunc.h \
187         lyxgluelength.C \
188         lyxgluelength.h \
189         lyxlayout.C \
190         lyxlayout.h \
191         lyxlayout_ptr_fwd.h \
192         lyxlength.C \
193         lyxlength.h \
194         lyxlex.C \
195         lyxlex.h \
196         lyxlex_pimpl.C \
197         lyxlex_pimpl.h \
198         lyxrc.C \
199         lyxrc.h \
200         lyxrow.C \
201         lyxrow.h \
202         lyxrow_funcs.C \
203         lyxrow_funcs.h \
204         lyxserver.C \
205         lyxserver.h \
206         lyxtext.h \
207         lyxtextclass.C \
208         lyxtextclass.h \
209         lyxtextclasslist.C \
210         lyxtextclasslist.h \
211         lyxvc.C \
212         lyxvc.h \
213         messages.C \
214         messages.h \
215         metricsinfo.C \
216         metricsinfo.h \
217         paper.h \
218         paragraph.C \
219         paragraph.h \
220         paragraph_pimpl.C \
221         paragraph_pimpl.h \
222         SpellBase.h \
223         ispell.C \
224         ispell.h \
225         pspell.C \
226         pspell.h \
227         rowpainter.C \
228         rowpainter.h \
229         sgml.C \
230         sgml.h \
231         tabular.C \
232         tabular.h \
233         tex-accent.C \
234         tex-accent.h \
235         tex-strings.C \
236         tex-strings.h \
237         texrow.C \
238         texrow.h \
239         text.C \
240         text2.C \
241         text3.C \
242         textcursor.C \
243         textcursor.h \
244         text_funcs.C \
245         text_funcs.h \
246         toc.C \
247         toc.h \
248         trans.C \
249         trans.h \
250         trans_decl.h \
251         trans_mgr.C \
252         trans_mgr.h \
253         undo.C \
254         undo.h \
255         undo_funcs.C \
256         undo_funcs.h \
257         vc-backend.C \
258         vc-backend.h \
259         version.C \
260         version.h \
261         vspace.C \
262         vspace.h
263
264 dist-hook:
265         cd $(distdir) ; rm -rf `find cheaders -name \*CVS\*`
266
267 version.C: stamp-version
268         @:
269
270 stamp-version: version.C-tmp
271         if cmp -s $< version.C ; then \
272                 : ;\
273         else \
274                 rm -f version.C ;\
275                 cp $< version.C ;\
276         fi
277         echo timestamp > $@