]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
51ecf5885a49e8a5c6f90e6ecd41efeea09e8049
[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_DEPENDENCIES = $(LYX_CONV_LIBS) $(INCLUDED_SIGC)
22
23 lyx_LDADD = $(LYX_CONV_LIBS) $(BOOST_LIBS) @INTLLIBS@ \
24         $(PSPELL_LIBS) @AIKSAURUS_LIBS@
25
26 #lyx_LDADD = $(LYX_CONV_LIBS) $(SIGC_LIBS) $(BOOST_LIBS) $(INCLUDED_SIGC) @INTLLIBS@ \
27 #       $(PSPELL_LIBS) @AIKSAURUS_LIBS@
28
29 #  @FRONTEND_LDFLAGS@ @FRONTEND_LIBS@
30
31 #lyx_LDFLAGS=-Wl,-O1
32
33 EXTRA_DIST = config.h.in stamp-h.in cheaders ext_l10n.h version.C.in \
34         Sectioning.h \
35         Sectioning.C \
36         Variables.C \
37         Variables.h \
38         tracer.C \
39         tracer.h
40
41 INCLUDES = $(SIGC_CFLAGS) $(BOOST_INCLUDES) $(PSPELL_INCLUDES)
42 #INCLUDES = $(BOOST_INCLUDES) $(PSPELL_INCLUDES)
43
44 localedir = $(datadir)/locale
45
46 BUILT_SOURCES = version.C
47
48 lyx_SOURCES = \
49         BufferView.C \
50         BufferView.h \
51         BufferView2.C \
52         BufferView_pimpl.C \
53         BufferView_pimpl.h \
54         Bullet.C \
55         Bullet.h \
56         Chktex.C \
57         Chktex.h \
58         CutAndPaste.C \
59         CutAndPaste.h \
60         DepTable.C \
61         DepTable.h \
62         FloatList.C \
63         FloatList.h \
64         Floating.C \
65         Floating.h \
66         FuncStatus.C \
67         FuncStatus.h \
68         InsetList.C \
69         InsetList.h \
70         LColor.C \
71         LColor.h \
72         LString.h \
73         LaTeX.C \
74         LaTeX.h \
75         LaTeXFeatures.C \
76         LaTeXFeatures.h \
77         Lsstream.h \
78         LyXAction.C \
79         LyXAction.h \
80         MenuBackend.C \
81         MenuBackend.h \
82         ParagraphList.C \
83         ParagraphList.h \
84         ParagraphParameters.C \
85         ParagraphParameters.h \
86         ParameterStruct.h \
87         PrinterParams.h \
88         ShareContainer.h \
89         Spacing.C \
90         Spacing.h \
91         TextCache.C \
92         TextCache.h \
93         Thesaurus.C \
94         Thesaurus.h \
95         ToolbarDefaults.C \
96         ToolbarDefaults.h \
97         WordLangTuple.h \
98         box.h \
99         box.C \
100         broken_headers.h \
101         buffer.C \
102         buffer.h \
103         bufferlist.C \
104         bufferlist.h \
105         bufferparams.C \
106         bufferparams.h \
107         bufferview_funcs.C \
108         bufferview_funcs.h \
109         chset.C \
110         chset.h \
111         commandtags.h \
112         config.h.in \
113         converter.C \
114         converter.h \
115         counters.C \
116         counters.h \
117         debug.C \
118         debug.h \
119         encoding.C \
120         encoding.h \
121         exporter.C \
122         exporter.h \
123         gettext.C \
124         gettext.h \
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         toc.C \
206         toc.h \
207         trans.C \
208         trans.h \
209         trans_decl.h \
210         trans_mgr.C \
211         trans_mgr.h \
212         undo.C \
213         undo.h \
214         undo_funcs.C \
215         undo_funcs.h \
216         vc-backend.C \
217         vc-backend.h \
218         version.C \
219         version.h \
220         vspace.C \
221         vspace.h
222
223 lyx_main.o: lyx_main.C lyx_main.h config.h version.h \
224         lyxrc.h support/path.h support/filetools.h \
225         bufferlist.h debug.h support/FileInfo.h lastfiles.h intl.h \
226         lyxserver.h layout.h gettext.h kbmap.h commandtags.h language.h
227         $(CXXCOMPILE) -DLYX_DIR=\"$(pkgdatadir)\" \
228           -DTOP_SRCDIR=\"$(top_srcdir)\" -c $(top_srcdir)/src/lyx_main.C
229
230 main.o: main.C config.h lyx_main.h gettext.h LString.h support/filetools.h support/os.h
231         $(CXXCOMPILE) -DLOCALEDIR=\"$(localedir)\" -c $(top_srcdir)/src/main.C
232
233 dist-hook:
234         cd $(distdir) ; rm -rf `find cheaders -name \*CVS\*`