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