]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
more cursor dispatch
[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         Bidi.C \
61         Bidi.h \
62         BufferView.C \
63         BufferView.h \
64         BufferView_pimpl.C \
65         BufferView_pimpl.h \
66         Bullet.C \
67         Bullet.h \
68         BranchList.C \
69         BranchList.h \
70         Chktex.C \
71         Chktex.h \
72         CutAndPaste.C \
73         CutAndPaste.h \
74         DepTable.C \
75         DepTable.h \
76         FloatList.C \
77         FloatList.h \
78         Floating.C \
79         Floating.h \
80         FuncStatus.C \
81         FuncStatus.h \
82         InsetList.C \
83         InsetList.h \
84         LColor.C \
85         LColor.h \
86         LaTeX.C \
87         LaTeX.h \
88         LaTeXFeatures.C \
89         LaTeXFeatures.h \
90         LyXAction.C \
91         LyXAction.h \
92         MenuBackend.C \
93         MenuBackend.h \
94         ParagraphList_fwd.h \
95         ParagraphParameters.C \
96         ParagraphParameters.h \
97         ParameterStruct.h \
98         PrinterParams.C \
99         PrinterParams.h \
100         RowList_fwd.h \
101         ShareContainer.h \
102         Spacing.C \
103         Spacing.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         cursor.C \
138         cursor.h \
139         cursor_slice.C \
140         cursor_slice.h \
141         debug.C \
142         debug.h \
143         dimension.C \
144         dimension.h \
145         dispatchresult.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         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         output.C \
224         output.h \
225         outputparams.h \
226         output_docbook.C \
227         output_docbook.h \
228         output_latex.C \
229         output_latex.h \
230         output_linuxdoc.C \
231         output_linuxdoc.h \
232         output_plaintext.C \
233         output_plaintext.h \
234         paper.h \
235         paragraph.C \
236         paragraph.h \
237         paragraph_funcs.C \
238         paragraph_funcs.h \
239         paragraph_pimpl.C \
240         paragraph_pimpl.h \
241         PosIterator.h \
242         PosIterator.C \
243         SpellBase.h \
244         ispell.C \
245         ispell.h \
246         pspell.C \
247         pspell.h \
248         rowpainter.C \
249         rowpainter.h \
250         sgml.C \
251         sgml.h \
252         tabular.C \
253         tabular.h \
254         tex-accent.C \
255         tex-accent.h \
256         tex-strings.C \
257         tex-strings.h \
258         texrow.C \
259         texrow.h \
260         text.C \
261         text2.C \
262         text3.C \
263         toc.C \
264         toc.h \
265         trans.C \
266         trans.h \
267         trans_decl.h \
268         trans_mgr.C \
269         trans_mgr.h \
270         undo.C \
271         undo.h \
272         vc-backend.C \
273         vc-backend.h \
274         version.C \
275         version.h \
276         vspace.C \
277         vspace.h
278
279 dist-hook:
280         cd $(distdir) ; rm -rf `find cheaders -name \*CVS\*`
281
282 version.C: stamp-version
283         @:
284
285 stamp-version: version.C-tmp
286         if cmp -s $< version.C ; then \
287                 : ;\
288         else \
289                 rm -f version.C ;\
290                 cp $< version.C ;\
291         fi
292         echo timestamp > $@