]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
link fix for cygwin from Kayvan
[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_DEPENDENCIES = mathed/libmathed.o insets/libinsets.o \
12         frontends/libfrontends.o \
13         graphics/libgraphics.o \
14         support/libsupport.o \
15         @INCLUDED_SIGC@
16
17 lyx_LDADD = $(lyx_DEPENDENCIES) @INTLLIBS@ $(SIGC_LIBS) \
18         $(PSPELL_LIBS) @AIKSAURUS_LIBS@ @FRONTEND_LDFLAGS@ @FRONTEND_LIBS@
19
20 #lyx_LDFLAGS=-Wl,-O1
21
22 EXTRA_DIST = config.h.in stamp-h.in cheaders ext_l10n.h version.C.in \
23         Sectioning.h \
24         Sectioning.C \
25         Variables.C \
26         Variables.h \
27         counters.C \
28         counters.h
29
30 INCLUDES = $(SIGC_CFLAGS) $(BOOST_INCLUDES) $(PSPELL_INCLUDES)
31 localedir = $(datadir)/locale
32 BUILT_SOURCES = version.C
33 lyx_SOURCES = \
34         BufferView.C \
35         BufferView.h \
36         BufferView2.C \
37         BufferView_pimpl.C \
38         BufferView_pimpl.h \
39         Bullet.C \
40         Bullet.h \
41         Chktex.C \
42         Chktex.h \
43         ColorHandler.C \
44         ColorHandler.h \
45         CutAndPaste.C \
46         CutAndPaste.h \
47         DepTable.C \
48         DepTable.h \
49         FloatList.C \
50         FloatList.h \
51         Floating.C \
52         Floating.h \
53         FontInfo.C \
54         FontInfo.h \
55         FontLoader.C \
56         FontLoader.h \
57         FuncStatus.C \
58         FuncStatus.h \
59         LColor.C \
60         LColor.h \
61         LString.h \
62         LaTeX.C \
63         LaTeX.h \
64         LaTeXFeatures.C \
65         LaTeXFeatures.h \
66         Lsstream.h \
67         LyXAction.C \
68         LyXAction.h \
69         LyXView.C \
70         LyXView.h \
71         MenuBackend.C \
72         MenuBackend.h \
73         Painter.C \
74         Painter.h \
75         PainterBase.C \
76         PainterBase.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         WorkArea.C \
91         WorkArea.h \
92         XFormsView.C \
93         XFormsView.h \
94         box.h \
95         box.C \
96         broken_headers.h \
97         buffer.C \
98         buffer.h \
99         bufferlist.C \
100         bufferlist.h \
101         bufferparams.C \
102         bufferparams.h \
103         bufferview_funcs.C \
104         bufferview_funcs.h \
105         chset.C \
106         chset.h \
107         commandtags.h \
108         config.h.in \
109         converter.C \
110         converter.h \
111         debug.C \
112         debug.h \
113         encoding.C \
114         encoding.h \
115         exporter.C \
116         exporter.h \
117         font.C \
118         font.h \
119         gettext.C \
120         gettext.h \
121         importer.C \
122         importer.h \
123         intl.C \
124         intl.h \
125         iterators.C \
126         iterators.h \
127         kbmap.C \
128         kbmap.h \
129         kbsequence.C \
130         kbsequence.h \
131         language.C \
132         language.h \
133         lastfiles.C \
134         lastfiles.h \
135         layout.h \
136         lengthcommon.C \
137         lengthcommon.h \
138         lyx_cb.C \
139         lyx_cb.h \
140         lyx_gui.C \
141         lyx_gui.h \
142         lyx_main.C \
143         lyx_main.h \
144         lyx_sty.C \
145         lyx_sty.h \
146         lyxcursor.C \
147         lyxcursor.h \
148         lyxfont.C \
149         lyxfont.h \
150         lyxfind.C \
151         lyxfind.h \
152         lyxfunc.C \
153         lyxfunc.h \
154         lyxgluelength.C \
155         lyxgluelength.h \
156         lyxlayout.C \
157         lyxlayout.h \
158         lyxlength.C \
159         lyxlength.h \
160         lyxlex.C \
161         lyxlex.h \
162         lyxlex_pimpl.C \
163         lyxlex_pimpl.h \
164         lyxlookup.C \
165         lyxlookup.h \
166         lyxrc.C \
167         lyxrc.h \
168         lyxrow.C \
169         lyxrow.h \
170         lyxscreen.h \
171         lyxserver.C \
172         lyxserver.h \
173         lyxtext.h \
174         lyxtextclass.C \
175         lyxtextclass.h \
176         lyxtextclasslist.C \
177         lyxtextclasslist.h \
178         lyxvc.C \
179         lyxvc.h \
180         main.C \
181         minibuffer.C \
182         minibuffer.h \
183         paragraph.C \
184         paragraph.h \
185         paragraph_pimpl.C \
186         paragraph_pimpl.h \
187         screen.C \
188         sp_base.h \
189         sp_spell.C \
190         sp_ispell.h \
191         sp_pspell.h \
192         stl_string_fwd.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         tracer.C \
207         tracer.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         undostack.C \
218         undostack.h \
219         vc-backend.C \
220         vc-backend.h \
221         version.C \
222         version.h \
223         vspace.C \
224         vspace.h
225
226 lyx_main.o: lyx_main.C lyx_main.h config.h version.h lyx_gui.h \
227         lyxrc.h support/path.h support/filetools.h \
228         bufferlist.h debug.h support/FileInfo.h lastfiles.h intl.h \
229         lyxserver.h layout.h gettext.h kbmap.h commandtags.h language.h 
230         $(CXXCOMPILE) -DLYX_DIR=\"$(pkgdatadir)\" \
231           -DTOP_SRCDIR=\"$(top_srcdir)\" -c $(top_srcdir)/src/lyx_main.C
232
233 main.o: main.C config.h lyx_main.h gettext.h LString.h support/filetools.h \
234         support/os.h frontends/GUIRunTime.h
235         $(CXXCOMPILE) -DLOCALEDIR=\"$(localedir)\" -c $(top_srcdir)/src/main.C
236
237 dist-hook:
238         cd $(distdir) ; rm -rf `find cheaders -name \*CVS\*`