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_build_prefix = $(top_builddir)/
32 top_srcdir = @top_srcdir@
33 abs_builddir = @abs_builddir@
34 abs_top_builddir = @abs_top_builddir@
35 abs_top_srcdir = @abs_top_srcdir@
37 ETAGS = $(top_builddir)/lib-src/etags
38 TAGS_DEPENDENCIES = $(ETAGS)
40 sxesrcdir = $(top_srcdir)/src
41 bldsrcdir = $(top_builddir)/src
42 sxelispdir = $(abs_top_srcdir)/lisp
43 bldlispdir = $(abs_top_builddir)/lisp
44 sxelwlibdir = $(top_srcdir)/src/ui/lwlib
45 bldlwlibdir = $(top_builddir)/src/ui/lwlib
49 EXTRA_DIST = autogen.sh
57 ## ldap is fucking broken, we dont add it
59 ### handled in master Makefile.am
61 #module_DATA = auto-autoloads.el auto-autoloads.elc
64 CLEANFILES = auto-autoloads.el* stage1 stage2
66 SXEMACS = $(top_builddir)/src/sxemacs
67 BITCH = $(SXEMACS) -batch
68 SXE_DYLD_PATH = $(bldsrcdir):$(bldsrcdir)/$(LT_OBJDIR):$(bldlwlibdir):$(bldlwlibdir)/$(LT_OBJDIR):$(DESTDIR)$(libdir)
69 BATCHENV = DYLD_LIBRARY_PATH=$(SXE_DYLD_PATH):$$DYLD_LIBRARY_PATH:$(DYLD_LIBRARY_PATH) \
70 LD_LIBRARY_PATH=$(SXE_DYLD_PATH):$$LD_LIBRARY_PATH:$(LD_LIBRARY_PATH) \
71 SHLIB_PATH=$(SXE_DYLD_PATH):$$SHLIB_PATH:$(SHLIB_PATH)
72 BITCHENV = $(BATCHENV) \
74 SOURCE_TREE_ROOT=$(abs_top_srcdir) \
75 BUILD_TREE_ROOT=$(abs_top_builddir)
76 BATCH = $(BITCHENV) $(BITCH)
77 PUREBATCH = $(BITCHENV) $(PITCH)
79 auto-autoloads.el: $(SXEMACS)
85 $(BATCHENV) $(BATCH) -vanilla -l bytecomp \
86 -f batch-byte-compile-one-file-here $<
91 #stage2: stage1 auto-autoloads.el