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