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