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