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