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