3 ## Copyright (C) 2007 Steve Youngs.
5 ## This file is part of SXEmacs.
7 ## SXEmacs is free software: you can redistribute it and/or modify it
8 ## under the terms of the GNU General Public License as published by the
9 ## Free Software Foundation, either version 3 of the License, or (at your
10 ## option) any later version.
12 ## SXEmacs is distributed in the hope that it will be
13 ## useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 ## General Public License for more details.
17 ## You should have received a copy of the GNU General Public License
18 ## along with this program. If not, see <http://www.gnu.org/licenses/>.
20 ## Process this file with automake to produce Makefile.in
22 # Help the Developers and yourself. Just use the C locale and settings
23 # for the compilation. They can still be overriden by make LANG=<whatever>
24 # but that is general a not very good idea
30 top_builddir = @top_builddir@
31 top_srcdir = @top_srcdir@
32 abs_top_builddir = @abs_top_builddir@
33 abs_top_srcdir = @abs_top_srcdir@
35 sxesrcdir = $(top_srcdir)/src
36 bldsrcdir = $(top_builddir)/src
37 sxelispdir = $(abs_top_srcdir)/lisp
38 bldlispdir = $(abs_top_builddir)/lisp
39 bldffidir = $(bldlispdir)/ffi
40 bldmuledir = $(bldlispdir)/mule
41 bldtermdir = $(bldlispdir)/term
42 sxelwlibdir = $(top_srcdir)/src/ui/lwlib
43 bldlwlibdir = $(top_builddir)/src/ui/lwlib
45 lispffidir = $(lispdir)/ffi
46 lispmuledir = $(lispdir)/mule
47 lisptermdir = $(lispdir)/term
49 statlispdir = ${datadir}/${inststaticdir}
50 sxepkgdir = $(statlispdir)/sxemacs-packages
51 xepkgdir = $(statlispdir)/xemacs-packages
52 mulepkgdir = $(statlispdir)/mule-packages
53 sitepkgdir = $(statlispdir)/site-packages
55 ETAGS = $(top_builddir)/lib-src/etags
56 TAGS_DEPENDENCIES = $(ETAGS)
64 subdirs = ffi mule term
66 EXTRA_DIST = ffi/Makefile.in mule/Makefile.in
67 nocompile_bldchainels = \
68 build-autoloads.el compile-core.el loadup-el.el loadup.el \
69 site-load.el update-elc.el update-elc-2.el very-early-lisp.el
70 compile_bldchainels = \
71 autoload.el dump-paths.el dumped-lisp.el find-paths.el \
72 finder.el make-docfile.el setup-paths.el startup.el
73 bldchainels = $(nocompile_bldchainels) $(compile_bldchainels)
75 abbrev.el about.el alist.el apropos.el auto-save.el \
76 auto-show.el backquote.el blessmail.el buff-menu.el buffer.el \
77 build-rpt.el byte-optimize.el bytecomp-runtime.el bytecomp.el \
78 callers-of-rpt.el cl-compat.el cl-extra.el \
79 cl-macs.el cl-seq.el cl.el cmdloop.el code-cmds.el \
80 code-files.el code-process.el coding.el compat.el config.el \
81 console.el cus-dep.el cus-edit.el cus-face.el cus-file.el \
82 cus-load.el cus-start.el custom.el derived.el device.el \
83 dialog-gtk.el dialog-items.el dialog.el disass.el \
84 disp-table.el dragdrop.el easy-mmode.el easymenu.el \
85 emod-utils.el etags.el events.el extents.el faces.el ffi.el \
86 files-nomule.el files.el fill.el float-sup.el font-lock.el \
87 font-menu.el font.el fontl-hooks.el format.el frame.el gdk.el \
88 generic-widgets.el glade.el glyphs.el gnome-widgets.el gnome.el \
89 gnuserv.el gpm.el gtk-compose.el gtk-extra.el gtk-faces.el \
90 gtk-ffi.el gtk-file-dialog.el gtk-font-menu.el gtk-glyphs.el \
91 gtk-init.el gtk-iso8859-1.el gtk-marshal.el gtk-mouse.el \
92 gtk-package.el gtk-password-dialog.el gtk-select.el \
93 gtk-widget-accessors.el gtk-widgets.el gtk.el gui.el \
94 gutter-items.el gutter.el help-macro.el help-nomule.el help.el \
95 hyper-apropos.el indent.el info.el isearch-mode.el iso8859-1.el \
96 issue-tracker.el itimer-autosave.el itimer.el keydefs.el \
97 keymap.el ldap.el lib-complete.el lisp-initd.el lisp-mnt.el \
98 lisp-mode.el lisp.el list-mode.el loaddefs.el loadhist.el \
99 map-ynp.el menubar-items.el menubar.el minibuf.el misc.el \
100 mode-motion.el modeline.el mouse.el movemail.el multicast.el \
101 mwheel.el number.el objects.el obsolete.el package-admin.el \
102 package-get.el package-info.el package-ui.el packages.el \
103 page.el paragraphs.el paths.el picture.el printer.el \
104 process.el rect.el regexp-opt.el register.el replace.el \
105 resize-minibuffer.el scrollbar.el select.el shadow.el simple.el \
106 sound.el specifier.el subr.el symbol-syntax.el symbols.el \
107 syntax.el text-mode.el text-props.el toolbar-items.el \
108 toolbar.el tty-init.el undo-stack.el userlock.el version.el \
109 view-less.el wid-browse.el wid-edit.el widget.el widgets-gtk.el \
110 window-xemacs.el window.el x-color.el x-compose.el x-faces.el \
111 x-font-menu.el x-init.el x-iso8859-1.el x-misc.el x-mouse.el \
112 x-scrollbar.el x-select.el x-win-sun.el x-win-xfree86.el
115 ffi/ffi-curl.el ffi/ffi-gcrypt.el ffi/ffi-libc.el \
116 ffi/ffi-taglib.el ffi/ffi-wand.el ffi/ffi-magic.el \
117 ffi/ffi-dbus.el ffi/ffi-sqlite.el
119 mule/arabic.el mule/canna-leim.el mule/chinese.el \
120 mule/cyrillic.el mule/english.el mule/ethiopic.el \
121 mule/european.el mule/greek.el mule/hebrew.el mule/japanese.el \
122 mule/kinsoku.el mule/korean.el mule/latin.el mule/misc-lang.el \
123 mule/mule-category.el mule/ccl.el mule/mule-charset.el \
124 mule/mule-cmds.el mule/mule-coding.el mule/mule-help.el \
125 mule/mule-init.el mule/mule-misc.el mule/mule-tty-init.el \
126 mule/mule-x-init.el mule/thai-xtis-chars.el mule/thai-xtis.el \
127 mule/viet-chars.el mule/vietnamese.el
130 term/AT386.el term/apollo.el term/bg-mouse.el term/bobcat.el \
131 term/internal.el term/keyswap.el term/linux.el term/lk201.el \
132 term/news.el term/scoansi.el term/sun-mouse.el term/sun.el \
133 term/sup-mouse.el term/tvi970.el term/vt-control.el \
134 term/vt100-led.el term/vt100.el term/vt102.el term/vt125.el \
135 term/vt200.el term/vt201.el term/vt220.el term/vt240.el \
136 term/vt300.el term/vt320.el term/vt400.el term/vt420.el \
137 term/wyse50.el term/xterm.el
140 auto-autoloads.el custom-load.el finder-inf.el \
144 ffi/auto-autoloads.el ffi/custom-load.el \
145 ffi/custom-defines.el
148 mule/auto-autoloads.el mule/custom-load.el \
149 mule/custom-defines.el
153 builtels += $(ffibuiltels)
156 builtels += $(mulebuiltels)
160 compile_elfiles = $(compile_bldchainels) $(corelispels) $(termlispels)
162 compile_elfiles += $(ffilispels)
165 compile_elfiles += $(mulelispels)
167 elfiles = $(nocompile_elfiles) $(compile_elfiles)
169 nobase_dist_lisp_DATA = $(elfiles)
170 nobase_lisp_DATA = $(builtels) $(elfiles:.el=.elc) $(builtels:.el=.elc)
171 noinst_DATA = auto.stamp update-elc.stamp autoc.stamp
173 BUILT_FILES = auto.stamp update-elc.stamp autoc.stamp
175 CLEANFILES = core* stage1 stage2 $(builtels) $(builtels:.el=.elc) \
176 $(lisphier:=/*.el[c~]) *.stamp ffi/$(builtels) \
177 ffi/$(builtels:.el=.elc) \
178 mule/$(builtels) mule/$(builtels:.el=.elc) \
182 SXEMACS = $(bldsrcdir)/sxemacs
183 SXEMACS_DMP = $(SXEMACS).dmp
184 AALFILE = $(bldlispdir)/auto-autoloads.el
185 BITCH = $(SXEMACS) -batch
186 SXE_DYLD_PATH = $(bldsrcdir):$(bldsrcdir)/$(LT_OBJDIR):$(bldlwlibdir):$(bldlwlibdir)/$(LT_OBJDIR):$(DESTDIR)$(libdir)
187 BATCHENV = DYLD_LIBRARY_PATH=$(SXE_DYLD_PATH):$$DYLD_LIBRARY_PATH:$(DYLD_LIBRARY_PATH) \
188 LD_LIBRARY_PATH=$(SXE_DYLD_PATH):$$LD_LIBRARY_PATH:$(LD_LIBRARY_PATH) \
189 SHLIB_PATH=$(SXE_DYLD_PATH):$$SHLIB_PATH:$(SHLIB_PATH)
190 BITCHENV = $(BATCHENV) \
192 SOURCE_TREE_ROOT=$(abs_top_srcdir) \
193 BUILD_TREE_ROOT=$(abs_top_builddir)
194 BATCH = $(BITCHENV) $(BITCH)
195 PUREBATCH = $(BATCH) -nd
206 stamps = bldchn.stamp core.stamp term.stamp
215 TAGS: $(compile_elfiles) $(TAGS_DEPENDENCIES)
216 for i in $(compile_elfiles); do unique="$$unique ${srcdir}/$$i"; done; \
219 bldchn.stamp: $(SXEMACS) $(compile_bldchainels) auto.stamp
220 $(PUREBATCH) -l compile-core.el $(compile_bldchainels)
223 core.stamp: $(SXEMACS) $(corelispels) auto.stamp
224 $(PUREBATCH) -l compile-core.el $(corelispels)
227 ffi.stamp: $(SXEMACS) $(ffilispels) auto.stamp
228 $(PUREBATCH) -l compile-core.el $(ffilispels)
231 mule.stamp: $(SXEMACS) $(mulelispels) auto.stamp
232 $(PUREBATCH) -l compile-core.el $(mulelispels)
235 term.stamp: $(SXEMACS) $(termlispels) auto.stamp
236 $(PUREBATCH) -l compile-core.el $(termlispels)
239 autoc.stamp: $(SXEMACS) auto.stamp update-elc.stamp
240 @make_ifeq@ (yes,$(shell test -e $(bldsrcdir)/sxemacs.dmp && echo "yes"))
241 @echo "Building finder database ..."
242 $(BATCH) -vanilla -no-autoloads \
243 -l finder -f finder-compile-keywords
244 @echo "Building finder database ...(done)"
245 $(BATCHENV) $(BITCH) -no-autoloads -l config \
246 -l bytecomp -f batch-byte-compile $(builtels)
250 $(builtels): auto.stamp
251 $(builtels:.el=.elc): autoc.stamp
252 $(elfiles:.el=.elc): update-elc.stamp
254 update-elc.stamp: $(SXEMACS) $(compile_elfiles) auto.stamp $(stamps)
257 auto.stamp: $(SXEMACS) $(compile_elfiles)
258 for i in $(lisphier); do mkdir -p $$i; done
259 $(PUREBATCH) -l build-autoloads.el
263 #.el.elc: $(SXEMACS) $(SXEMACS_DMP) auto.stamp update-elc.stamp
264 # $(BATCH) -l bytecomp -f batch-byte-compile-one-file-here $<
266 #stage1: auto-autoloads.el
269 #stage2: stage1 ##$(builtels)