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