]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
some support for pch
[lyx.git] / src / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 DISTCLEANFILES += config.h libintl.h version.C stamp-version version.C-tmp
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 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 AM_CXXFLAGS = $(PCH_FLAGS)
60
61 lyx_DEPENDENCIES = $(PCH_FILE)
62
63 lyx_SOURCES = \
64         Bidi.C \
65         Bidi.h \
66         BufferView.C \
67         BufferView.h \
68         BufferView_pimpl.C \
69         BufferView_pimpl.h \
70         Bullet.C \
71         Bullet.h \
72         BranchList.C \
73         BranchList.h \
74         Chktex.C \
75         Chktex.h \
76         CutAndPaste.C \
77         CutAndPaste.h \
78         DepTable.C \
79         DepTable.h \
80         FloatList.C \
81         FloatList.h \
82         Floating.C \
83         Floating.h \
84         FontIterator.C \
85         FontIterator.h \
86         FuncStatus.C \
87         FuncStatus.h \
88         InsetList.C \
89         InsetList.h \
90         LColor.C \
91         LColor.h \
92         LaTeX.C \
93         LaTeX.h \
94         LaTeXFeatures.C \
95         LaTeXFeatures.h \
96         LyXAction.C \
97         LyXAction.h \
98         MenuBackend.C \
99         MenuBackend.h \
100         ParagraphList_fwd.h \
101         ParagraphParameters.C \
102         ParagraphParameters.h \
103         PrinterParams.C \
104         PrinterParams.h \
105         RowList_fwd.h \
106         ShareContainer.h \
107         Spacing.C \
108         Spacing.h \
109         Thesaurus.C \
110         Thesaurus.h \
111         ToolbarBackend.C \
112         ToolbarBackend.h \
113         WordLangTuple.h \
114         aspell.C \
115         aspell_local.h \
116         author.C \
117         author.h \
118         boost.C \
119         box.h \
120         box.C \
121         broken_headers.h \
122         buffer.C \
123         buffer.h \
124         buffer_funcs.C \
125         buffer_funcs.h \
126         bufferlist.C \
127         bufferlist.h \
128         bufferparams.C \
129         bufferparams.h \
130         bufferview_funcs.C \
131         bufferview_funcs.h \
132         changes.C \
133         changes.h \
134         chset.C \
135         chset.h \
136         config.h.in \
137         converter.C \
138         converter.h \
139         counters.C \
140         counters.h \
141         coordcache.C \
142         coordcache.h \
143         cursor.C \
144         cursor.h \
145         cursor_slice.C \
146         cursor_slice.h \
147         debug.C \
148         debug.h \
149         dimension.C \
150         dimension.h \
151         dociterator.C \
152         dociterator.h \
153         dispatchresult.h \
154         encoding.C \
155         encoding.h \
156         errorlist.C \
157         errorlist.h \
158         exporter.C \
159         exporter.h \
160         gettext.C \
161         gettext.h \
162         factory.h \
163         factory.C \
164         format.C \
165         format.h \
166         funcrequest.h \
167         funcrequest.C \
168         graph.C \
169         graph.h \
170         importer.C \
171         importer.h \
172         intl.C \
173         intl.h \
174         insetiterator.C \
175         insetiterator.h \
176         kbmap.C \
177         kbmap.h \
178         kbsequence.C \
179         kbsequence.h \
180         language.C \
181         language.h \
182         lastfiles.C \
183         lastfiles.h \
184         layout.h \
185         lengthcommon.C \
186         lengthcommon.h \
187         lfuns.h \
188         lyx_cb.C \
189         lyx_cb.h \
190         lyx_main.C \
191         lyx_main.h \
192         lyx_sty.C \
193         lyx_sty.h \
194         lyxfont.C \
195         lyxfont.h \
196         lyxfind.C \
197         lyxfind.h \
198         lyxfunc.C \
199         lyxfunc.h \
200         lyxgluelength.C \
201         lyxgluelength.h \
202         lyxlayout.C \
203         lyxlayout.h \
204         lyxlayout_ptr_fwd.h \
205         lyxlength.C \
206         lyxlength.h \
207         lyxlex.C \
208         lyxlex.h \
209         lyxlex_pimpl.C \
210         lyxlex_pimpl.h \
211         lyxrc.C \
212         lyxrc.h \
213         lyxrow.C \
214         lyxrow.h \
215         lyxrow_funcs.C \
216         lyxrow_funcs.h \
217         lyxserver.C \
218         lyxserver.h \
219         lyxsocket.C \
220         lyxsocket.h \
221         lyxtext.h \
222         lyxtextclass.C \
223         lyxtextclass.h \
224         lyxtextclasslist.C \
225         lyxtextclasslist.h \
226         lyxvc.C \
227         lyxvc.h \
228         messages.C \
229         messages.h \
230         metricsinfo.C \
231         metricsinfo.h \
232         output.C \
233         output.h \
234         outputparams.C \
235         outputparams.h \
236         output_docbook.C \
237         output_docbook.h \
238         output_latex.C \
239         output_latex.h \
240         output_linuxdoc.C \
241         output_linuxdoc.h \
242         output_plaintext.C \
243         output_plaintext.h \
244         paper.h \
245         paragraph.C \
246         paragraph.h \
247         paragraph_funcs.C \
248         paragraph_funcs.h \
249         paragraph_pimpl.C \
250         paragraph_pimpl.h \
251         pariterator.C \
252         pariterator.h \
253         SpellBase.h \
254         ispell.C \
255         ispell.h \
256         pspell.C \
257         pspell.h \
258         rowpainter.C \
259         rowpainter.h \
260         sgml.C \
261         sgml.h \
262         tabular.C \
263         tabular.h \
264         tex-accent.C \
265         tex-accent.h \
266         tex-strings.C \
267         tex-strings.h \
268         texrow.C \
269         texrow.h \
270         text.C \
271         text2.C \
272         text3.C \
273         toc.C \
274         toc.h \
275         trans.C \
276         trans.h \
277         trans_decl.h \
278         trans_mgr.C \
279         trans_mgr.h \
280         undo.C \
281         undo.h \
282         vc-backend.C \
283         vc-backend.h \
284         version.C \
285         version.h \
286         vspace.C \
287         vspace.h
288
289 dist_noinst_DATA = \
290         cheaders/ChangeLog \
291         cheaders/cassert \
292         cheaders/cctype \
293         cheaders/cerrno \
294         cheaders/climits \
295         cheaders/clocale \
296         cheaders/cmath \
297         cheaders/csignal \
298         cheaders/cstdarg \
299         cheaders/cstddef \
300         cheaders/cstdio \
301         cheaders/cstdlib \
302         cheaders/cstring \
303         cheaders/ctime
304
305 version.C: stamp-version
306         @:
307
308 stamp-version: version.C-tmp
309         if cmp -s $< version.C ; then \
310                 : ;\
311         else \
312                 rm -f version.C ;\
313                 cp $< version.C ;\
314         fi
315         echo timestamp > $@