]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
70908e7511a63a01f1341d9a7c25a7171862eb00
[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         funcrequest.h \
126         importer.C \
127         importer.h \
128         intl.C \
129         intl.h \
130         iterators.C \
131         iterators.h \
132         kbmap.C \
133         kbmap.h \
134         kbsequence.C \
135         kbsequence.h \
136         language.C \
137         language.h \
138         lastfiles.C \
139         lastfiles.h \
140         layout.h \
141         lengthcommon.C \
142         lengthcommon.h \
143         lyx_cb.C \
144         lyx_cb.h \
145         lyx_main.C \
146         lyx_main.h \
147         lyx_sty.C \
148         lyx_sty.h \
149         lyxcursor.C \
150         lyxcursor.h \
151         lyxfont.C \
152         lyxfont.h \
153         lyxfind.C \
154         lyxfind.h \
155         lyxfunc.C \
156         lyxfunc.h \
157         lyxgluelength.C \
158         lyxgluelength.h \
159         lyxlayout.C \
160         lyxlayout.h \
161         lyxlayout_ptr_fwd.h \
162         lyxlength.C \
163         lyxlength.h \
164         lyxlex.C \
165         lyxlex.h \
166         lyxlex_pimpl.C \
167         lyxlex_pimpl.h \
168         lyxrc.C \
169         lyxrc.h \
170         lyxrow.C \
171         lyxrow.h \
172         lyxserver.C \
173         lyxserver.h \
174         lyxtext.h \
175         lyxtextclass.C \
176         lyxtextclass.h \
177         lyxtextclasslist.C \
178         lyxtextclasslist.h \
179         lyxvc.C \
180         lyxvc.h \
181         main.C \
182         paragraph.C \
183         paragraph.h \
184         paragraph_pimpl.C \
185         paragraph_pimpl.h \
186         SpellBase.h \
187         ispell.C \
188         ispell.h \
189         pspell.C \
190         pspell.h \
191         sgml.C \
192         sgml.h \
193         tabular.C \
194         tabular.h \
195         tabular-old.C \
196         tabular_funcs.C \
197         tabular_funcs.h \
198         tex-accent.C \
199         tex-accent.h \
200         tex-strings.C \
201         tex-strings.h \
202         texrow.C \
203         texrow.h \
204         text.C \
205         text2.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\*`