]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
ws changes only
[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         TextCache.C \
106         TextCache.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         encoding.C \
147         encoding.h \
148         errorlist.C \
149         errorlist.h \
150         exporter.C \
151         exporter.h \
152         gettext.C \
153         gettext.h \
154         factory.h \
155         factory.C \
156         format.C \
157         format.h \
158         funcrequest.h \
159         funcrequest.C \
160         graph.C \
161         graph.h \
162         importer.C \
163         importer.h \
164         intl.C \
165         intl.h \
166         iterators.C \
167         iterators.h \
168         kbmap.C \
169         kbmap.h \
170         kbsequence.C \
171         kbsequence.h \
172         language.C \
173         language.h \
174         lastfiles.C \
175         lastfiles.h \
176         layout.h \
177         lengthcommon.C \
178         lengthcommon.h \
179         lyx_cb.C \
180         lyx_cb.h \
181         lyx_main.C \
182         lyx_main.h \
183         lyx_sty.C \
184         lyx_sty.h \
185         lyxcursor.C \
186         lyxcursor.h \
187         lyxfont.C \
188         lyxfont.h \
189         lyxfind.C \
190         lyxfind.h \
191         lyxfunc.C \
192         lyxfunc.h \
193         lyxgluelength.C \
194         lyxgluelength.h \
195         lyxlayout.C \
196         lyxlayout.h \
197         lyxlayout_ptr_fwd.h \
198         lyxlength.C \
199         lyxlength.h \
200         lyxlex.C \
201         lyxlex.h \
202         lyxlex_pimpl.C \
203         lyxlex_pimpl.h \
204         lyxrc.C \
205         lyxrc.h \
206         lyxrow.C \
207         lyxrow.h \
208         lyxrow_funcs.C \
209         lyxrow_funcs.h \
210         lyxserver.C \
211         lyxserver.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         undo_funcs.C \
262         undo_funcs.h \
263         vc-backend.C \
264         vc-backend.h \
265         version.C \
266         version.h \
267         vspace.C \
268         vspace.h
269
270 dist-hook:
271         cd $(distdir) ; rm -rf `find cheaders -name \*CVS\*`
272
273 version.C: stamp-version
274         @:
275
276 stamp-version: version.C-tmp
277         if cmp -s $< version.C ; then \
278                 : ;\
279         else \
280                 rm -f version.C ;\
281                 cp $< version.C ;\
282         fi
283         echo timestamp > $@