]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
get rid of cheaders
[lyx.git] / src / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 DISTCLEANFILES += config.h libintl.h version.C stamp-version version.C-tmp
4
5 MAINTAINERCLEANFILES += $(srcdir)/config.h.in
6
7 SUBDIRS = mathed insets graphics support frontends . client tex2lyx
8
9 EXTRA_DIST = config.h.in stamp-h.in 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 BOOST_LIBS = $(BOOST_REGEX) $(BOOST_SIGNALS)
24
25 OTHERLIBS = $(BOOST_LIBS) $(INTLLIBS) $(AIKSAURUS_LIBS) @LIBS@
26
27 bin_PROGRAMS = lyx
28 noinst_PROGRAMS = $(FRONTENDS_PROGS)
29 EXTRA_PROGRAMS = lyx-xforms lyx-qt lyx-gtk
30
31 lyx_xforms_LDADD = $(lyx_OBJECTS) $(LYX_PRE_LIBS) \
32         frontends/xforms/libxforms.la $(LYX_POST_LIBS) $(OTHERLIBS)
33
34 lyx_xforms_SOURCES = main.C
35
36 lyx_qt_LDADD = $(lyx_OBJECTS) $(LYX_PRE_LIBS) \
37         frontends/qt2/libqt2.la $(LYX_POST_LIBS) $(OTHERLIBS)
38 lyx_qt_SOURCES = main.C
39
40 lyx_gtk_LDADD = $(lyx_OBJECTS) $(LYX_PRE_LIBS) \
41         frontends/gtk/libgtk.la $(LYX_POST_LIBS) $(OTHERLIBS)
42 lyx_gtk_SOURCES = main.C
43
44 lyx$(EXEEXT): $(FRONTENDS_PROGS)
45         rm -f $@
46         $(LN_S) $< $@
47
48 #lyx_LDFLAGS=-Wl,-O1
49
50 BUILT_SOURCES = version.C
51
52 AM_CPPFLAGS = $(PCH_FLAGS) $(BOOST_INCLUDES)
53
54 lyx_SOURCES = \
55         Bidi.C \
56         Bidi.h \
57         BufferView.C \
58         BufferView.h \
59         BufferView_pimpl.C \
60         BufferView_pimpl.h \
61         Bullet.C \
62         Bullet.h \
63         BranchList.C \
64         BranchList.h \
65         Chktex.C \
66         Chktex.h \
67         CutAndPaste.C \
68         CutAndPaste.h \
69         DepTable.C \
70         DepTable.h \
71         FloatList.C \
72         FloatList.h \
73         Floating.C \
74         Floating.h \
75         FontIterator.C \
76         FontIterator.h \
77         FuncStatus.C \
78         FuncStatus.h \
79         InsetList.C \
80         InsetList.h \
81         LColor.C \
82         LColor.h \
83         LaTeX.C \
84         LaTeX.h \
85         LaTeXFeatures.C \
86         LaTeXFeatures.h \
87         LyXAction.C \
88         LyXAction.h \
89         MenuBackend.C \
90         MenuBackend.h \
91         ParagraphList_fwd.h \
92         ParagraphParameters.C \
93         ParagraphParameters.h \
94         PrinterParams.C \
95         PrinterParams.h \
96         RowList_fwd.h \
97         Spacing.C \
98         Spacing.h \
99         Thesaurus.C \
100         Thesaurus.h \
101         ToolbarBackend.C \
102         ToolbarBackend.h \
103         WordLangTuple.h \
104         aspell.C \
105         aspell_local.h \
106         author.C \
107         author.h \
108         boost.C \
109         box.h \
110         box.C \
111         buffer.C \
112         buffer.h \
113         buffer_funcs.C \
114         buffer_funcs.h \
115         bufferlist.C \
116         bufferlist.h \
117         bufferparams.C \
118         bufferparams.h \
119         bufferview_funcs.C \
120         bufferview_funcs.h \
121         changes.C \
122         changes.h \
123         chset.C \
124         chset.h \
125         config.h.in \
126         converter.C \
127         converter.h \
128         counters.C \
129         counters.h \
130         coordcache.C \
131         coordcache.h \
132         cursor.C \
133         cursor.h \
134         cursor_slice.C \
135         cursor_slice.h \
136         debug.C \
137         debug.h \
138         dimension.C \
139         dimension.h \
140         dociterator.C \
141         dociterator.h \
142         dispatchresult.h \
143         encoding.C \
144         encoding.h \
145         errorlist.C \
146         errorlist.h \
147         exporter.C \
148         exporter.h \
149         gettext.C \
150         gettext.h \
151         factory.h \
152         factory.C \
153         format.C \
154         format.h \
155         funcrequest.h \
156         funcrequest.C \
157         graph.C \
158         graph.h \
159         importer.C \
160         importer.h \
161         intl.C \
162         intl.h \
163         insetiterator.C \
164         insetiterator.h \
165         kbmap.C \
166         kbmap.h \
167         kbsequence.C \
168         kbsequence.h \
169         language.C \
170         language.h \
171         lastfiles.C \
172         lastfiles.h \
173         layout.h \
174         lengthcommon.C \
175         lengthcommon.h \
176         lfuns.h \
177         lyx_cb.C \
178         lyx_cb.h \
179         lyx_main.C \
180         lyx_main.h \
181         lyx_sty.C \
182         lyx_sty.h \
183         lyxfont.C \
184         lyxfont.h \
185         lyxfind.C \
186         lyxfind.h \
187         lyxfunc.C \
188         lyxfunc.h \
189         lyxgluelength.C \
190         lyxgluelength.h \
191         lyxlayout.C \
192         lyxlayout.h \
193         lyxlayout_ptr_fwd.h \
194         lyxlength.C \
195         lyxlength.h \
196         lyxlex.C \
197         lyxlex.h \
198         lyxlex_pimpl.C \
199         lyxlex_pimpl.h \
200         lyxrc.C \
201         lyxrc.h \
202         lyxrow.C \
203         lyxrow.h \
204         lyxrow_funcs.C \
205         lyxrow_funcs.h \
206         lyxserver.C \
207         lyxserver.h \
208         lyxsocket.C \
209         lyxsocket.h \
210         lyxtext.h \
211         lyxtextclass.C \
212         lyxtextclass.h \
213         lyxtextclasslist.C \
214         lyxtextclasslist.h \
215         lyxvc.C \
216         lyxvc.h \
217         messages.C \
218         messages.h \
219         metricsinfo.C \
220         metricsinfo.h \
221         mover.C \
222         mover.h \
223         output.C \
224         output.h \
225         outputparams.C \
226         outputparams.h \
227         output_docbook.C \
228         output_docbook.h \
229         output_latex.C \
230         output_latex.h \
231         output_linuxdoc.C \
232         output_linuxdoc.h \
233         output_plaintext.C \
234         output_plaintext.h \
235         paper.h \
236         paragraph.C \
237         paragraph.h \
238         paragraph_funcs.C \
239         paragraph_funcs.h \
240         paragraph_pimpl.C \
241         paragraph_pimpl.h \
242         pariterator.C \
243         pariterator.h \
244         SpellBase.h \
245         ispell.C \
246         ispell.h \
247         pspell.C \
248         pspell.h \
249         rowpainter.C \
250         rowpainter.h \
251         sgml.C \
252         sgml.h \
253         tabular.C \
254         tabular.h \
255         tex-accent.C \
256         tex-accent.h \
257         tex-strings.C \
258         tex-strings.h \
259         texrow.C \
260         texrow.h \
261         text.C \
262         text2.C \
263         text3.C \
264         toc.C \
265         toc.h \
266         trans.C \
267         trans.h \
268         trans_decl.h \
269         trans_mgr.C \
270         trans_mgr.h \
271         undo.C \
272         undo.h \
273         vc-backend.C \
274         vc-backend.h \
275         version.C \
276         version.h \
277         vspace.C \
278         vspace.h
279
280 version.C: stamp-version
281         @:
282
283 stamp-version: version.C-tmp
284         if cmp -s $< version.C ; then \
285                 : ;\
286         else \
287                 rm -f version.C ;\
288                 cp $< version.C ;\
289         fi
290         echo timestamp > $@