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