]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
c788329f6b1d443d32b7d062933aa4ee522eb091
[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 tex2lyx
8
9 EXTRA_DIST = config.h.in stamp-h.in cheaders version.C.in \
10         Sectioning.h \
11         Sectioning.C \
12         Variables.C \
13         Variables.h \
14         tracer.C \
15         tracer.h
16
17 LYX_PRE_LIBS = mathed/libmathed.la insets/libinsets.la \
18         frontends/libfrontends.la 
19
20 LYX_POST_LIBS = frontends/controllers/libcontrollers.la \
21         graphics/libgraphics.la \
22         support/libsupport.la
23
24 if USE_INCLUDED_BOOST
25 BOOST_LIBS = ../boost/libs/regex/src/libboostregex.la \
26         ../boost/libs/signals/src/libboostsignals.la
27 else
28 BOOST_LIBS = -lboost_regex -lboost_signals
29 endif
30
31 OTHERLIBS = $(BOOST_LIBS) $(INTLLIBS) $(AIKSAURUS_LIBS) @LIBS@
32
33 bin_PROGRAMS = lyx 
34 noinst_PROGRAMS = $(FRONTENDS_PROGS)
35 EXTRA_PROGRAMS = lyx-xforms lyx-qt
36
37 lyx_xforms_LDADD = $(lyx_OBJECTS) $(LYX_PRE_LIBS) \
38         frontends/xforms/libxforms.la $(LYX_POST_LIBS) $(OTHERLIBS) 
39 lyx_xforms_SOURCES = main.C
40
41 lyx_qt_LDADD = $(lyx_OBJECTS) $(LYX_PRE_LIBS) \
42         frontends/qt2/libqt2.la $(LYX_POST_LIBS) $(OTHERLIBS)
43 lyx_qt_SOURCES = main.C
44
45 lyx$(EXEEXT): $(FRONTENDS_PROGS)
46         rm -f $@
47         $(LN_S) $< $@
48
49 #lyx_LDFLAGS=-Wl,-O1
50
51 INCLUDES = $(BOOST_INCLUDES)
52
53 BUILT_SOURCES = version.C
54
55 lyx_SOURCES = \
56         BufferView.C \
57         BufferView.h \
58         BufferView_pimpl.C \
59         BufferView_pimpl.h \
60         Bullet.C \
61         Bullet.h \
62         Chktex.C \
63         Chktex.h \
64         CutAndPaste.C \
65         CutAndPaste.h \
66         DepTable.C \
67         DepTable.h \
68         FloatList.C \
69         FloatList.h \
70         Floating.C \
71         Floating.h \
72         FuncStatus.C \
73         FuncStatus.h \
74         InsetList.C \
75         InsetList.h \
76         LColor.C \
77         LColor.h \
78         LString.h \
79         LaTeX.C \
80         LaTeX.h \
81         LaTeXFeatures.C \
82         LaTeXFeatures.h \
83         latexrunparams.h \
84         Lsstream.h \
85         LyXAction.C \
86         LyXAction.h \
87         MenuBackend.C \
88         MenuBackend.h \
89         paragraph_funcs.C \
90         paragraph_funcs.h \
91         ParagraphList.h \
92         ParagraphParameters.C \
93         ParagraphParameters.h \
94         ParameterStruct.h \
95         PrinterParams.h \
96         RowList.h \
97         ShareContainer.h \
98         Spacing.C \
99         Spacing.h \
100         TextCache.C \
101         TextCache.h \
102         Thesaurus.C \
103         Thesaurus.h \
104         ToolbarBackend.C \
105         ToolbarBackend.h \
106         WordLangTuple.h \
107         aspell.C \
108         aspell_local.h \
109         author.C \
110         author.h \
111         boost.C \
112         box.h \
113         box.C \
114         broken_headers.h \
115         buffer.C \
116         buffer.h \
117         buffer_funcs.C \
118         buffer_funcs.h \
119         bufferlist.C \
120         bufferlist.h \
121         bufferparams.C \
122         bufferparams.h \
123         bufferview_funcs.C \
124         bufferview_funcs.h \
125         changes.C \
126         changes.h \
127         chset.C \
128         chset.h \
129         lfuns.h \
130         config.h.in \
131         converter.C \
132         converter.h \
133         counters.C \
134         counters.h \
135         debug.C \
136         debug.h \
137         dimension.C \
138         dimension.h \
139         encoding.C \
140         encoding.h \
141         errorlist.C \
142         errorlist.h \
143         exporter.C \
144         exporter.h \
145         gettext.C \
146         gettext.h \
147         factory.h \
148         factory.C \
149         format.C \
150         format.h \
151         funcrequest.h \
152         funcrequest.C \
153         graph.C \
154         graph.h \
155         importer.C \
156         importer.h \
157         intl.C \
158         intl.h \
159         iterators.C \
160         iterators.h \
161         kbmap.C \
162         kbmap.h \
163         kbsequence.C \
164         kbsequence.h \
165         language.C \
166         language.h \
167         lastfiles.C \
168         lastfiles.h \
169         layout.h \
170         lengthcommon.C \
171         lengthcommon.h \
172         lyx_cb.C \
173         lyx_cb.h \
174         lyx_main.C \
175         lyx_main.h \
176         lyx_sty.C \
177         lyx_sty.h \
178         lyxcursor.C \
179         lyxcursor.h \
180         lyxfont.C \
181         lyxfont.h \
182         lyxfind.C \
183         lyxfind.h \
184         lyxfunc.C \
185         lyxfunc.h \
186         lyxgluelength.C \
187         lyxgluelength.h \
188         lyxlayout.C \
189         lyxlayout.h \
190         lyxlayout_ptr_fwd.h \
191         lyxlength.C \
192         lyxlength.h \
193         lyxlex.C \
194         lyxlex.h \
195         lyxlex_pimpl.C \
196         lyxlex_pimpl.h \
197         lyxrc.C \
198         lyxrc.h \
199         lyxrow.C \
200         lyxrow.h \
201         lyxrow_funcs.C \
202         lyxrow_funcs.h \
203         lyxserver.C \
204         lyxserver.h \
205         lyxtext.h \
206         lyxtextclass.C \
207         lyxtextclass.h \
208         lyxtextclasslist.C \
209         lyxtextclasslist.h \
210         lyxvc.C \
211         lyxvc.h \
212         messages.C \
213         messages.h \
214         metricsinfo.C \
215         metricsinfo.h \
216         paragraph.C \
217         paragraph.h \
218         paragraph_pimpl.C \
219         paragraph_pimpl.h \
220         SpellBase.h \
221         ispell.C \
222         ispell.h \
223         pspell.C \
224         pspell.h \
225         rowpainter.C \
226         rowpainter.h \
227         sgml.C \
228         sgml.h \
229         tabular.C \
230         tabular.h \
231         tex-accent.C \
232         tex-accent.h \
233         tex-strings.C \
234         tex-strings.h \
235         texrow.C \
236         texrow.h \
237         text.C \
238         text2.C \
239         text3.C \
240         textcursor.C \
241         textcursor.h \
242         text_funcs.C \
243         text_funcs.h \
244         toc.C \
245         toc.h \
246         trans.C \
247         trans.h \
248         trans_decl.h \
249         trans_mgr.C \
250         trans_mgr.h \
251         undo.C \
252         undo.h \
253         undo_funcs.C \
254         undo_funcs.h \
255         vc-backend.C \
256         vc-backend.h \
257         version.C \
258         version.h \
259         vspace.C \
260         vspace.h
261
262 dist-hook:
263         cd $(distdir) ; rm -rf `find cheaders -name \*CVS\*`