]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
I guess Windows folks are not too happy with files named color.h and Color.h
[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         Section.h \
15         Section.cpp \
16         Variables.cpp \
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.cpp
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.cpp ASpell_local.h
52 endif
53 if USE_PSPELL
54 PSPELL = PSpell.cpp PSpell.h
55 endif
56 if USE_ISPELL
57 ISPELL = ISpell.cpp ISpell.h
58 endif
59
60
61
62 lyx_SOURCES = \
63         $(ASPELL) $(PSPELL) $(ISPELL) SpellBase.cpp \
64         Author.cpp \
65         Author.h \
66         Bidi.cpp \
67         Bidi.h \
68         boost.cpp \
69         Box.cpp \
70         Box.h \
71         BranchList.cpp \
72         BranchList.h \
73         Buffer.cpp \
74         buffer_funcs.cpp \
75         buffer_funcs.h \
76         Buffer.h \
77         BufferList.cpp \
78         BufferList.h \
79         BufferParams.cpp \
80         BufferParams.h \
81         BufferView.cpp \
82         bufferview_funcs.cpp \
83         bufferview_funcs.h \
84         BufferView.h \
85         Bullet.cpp \
86         Bullet.h \
87         Changes.cpp \
88         Changes.h \
89         Chktex.cpp \
90         Chktex.h \
91         Color.cpp \
92         Color.h \
93         config.h.in \
94         ConverterCache.cpp \
95         ConverterCache.h \
96         Converter.cpp \
97         Converter.h \
98         CoordCache.cpp \
99         CoordCache.h \
100         Counters.cpp \
101         Counters.h \
102         Cursor.cpp \
103         Cursor.h \
104         CursorSlice.cpp \
105         CursorSlice.h \
106         CutAndPaste.cpp \
107         CutAndPaste.h \
108         debug.cpp \
109         debug.h \
110         DepTable.cpp \
111         DepTable.h \
112         Dimension.cpp \
113         Dimension.h \
114         DispatchResult.h \
115         DocIterator.cpp \
116         DocIterator.h \
117         Encoding.cpp \
118         Encoding.h \
119         ErrorList.cpp \
120         ErrorList.h \
121         Exporter.cpp \
122         Exporter.h \
123         factory.cpp \
124         factory.h \
125         Floating.cpp \
126         Floating.h \
127         FloatList.cpp \
128         FloatList.h \
129         FontIterator.cpp \
130         FontIterator.h \
131         Format.cpp \
132         Format.h \
133         FuncRequest.cpp \
134         FuncRequest.h \
135         FuncStatus.cpp \
136         FuncStatus.h \
137         gettext.cpp \
138         gettext.h \
139         Graph.cpp \
140         Graph.h \
141         Importer.cpp \
142         Importer.h \
143         InsetIterator.cpp \
144         InsetIterator.h \
145         InsetList.cpp \
146         InsetList.h \
147         Intl.cpp \
148         Intl.h \
149         kb_keymap.cpp \
150         kb_keymap.h \
151         kb_sequence.cpp \
152         kb_sequence.h \
153         KmodInfo.h \
154         Language.cpp \
155         Language.h \
156         LaTeX.cpp \
157         LaTeXFeatures.cpp \
158         LaTeXFeatures.h \
159         LaTeX.h \
160         layout.h \
161         lengthcommon.cpp \
162         lengthcommon.h \
163         Lexer.cpp \
164         Lexer.h \
165         lfuns.h \
166         LyXAction.cpp \
167         LyXAction.h \
168         lyx_cb.cpp \
169         lyx_cb.h \
170         LyX.cpp \
171         lyxfind.cpp \
172         lyxfind.h \
173         LyXFont.cpp \
174         LyXFont.h \
175         LyXFunc.cpp \
176         LyXFunc.h \
177         LyXGlueLength.cpp \
178         LyXGlueLength.h \
179         LyX.h \
180         LyXLayout.cpp \
181         LyXLayout.h \
182         lyxlayout_ptr_fwd.h \
183         LyXLength.cpp \
184         LyXLength.h \
185         LyXRC.cpp \
186         LyXRC.h \
187         LyXServer.cpp \
188         LyXServer.h \
189         LyXServerSocket.cpp \
190         LyXServerSocket.h \
191         lyx_sty.cpp \
192         lyx_sty.h \
193         LyXTextClass.cpp \
194         LyXTextClass.h \
195         LyXTextClassList.cpp \
196         LyXTextClassList.h \
197         LyXText.h \
198         LyXVC.cpp \
199         LyXVC.h \
200         MenuBackend.cpp \
201         MenuBackend.h \
202         Messages.cpp \
203         Messages.h \
204         MetricsInfo.cpp \
205         MetricsInfo.h \
206         Mover.cpp \
207         Mover.h \
208         output.cpp \
209         output_docbook.cpp \
210         output_docbook.h \
211         output.h \
212         output_latex.cpp \
213         output_latex.h \
214         OutputParams.cpp \
215         OutputParams.h \
216         output_plaintext.cpp \
217         output_plaintext.h \
218         paper.h \
219         Paragraph.cpp \
220         paragraph_funcs.cpp \
221         paragraph_funcs.h \
222         Paragraph.h \
223         ParagraphList_fwd.h \
224         ParagraphList.h \
225         ParagraphMetrics.cpp \
226         ParagraphMetrics.h \
227         ParagraphParameters.cpp \
228         ParagraphParameters.h \
229         ParIterator.cpp \
230         ParIterator.h \
231         PrinterParams.cpp \
232         PrinterParams.h \
233         Row.cpp \
234         Row.h \
235         RowList_fwd.h \
236         rowpainter.cpp \
237         rowpainter.h \
238         Session.cpp \
239         Session.h \
240         sgml.cpp \
241         sgml.h \
242         Spacing.cpp \
243         Spacing.h \
244         SpellBase.h \
245         tex-accent.cpp \
246         tex-accent.h \
247         TexRow.cpp \
248         TexRow.h \
249         tex-strings.cpp \
250         tex-strings.h \
251         text2.cpp \
252         text3.cpp \
253         text.cpp \
254         TextMetrics.cpp \
255         TextMetrics.h \
256         Thesaurus.cpp \
257         Thesaurus.h \
258         TocBackend.cpp \
259         TocBackend.h \
260         toc.cpp \
261         toc.h \
262         ToolbarBackend.cpp \
263         ToolbarBackend.h \
264         Trans.cpp \
265         Trans.h \
266         TransState.cpp \
267         TransState.h \
268         Undo.cpp \
269         Undo.h \
270         UpdateFlags.h \
271         VCBackend.cpp \
272         VCBackend.h \
273         version.C \
274         version.h \
275         WordLangTuple.h \
276         VSpace.cpp \
277         VSpace.h
278
279 version.C: stamp-version
280         @:
281
282 stamp-version: version.C-tmp
283         if cmp -s $< version.C ; then \
284                 : ;\
285         else \
286                 rm -f version.C ;\
287                 cp $< version.C ;\
288         fi
289         echo timestamp > $@