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