]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
430bf0519f3aa2b1c3b7682b38e4ee6c443181ce
[lyx.git] / src / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 DISTCLEANFILES += config.h libintl.h version.cpp stamp-version version.cpp-tmp
4
5 MAINTAINERCLEANFILES += $(srcdir)/config.h.in
6
7 SUBDIRS = mathed insets graphics support frontends .
8
9 EXTRA_DIST = config.h.in stamp-h.in version.cpp.in \
10         Section.h \
11         Section.cpp \
12         Variables.cpp \
13         Variables.h \
14         paper.h \
15         pch.h
16
17 LYX_PRE_LIBS = mathed/liblyxmathed.la insets/liblyxinsets.la \
18         frontends/liblyxfrontends.la
19
20 LYX_POST_LIBS = frontends/controllers/liblyxcontrollers.la \
21         graphics/liblyxgraphics.la \
22         support/liblyxsupport.la
23
24 OTHERLIBS = $(BOOST_LIBS) $(INTLLIBS) $(AIKSAURUS_LIBS) @LIBS@ $(SOCKET_LIBS)
25
26 pkglib_LTLIBRARIES = liblyxcore.la
27 noinst_PROGRAMS = $(FRONTENDS_PROGS)
28 EXTRA_PROGRAMS = lyx-qt4
29
30 lyx_qt4_LDADD = liblyxcore.la  $(LYX_PRE_LIBS) \
31         frontends/qt4/liblyxqt4.la $(LYX_POST_LIBS) $(OTHERLIBS)
32 lyx_qt4_SOURCES = main.cpp
33
34 lyx$(EXEEXT): $(FRONTENDS_PROGS)
35         rm -f $@
36         $(LN_S) $< $@
37
38 #lyx_LDFLAGS=-Wl,-O1
39
40 BUILT_SOURCES = $(PCH_FILE) version.cpp
41
42 AM_CPPFLAGS += $(PCH_FLAGS) $(BOOST_INCLUDES)
43
44 if USE_ASPELL
45 ASPELL = ASpell.cpp ASpell_local.h
46 endif
47 if USE_PSPELL
48 PSPELL = PSpell.cpp PSpell.h
49 endif
50 if USE_ISPELL
51 ISPELL = ISpell.cpp ISpell.h
52 endif
53
54
55 liblyxcore_la_SOURCES = \
56         $(ASPELL) $(PSPELL) $(ISPELL) SpellBase.cpp \
57         Author.cpp \
58         Author.h \
59         Bidi.cpp \
60         Bidi.h \
61         boost.cpp \
62         Box.cpp \
63         Box.h \
64         BranchList.cpp \
65         BranchList.h \
66         Buffer.cpp \
67         buffer_funcs.cpp \
68         buffer_funcs.h \
69         Buffer.h \
70         BufferList.cpp \
71         BufferList.h \
72         BufferParams.cpp \
73         BufferParams.h \
74         BufferView.cpp \
75         bufferview_funcs.cpp \
76         bufferview_funcs.h \
77         BufferView.h \
78         Bullet.cpp \
79         Bullet.h \
80         Changes.cpp \
81         Changes.h \
82         Chktex.cpp \
83         Chktex.h \
84         Color.cpp \
85         Color.h \
86         config.h.in \
87         ConverterCache.cpp \
88         ConverterCache.h \
89         Converter.cpp \
90         Converter.h \
91         CoordCache.cpp \
92         CoordCache.h \
93         Counters.cpp \
94         Counters.h \
95         Cursor.cpp \
96         Cursor.h \
97         CursorSlice.cpp \
98         CursorSlice.h \
99         CutAndPaste.cpp \
100         CutAndPaste.h \
101         debug.cpp \
102         debug.h \
103         DepTable.cpp \
104         DepTable.h \
105         Dimension.cpp \
106         Dimension.h \
107         DispatchResult.h \
108         DocIterator.cpp \
109         DocIterator.h \
110         Encoding.cpp \
111         Encoding.h \
112         ErrorList.cpp \
113         ErrorList.h \
114         Exporter.cpp \
115         Exporter.h \
116         factory.cpp \
117         factory.h \
118         Floating.cpp \
119         Floating.h \
120         FloatList.cpp \
121         FloatList.h \
122         Font.cpp \
123         Font.h \
124         FontIterator.cpp \
125         FontIterator.h \
126         Format.cpp \
127         Format.h \
128         FuncRequest.cpp \
129         FuncRequest.h \
130         FuncStatus.cpp \
131         FuncStatus.h \
132         gettext.cpp \
133         gettext.h \
134         Graph.cpp \
135         Graph.h \
136         Importer.cpp \
137         Importer.h \
138         InsetIterator.cpp \
139         InsetIterator.h \
140         InsetList.cpp \
141         InsetList.h \
142         Intl.cpp \
143         Intl.h \
144         KeyMap.cpp \
145         KeyMap.h \
146         KeySequence.cpp \
147         KeySequence.h \
148         Language.cpp \
149         Language.h \
150         LaTeX.cpp \
151         LaTeXFeatures.cpp \
152         LaTeXFeatures.h \
153         LaTeX.h \
154         Layout.cpp \
155         Layout.h \
156         Length.cpp \
157         Length.h \
158         lengthcommon.cpp \
159         lengthcommon.h \
160         Lexer.cpp \
161         Lexer.h \
162         lfuns.h \
163         LyXAction.cpp \
164         LyXAction.h \
165         callback.cpp \
166         callback.h \
167         LyX.cpp \
168         lyxfind.cpp \
169         lyxfind.h \
170         LyXFunc.cpp \
171         LyXFunc.h \
172         LyX.h \
173         lyxlayout_ptr_fwd.h \
174         LyXRC.cpp \
175         LyXRC.h \
176         Server.cpp \
177         Server.h \
178         ServerSocket.cpp \
179         ServerSocket.h \
180         LyXVC.cpp \
181         LyXVC.h \
182         MenuBackend.cpp \
183         MenuBackend.h \
184         Messages.cpp \
185         Messages.h \
186         MetricsInfo.cpp \
187         MetricsInfo.h \
188         Mover.cpp \
189         Mover.h \
190         output.cpp \
191         output_docbook.cpp \
192         output_docbook.h \
193         output.h \
194         output_latex.cpp \
195         output_latex.h \
196         OutputParams.cpp \
197         OutputParams.h \
198         output_plaintext.cpp \
199         output_plaintext.h \
200         paper.h \
201         Paragraph.cpp \
202         paragraph_funcs.cpp \
203         paragraph_funcs.h \
204         Paragraph.h \
205         ParagraphList.h \
206         ParagraphMetrics.cpp \
207         ParagraphMetrics.h \
208         ParagraphParameters.cpp \
209         ParagraphParameters.h \
210         ParIterator.cpp \
211         ParIterator.h \
212         PrinterParams.cpp \
213         PrinterParams.h \
214         Row.cpp \
215         Row.h \
216         rowpainter.cpp \
217         rowpainter.h \
218         Session.cpp \
219         Session.h \
220         sgml.cpp \
221         sgml.h \
222         Spacing.cpp \
223         Spacing.h \
224         SpellBase.h \
225         TexRow.cpp \
226         TexRow.h \
227         Text.h \
228         Text.cpp \
229         Text2.cpp \
230         Text3.cpp \
231         TextClass.cpp \
232         TextClass.h \
233         TextClassList.cpp \
234         TextClassList.h \
235         TextMetrics.cpp \
236         TextMetrics.h \
237         Thesaurus.cpp \
238         Thesaurus.h \
239         TocBackend.cpp \
240         TocBackend.h \
241         toc.cpp \
242         toc.h \
243         ToolbarBackend.cpp \
244         ToolbarBackend.h \
245         Trans.cpp \
246         Trans.h \
247         Undo.cpp \
248         Undo.h \
249         update_flags.h \
250         VCBackend.cpp \
251         VCBackend.h \
252         version.cpp \
253         version.h \
254         WordLangTuple.h \
255         VSpace.cpp \
256         VSpace.h
257
258 version.cpp: stamp-version
259         @:
260
261 stamp-version: version.cpp-tmp
262         if cmp -s $< version.cpp ; then \
263                 : ;\
264         else \
265                 rm -f version.cpp ;\
266                 cp $< version.cpp ;\
267         fi
268         echo timestamp > $@