]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
rename LyXFont to Font except in tex2lyx
[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.cpp.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         Font.cpp \
130         Font.h \
131         FontIterator.cpp \
132         FontIterator.h \
133         Format.cpp \
134         Format.h \
135         FuncRequest.cpp \
136         FuncRequest.h \
137         FuncStatus.cpp \
138         FuncStatus.h \
139         gettext.cpp \
140         gettext.h \
141         Graph.cpp \
142         Graph.h \
143         Importer.cpp \
144         Importer.h \
145         InsetIterator.cpp \
146         InsetIterator.h \
147         InsetList.cpp \
148         InsetList.h \
149         Intl.cpp \
150         Intl.h \
151         KeyMap.cpp \
152         KeyMap.h \
153         KeySequence.cpp \
154         KeySequence.h \
155         KmodInfo.h \
156         Language.cpp \
157         Language.h \
158         LaTeX.cpp \
159         LaTeXFeatures.cpp \
160         LaTeXFeatures.h \
161         LaTeX.h \
162         layout.h \
163         Length.cpp \
164         Length.h \
165         lengthcommon.cpp \
166         lengthcommon.h \
167         Lexer.cpp \
168         Lexer.h \
169         lfuns.h \
170         LyXAction.cpp \
171         LyXAction.h \
172         callback.cpp \
173         callback.h \
174         LyX.cpp \
175         lyxfind.cpp \
176         lyxfind.h \
177         LyXFunc.cpp \
178         LyXFunc.h \
179         LyX.h \
180         LyXLayout.cpp \
181         LyXLayout.h \
182         lyxlayout_ptr_fwd.h \
183         LyXRC.cpp \
184         LyXRC.h \
185         Server.cpp \
186         Server.h \
187         ServerSocket.cpp \
188         ServerSocket.h \
189         lyx_sty.cpp \
190         lyx_sty.h \
191         LyXTextClass.cpp \
192         LyXTextClass.h \
193         LyXTextClassList.cpp \
194         LyXTextClassList.h \
195         LyXText.h \
196         LyXVC.cpp \
197         LyXVC.h \
198         MenuBackend.cpp \
199         MenuBackend.h \
200         Messages.cpp \
201         Messages.h \
202         MetricsInfo.cpp \
203         MetricsInfo.h \
204         Mover.cpp \
205         Mover.h \
206         output.cpp \
207         output_docbook.cpp \
208         output_docbook.h \
209         output.h \
210         output_latex.cpp \
211         output_latex.h \
212         OutputParams.cpp \
213         OutputParams.h \
214         output_plaintext.cpp \
215         output_plaintext.h \
216         paper.h \
217         Paragraph.cpp \
218         paragraph_funcs.cpp \
219         paragraph_funcs.h \
220         Paragraph.h \
221         ParagraphList_fwd.h \
222         ParagraphList.h \
223         ParagraphMetrics.cpp \
224         ParagraphMetrics.h \
225         ParagraphParameters.cpp \
226         ParagraphParameters.h \
227         ParIterator.cpp \
228         ParIterator.h \
229         PrinterParams.cpp \
230         PrinterParams.h \
231         Row.cpp \
232         Row.h \
233         RowList_fwd.h \
234         rowpainter.cpp \
235         rowpainter.h \
236         Session.cpp \
237         Session.h \
238         sgml.cpp \
239         sgml.h \
240         Spacing.cpp \
241         Spacing.h \
242         SpellBase.h \
243         tex-accent.cpp \
244         tex-accent.h \
245         TexRow.cpp \
246         TexRow.h \
247         tex-strings.cpp \
248         tex-strings.h \
249         text2.cpp \
250         text3.cpp \
251         text.cpp \
252         TextMetrics.cpp \
253         TextMetrics.h \
254         Thesaurus.cpp \
255         Thesaurus.h \
256         TocBackend.cpp \
257         TocBackend.h \
258         toc.cpp \
259         toc.h \
260         ToolbarBackend.cpp \
261         ToolbarBackend.h \
262         Trans.cpp \
263         Trans.h \
264         TransState.cpp \
265         TransState.h \
266         Undo.cpp \
267         Undo.h \
268         update_flags.h \
269         VCBackend.cpp \
270         VCBackend.h \
271         version.C \
272         version.h \
273         WordLangTuple.h \
274         VSpace.cpp \
275         VSpace.h
276
277 version.C: stamp-version
278         @:
279
280 stamp-version: version.C-tmp
281         if cmp -s $< version.C ; then \
282                 : ;\
283         else \
284                 rm -f version.C ;\
285                 cp $< version.C ;\
286         fi
287         echo timestamp > $@