]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
New lyx_gui namespace. Some working out to be done still ..
[lyx.git] / src / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 DISTCLEANFILES += config.h libintl.h
4
5 MAINTAINERCLEANFILES += $(srcdir)/config.h.in
6
7 SUBDIRS = mathed insets graphics support frontends
8
9 LIBS += @LIBS@
10
11 bin_PROGRAMS = lyx
12
13 LYX_CONV_LIBS = mathed/libmathed.la insets/libinsets.la \
14         frontends/libfrontends.la \
15         graphics/libgraphics.la \
16         support/libsupport.la
17
18 BOOST_LIBS = ../boost/libs/regex/src/libboostregex.la \
19         ../boost/libs/signals/src/libboostsignals.la
20
21 #lyx_DEPENDENCIES = $(LYX_CONV_LIBS) $(INCLUDED_SIGC)
22
23 lyx_LDADD = $(LYX_CONV_LIBS) $(BOOST_LIBS) @INTLLIBS@ \
24         $(PSPELL_LIBS) @AIKSAURUS_LIBS@
25
26 #lyx_LDADD = $(LYX_CONV_LIBS) $(SIGC_LIBS) $(BOOST_LIBS) $(INCLUDED_SIGC) @INTLLIBS@ \
27 #       $(PSPELL_LIBS) @AIKSAURUS_LIBS@
28
29 #  @FRONTEND_LDFLAGS@ @FRONTEND_LIBS@
30
31 #lyx_LDFLAGS=-Wl,-O1
32
33 EXTRA_DIST = config.h.in stamp-h.in cheaders ext_l10n.h version.C.in \
34         Sectioning.h \
35         Sectioning.C \
36         Variables.C \
37         Variables.h \
38         counters.C \
39         counters.h \
40         tracer.C \
41         tracer.h
42
43 INCLUDES = $(SIGC_CFLAGS) $(BOOST_INCLUDES) $(PSPELL_INCLUDES)
44 #INCLUDES = $(BOOST_INCLUDES) $(PSPELL_INCLUDES)
45
46 localedir = $(datadir)/locale
47
48 BUILT_SOURCES = version.C
49
50 lyx_SOURCES = \
51         BufferView.C \
52         BufferView.h \
53         BufferView2.C \
54         BufferView_pimpl.C \
55         BufferView_pimpl.h \
56         Bullet.C \
57         Bullet.h \
58         Chktex.C \
59         Chktex.h \
60         CutAndPaste.C \
61         CutAndPaste.h \
62         DepTable.C \
63         DepTable.h \
64         FloatList.C \
65         FloatList.h \
66         Floating.C \
67         Floating.h \
68         FuncStatus.C \
69         FuncStatus.h \
70         LColor.C \
71         LColor.h \
72         LString.h \
73         LaTeX.C \
74         LaTeX.h \
75         LaTeXFeatures.C \
76         LaTeXFeatures.h \
77         Lsstream.h \
78         LyXAction.C \
79         LyXAction.h \
80         MenuBackend.C \
81         MenuBackend.h \
82         ParagraphParameters.C \
83         ParagraphParameters.h \
84         ParameterStruct.h \
85         PrinterParams.h \
86         ShareContainer.h \
87         Spacing.C \
88         Spacing.h \
89         TextCache.C \
90         TextCache.h \
91         Thesaurus.C \
92         Thesaurus.h \
93         ToolbarDefaults.C \
94         ToolbarDefaults.h \
95         box.h \
96         box.C \
97         broken_headers.h \
98         buffer.C \
99         buffer.h \
100         bufferlist.C \
101         bufferlist.h \
102         bufferparams.C \
103         bufferparams.h \
104         bufferview_funcs.C \
105         bufferview_funcs.h \
106         chset.C \
107         chset.h \
108         commandtags.h \
109         config.h.in \
110         converter.C \
111         converter.h \
112         debug.C \
113         debug.h \
114         encoding.C \
115         encoding.h \
116         exporter.C \
117         exporter.h \
118         gettext.C \
119         gettext.h \
120         importer.C \
121         importer.h \
122         intl.C \
123         intl.h \
124         iterators.C \
125         iterators.h \
126         kbmap.C \
127         kbmap.h \
128         kbsequence.C \
129         kbsequence.h \
130         language.C \
131         language.h \
132         lastfiles.C \
133         lastfiles.h \
134         layout.h \
135         lengthcommon.C \
136         lengthcommon.h \
137         lyx_cb.C \
138         lyx_cb.h \
139         lyx_main.C \
140         lyx_main.h \
141         lyx_sty.C \
142         lyx_sty.h \
143         lyxcursor.C \
144         lyxcursor.h \
145         lyxfont.C \
146         lyxfont.h \
147         lyxfind.C \
148         lyxfind.h \
149         lyxfunc.C \
150         lyxfunc.h \
151         lyxgluelength.C \
152         lyxgluelength.h \
153         lyxlayout.C \
154         lyxlayout.h \
155         lyxlength.C \
156         lyxlength.h \
157         lyxlex.C \
158         lyxlex.h \
159         lyxlex_pimpl.C \
160         lyxlex_pimpl.h \
161         lyxrc.C \
162         lyxrc.h \
163         lyxrow.C \
164         lyxrow.h \
165         lyxserver.C \
166         lyxserver.h \
167         lyxtext.h \
168         lyxtextclass.C \
169         lyxtextclass.h \
170         lyxtextclasslist.C \
171         lyxtextclasslist.h \
172         lyxvc.C \
173         lyxvc.h \
174         main.C \
175         minibuffer.C \
176         minibuffer.h \
177         paragraph.C \
178         paragraph.h \
179         paragraph_pimpl.C \
180         paragraph_pimpl.h \
181         sp_base.h \
182         sp_spell.C \
183         sp_ispell.h \
184         sp_pspell.h \
185         stl_string_fwd.h \
186         tabular.C \
187         tabular.h \
188         tabular-old.C \
189         tabular_funcs.C \
190         tabular_funcs.h \
191         tex-accent.C \
192         tex-accent.h \
193         tex-strings.C \
194         tex-strings.h \
195         texrow.C \
196         texrow.h \
197         text.C \
198         text2.C \
199         trans.C \
200         trans.h \
201         trans_decl.h \
202         trans_mgr.C \
203         trans_mgr.h \
204         undo.C \
205         undo.h \
206         undo_funcs.C \
207         undo_funcs.h \
208         vc-backend.C \
209         vc-backend.h \
210         version.C \
211         version.h \
212         vspace.C \
213         vspace.h
214
215 lyx_main.o: lyx_main.C lyx_main.h config.h version.h \
216         lyxrc.h support/path.h support/filetools.h \
217         bufferlist.h debug.h support/FileInfo.h lastfiles.h intl.h \
218         lyxserver.h layout.h gettext.h kbmap.h commandtags.h language.h
219         $(CXXCOMPILE) -DLYX_DIR=\"$(pkgdatadir)\" \
220           -DTOP_SRCDIR=\"$(top_srcdir)\" -c $(top_srcdir)/src/lyx_main.C
221
222 main.o: main.C config.h lyx_main.h gettext.h LString.h support/filetools.h support/os.h
223         $(CXXCOMPILE) -DLOCALEDIR=\"$(localedir)\" -c $(top_srcdir)/src/main.C
224
225 dist-hook:
226         cd $(distdir) ; rm -rf `find cheaders -name \*CVS\*`