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