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