]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
My simple testing of Martins patch, shows that it works as expected.
[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         LColor.C \
69         LColor.h \
70         LString.h \
71         LaTeX.C \
72         LaTeX.h \
73         LaTeXFeatures.C \
74         LaTeXFeatures.h \
75         Lsstream.h \
76         LyXAction.C \
77         LyXAction.h \
78         MenuBackend.C \
79         MenuBackend.h \
80         ParagraphParameters.C \
81         ParagraphParameters.h \
82         ParameterStruct.h \
83         PrinterParams.h \
84         ShareContainer.h \
85         Spacing.C \
86         Spacing.h \
87         TextCache.C \
88         TextCache.h \
89         Thesaurus.C \
90         Thesaurus.h \
91         ToolbarDefaults.C \
92         ToolbarDefaults.h \
93         box.h \
94         box.C \
95         broken_headers.h \
96         buffer.C \
97         buffer.h \
98         bufferlist.C \
99         bufferlist.h \
100         bufferparams.C \
101         bufferparams.h \
102         bufferview_funcs.C \
103         bufferview_funcs.h \
104         chset.C \
105         chset.h \
106         commandtags.h \
107         config.h.in \
108         converter.C \
109         converter.h \
110         counters.C \
111         counters.h \
112         debug.C \
113         debug.h \
114         encoding.C \
115         encoding.h \
116         exporter.C \
117         exporter.h \
118         gettext.C \
119         gettext.h \
120         importer.C \
121         importer.h \
122         intl.C \
123         intl.h \
124         iterators.C \
125         iterators.h \
126         kbmap.C \
127         kbmap.h \
128         kbsequence.C \
129         kbsequence.h \
130         language.C \
131         language.h \
132         lastfiles.C \
133         lastfiles.h \
134         layout.h \
135         lengthcommon.C \
136         lengthcommon.h \
137         lyx_cb.C \
138         lyx_cb.h \
139         lyx_main.C \
140         lyx_main.h \
141         lyx_sty.C \
142         lyx_sty.h \
143         lyxcursor.C \
144         lyxcursor.h \
145         lyxfont.C \
146         lyxfont.h \
147         lyxfind.C \
148         lyxfind.h \
149         lyxfunc.C \
150         lyxfunc.h \
151         lyxgluelength.C \
152         lyxgluelength.h \
153         lyxlayout.C \
154         lyxlayout.h \
155         lyxlayout_ptr_fwd.h \
156         lyxlength.C \
157         lyxlength.h \
158         lyxlex.C \
159         lyxlex.h \
160         lyxlex_pimpl.C \
161         lyxlex_pimpl.h \
162         lyxrc.C \
163         lyxrc.h \
164         lyxrow.C \
165         lyxrow.h \
166         lyxserver.C \
167         lyxserver.h \
168         lyxtext.h \
169         lyxtextclass.C \
170         lyxtextclass.h \
171         lyxtextclasslist.C \
172         lyxtextclasslist.h \
173         lyxvc.C \
174         lyxvc.h \
175         main.C \
176         paragraph.C \
177         paragraph.h \
178         paragraph_pimpl.C \
179         paragraph_pimpl.h \
180         SpellBase.h \
181         ispell.h \
182         ispell.C \
183         pspell.h \
184         pspell.C \
185         tabular.C \
186         tabular.h \
187         tabular-old.C \
188         tabular_funcs.C \
189         tabular_funcs.h \
190         tex-accent.C \
191         tex-accent.h \
192         tex-strings.C \
193         tex-strings.h \
194         texrow.C \
195         texrow.h \
196         text.C \
197         text2.C \
198         toc.C \
199         toc.h \
200         trans.C \
201         trans.h \
202         trans_decl.h \
203         trans_mgr.C \
204         trans_mgr.h \
205         undo.C \
206         undo.h \
207         undo_funcs.C \
208         undo_funcs.h \
209         vc-backend.C \
210         vc-backend.h \
211         version.C \
212         version.h \
213         vspace.C \
214         vspace.h
215
216 lyx_main.o: lyx_main.C lyx_main.h config.h version.h \
217         lyxrc.h support/path.h support/filetools.h \
218         bufferlist.h debug.h support/FileInfo.h lastfiles.h intl.h \
219         lyxserver.h layout.h gettext.h kbmap.h commandtags.h language.h
220         $(CXXCOMPILE) -DLYX_DIR=\"$(pkgdatadir)\" \
221           -DTOP_SRCDIR=\"$(top_srcdir)\" -c $(top_srcdir)/src/lyx_main.C
222
223 main.o: main.C config.h lyx_main.h gettext.h LString.h support/filetools.h support/os.h
224         $(CXXCOMPILE) -DLOCALEDIR=\"$(localedir)\" -c $(top_srcdir)/src/main.C
225
226 dist-hook:
227         cd $(distdir) ; rm -rf `find cheaders -name \*CVS\*`