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