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