]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
The "I want this in now" patch.
[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 bin_PROGRAMS = lyx
18
19 LYX_CONV_LIBS = mathed/libmathed.la insets/libinsets.la \
20         frontends/libfrontends.la \
21         $(FRONTEND_GUILIB) \
22         frontends/controllers/libcontrollers.la \
23         graphics/libgraphics.la \
24         support/libsupport.la
25
26 if USE_INCLUDED_BOOST
27 BOOST_LIBS = ../boost/libs/regex/src/libboostregex.la \
28         ../boost/libs/signals/src/libboostsignals.la
29 else
30 BOOST_LIBS = -lboost_regex -lboost_signals
31 endif
32
33 lyx_LDADD = $(LYX_CONV_LIBS) $(BOOST_LIBS) $(INTLLIBS) \
34         $(AIKSAURUS_LIBS) @LIBS@
35
36 lyx_DEPENDENCIES = $(LYX_CONV_LIBS) $(BOOST_LIBS) $(INTLLIBS)
37
38 #lyx_LDFLAGS=-Wl,-O1
39
40 INCLUDES = $(BOOST_INCLUDES)
41
42 localedir = $(datadir)/locale
43
44 BUILT_SOURCES = version.C
45
46 lyx_SOURCES = \
47         BufferView.C \
48         BufferView.h \
49         BufferView_pimpl.C \
50         BufferView_pimpl.h \
51         Bullet.C \
52         Bullet.h \
53         Chktex.C \
54         Chktex.h \
55         CutAndPaste.C \
56         CutAndPaste.h \
57         DepTable.C \
58         DepTable.h \
59         FloatList.C \
60         FloatList.h \
61         Floating.C \
62         Floating.h \
63         FuncStatus.C \
64         FuncStatus.h \
65         InsetList.C \
66         InsetList.h \
67         LColor.C \
68         LColor.h \
69         LString.h \
70         LaTeX.C \
71         LaTeX.h \
72         LaTeXFeatures.C \
73         LaTeXFeatures.h \
74         latexrunparams.h \
75         Lsstream.h \
76         LyXAction.C \
77         LyXAction.h \
78         MenuBackend.C \
79         MenuBackend.h \
80         paragraph_funcs.C \
81         paragraph_funcs.h \
82         ParagraphList.C \
83         ParagraphList.h \
84         ParagraphParameters.C \
85         ParagraphParameters.h \
86         ParameterStruct.h \
87         PrinterParams.h \
88         RowList.h \
89         ShareContainer.h \
90         Spacing.C \
91         Spacing.h \
92         TextCache.C \
93         TextCache.h \
94         Thesaurus.C \
95         Thesaurus.h \
96         ToolbarBackend.C \
97         ToolbarBackend.h \
98         WordLangTuple.h \
99         aspell.C \
100         aspell_local.h \
101         author.C \
102         author.h \
103         boost.C \
104         box.h \
105         box.C \
106         broken_headers.h \
107         buffer.C \
108         buffer.h \
109         bufferlist.C \
110         bufferlist.h \
111         bufferparams.C \
112         bufferparams.h \
113         bufferview_funcs.C \
114         bufferview_funcs.h \
115         changes.C \
116         changes.h \
117         chset.C \
118         chset.h \
119         lfuns.h \
120         config.h.in \
121         converter.C \
122         converter.h \
123         counters.C \
124         counters.h \
125         debug.C \
126         debug.h \
127         dimension.C \
128         dimension.h \
129         encoding.C \
130         encoding.h \
131         errorlist.C \
132         errorlist.h \
133         exporter.C \
134         exporter.h \
135         gettext.C \
136         gettext.h \
137         factory.h \
138         factory.C \
139         format.C \
140         format.h \
141         funcrequest.h \
142         funcrequest.C \
143         graph.C \
144         graph.h \
145         importer.C \
146         importer.h \
147         intl.C \
148         intl.h \
149         iterators.C \
150         iterators.h \
151         kbmap.C \
152         kbmap.h \
153         kbsequence.C \
154         kbsequence.h \
155         language.C \
156         language.h \
157         lastfiles.C \
158         lastfiles.h \
159         layout.h \
160         lengthcommon.C \
161         lengthcommon.h \
162         lyx_cb.C \
163         lyx_cb.h \
164         lyx_main.C \
165         lyx_main.h \
166         lyx_sty.C \
167         lyx_sty.h \
168         lyxcursor.C \
169         lyxcursor.h \
170         lyxfont.C \
171         lyxfont.h \
172         lyxfind.C \
173         lyxfind.h \
174         lyxfunc.C \
175         lyxfunc.h \
176         lyxgluelength.C \
177         lyxgluelength.h \
178         lyxlayout.C \
179         lyxlayout.h \
180         lyxlayout_ptr_fwd.h \
181         lyxlength.C \
182         lyxlength.h \
183         lyxlex.C \
184         lyxlex.h \
185         lyxlex_pimpl.C \
186         lyxlex_pimpl.h \
187         lyxrc.C \
188         lyxrc.h \
189         lyxrow.C \
190         lyxrow.h \
191         lyxrow_funcs.C \
192         lyxrow_funcs.h \
193         lyxserver.C \
194         lyxserver.h \
195         lyxtext.h \
196         lyxtextclass.C \
197         lyxtextclass.h \
198         lyxtextclasslist.C \
199         lyxtextclasslist.h \
200         lyxvc.C \
201         lyxvc.h \
202         main.C \
203         messages.C \
204         messages.h \
205         metricsinfo.C \
206         metricsinfo.h \
207         paragraph.C \
208         paragraph.h \
209         paragraph_pimpl.C \
210         paragraph_pimpl.h \
211         SpellBase.h \
212         ispell.C \
213         ispell.h \
214         pspell.C \
215         pspell.h \
216         rowpainter.C \
217         rowpainter.h \
218         sgml.C \
219         sgml.h \
220         tabular.C \
221         tabular.h \
222         tabular_funcs.C \
223         tabular_funcs.h \
224         tex-accent.C \
225         tex-accent.h \
226         tex-strings.C \
227         tex-strings.h \
228         texrow.C \
229         texrow.h \
230         text.C \
231         text2.C \
232         text3.C \
233         text_funcs.C \
234         text_funcs.h \
235         toc.C \
236         toc.h \
237         trans.C \
238         trans.h \
239         trans_decl.h \
240         trans_mgr.C \
241         trans_mgr.h \
242         undo.C \
243         undo.h \
244         undo_funcs.C \
245         undo_funcs.h \
246         vc-backend.C \
247         vc-backend.h \
248         version.C \
249         version.h \
250         vspace.C \
251         vspace.h
252
253 lyx_main.o: lyx_main.C lyx_main.h config.h version.h \
254         lyxrc.h support/path.h support/filetools.h \
255         bufferlist.h debug.h support/FileInfo.h lastfiles.h intl.h \
256         lyxserver.h layout.h gettext.h kbmap.h lfuns.h language.h
257         $(CXXCOMPILE) -DLYX_DIR=\"$(pkgdatadir)\" \
258           -DTOP_SRCDIR=\"$(top_srcdir)\" -c $(top_srcdir)/src/lyx_main.C
259
260 messages.o: messages.C messages.h config.h LString.h support/filetools.h
261         $(CXXCOMPILE) -DLOCALEDIR=\"$(localedir)\" -c $(top_srcdir)/src/messages.C
262
263 dist-hook:
264         cd $(distdir) ; rm -rf `find cheaders -name \*CVS\*`