[7a3e83]: Makefile.devel Maximize Restore History

Download this file

Makefile.devel    473 lines (390 with data), 18.3 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
# -*- makefile -*-
# This is the developer's makefile, not the user's makefile.
# Do not use it unless you know exactly what you are doing!
# Some important programs:
SHELL = /bin/sh
MAKE = make
PERL = perl
GROFF = nroff -man
# GROFF = groff -mandoc
# Choose one of the packers:
# Standard Unix packer. Compress afterwards.
#PACK = tar
#PACKOPT = -cvf
#PACKEXT = .tar
# GNU tar together with compress.
#PACK = tar
#PACKOPT = cvfhz
#PACKEXT = .tar.Z
# set this if you are using GNU tar
EXCLUDE=--exclude CVS --exclude \*.fas --exclude \*.lib --exclude \*.obj \
--exclude \*.exe --exclude \*.mem --exclude \*.o --exclude build \
--exclude .cvsignore --exclude \*~ --exclude .\#\* \
--exclude $(AUTOCONF_CACHE) --exclude tmp --exclude queued \
`sed "s/^/--exclude /" doc/.cvsignore` \
--exclude TAGS --exclude \*.elc --exclude \*.orig --exclude \*.rej
# GNU tar together with GNU gzip. Good performance.
#PACK = tar
#PACKOPT = cvfhz
#PACKEXT = .tar.gz
# GNU tar together with bzip2. Slow, but excellent compression rates.
PACK = tar
PACKOPT = cvfhj
PACKEXT = .tar.bz2
# Popular DOS packer.
#PACK = zip
#PACKOPT = -r
#PACKEXT = .zip
# Popular Atari packer.
#PACK = zoo
#PACKOPT = -add
#PACKEXT = .zoo
# The distribution's top directory is called TOPDIR here.
# Use clisp-YYYY-MM-DD where DD.MM.YYYY is the date.
TOPDIR = clisp
T = $(TOPDIR)
SOURCES1 = $T/ANNOUNCE $T/COPYRIGHT $T/GNU-GPL $T/INSTALL $T/SUMMARY $T/clisp.spec $T/clisp.lsm $T/configure
SOURCES2 = $T/src
SOURCES4 = $T/ffcall $T/libcharset $T/utils
SOURCES5 = $T/unix $T/win32msvc $T/nextapp
SOURCES6 = $T/modules
# for developers only: $T/benchmarks $T/sacla-tests $T/ansi-tests
SOURCES7 = $T/tests $T/emacs $T/doc $T/Makefile.devel
SOURCES = $(SOURCES1) $(SOURCES2) $(SOURCES4) $(SOURCES5) $(SOURCES6) $(SOURCES7)
all : makefiles check-configures update-ansi-tests update-docbook-utils \
fixperms \
potfiles \
src/version.h \
src/uninames.h src/asmi386.h src/ari80386.msvc.c src/sp80386.msvc.c \
ffcall/avcall/avcall.h.msvc ffcall/vacall/config.h.msvc \
ffcall/vacall/vacall.h.msvc ffcall/trampoline/config.h.msvc \
ffcall/callback/vacall_r/config.h.msvc \
ffcall/callback/vacall_r/vacall_r.h.msvc \
ffcall/callback/trampoline_r/config.h.msvc \
htmldoc
ffcall-i386 : ffcall/avcall/avcall-i386-msvc.c \
ffcall/vacall/vacall-i386-msvc.c \
ffcall/callback/vacall_r/vacall-i386-msvc.c
htmldoc:
cd doc && make all && make html && cd ..;
makefiles : \
win32msvc/makefile.msvc7 \
win32msvc/makefile.msvc6 win32msvc/makefile.msvc6d \
win32msvc/makefile.msvc5 win32msvc/makefile.msvc5d \
win32msvc/makefile.msvc4
win32msvc/makefile.msvc4 : makemake
./makemake --with-dynamic-ffi \
win32msvc msvc4 > win32msvc/makefile.msvc4
win32msvc/makefile.msvc5 : makemake
./makemake --with-dynamic-ffi \
win32msvc msvc5 > win32msvc/makefile.msvc5
win32msvc/makefile.msvc5d : makemake
./makemake --with-dynamic-ffi \
win32msvc msvc5 debug > win32msvc/makefile.msvc5d
win32msvc/makefile.msvc6 : makemake
./makemake --with-dynamic-ffi \
win32msvc msvc6 > win32msvc/makefile.msvc6
win32msvc/makefile.msvc6d : makemake
./makemake --with-dynamic-ffi \
win32msvc msvc6 debug > win32msvc/makefile.msvc6d
win32msvc/makefile.msvc7 : makemake
./makemake --with-dynamic-ffi \
win32msvc msvc7 > win32msvc/makefile.msvc7
makemake : src/makemake.in version.sh
. version.sh; { \
echo "#!/bin/sh" ; \
sed "s/@PACKAGE_VERSION@/$${VERSION_NUMBER}/g" src/makemake.in ; \
} > makemake
chmod a+x makemake
CURDIR=$(shell pwd)
MODULES=berkeley-db clx/new-clx dirkey fastcgi i18n oracle pari pcre \
postgresql rawsock regexp syscalls wildcard zlib
MOD_CONFIGURES=$(patsubst %,modules/%/configure,$(MODULES))
MOD_CONFIG_H_IN=$(patsubst %,modules/%/config.h.in,$(MODULES))
CLISP_CONFIGURES=src/configure $(MOD_CONFIGURES)
FFCALL=avcall vacall trampoline callback callback/vacall_r callback/trampoline_r
FFCALL_CONFIGURES=ffcall/configure $(patsubst %,ffcall/%/configure,$(FFCALL))
CONFIGURES = $(CLISP_CONFIGURES) utils/hln/configure libcharset/configure \
${FFCALL_CONFIGURES}
CONFIG_H_IN = $(MOD_CONFIG_H_IN) src/unixconf.h.in
configures : ffcall/autoconf/aclocal.m4 $(CONFIGURES) $(CONFIG_H_IN)
src/autoconf/aclocal.m4 : $(wildcard src/m4/*.m4) \
$(addsuffix .in,$(CLISP_CONFIGURES))
egrep '(AC_INIT|AC_PREREQ)' src/configure.in > configure.ac
echo AC_GNU_SOURCE >> configure.ac
cat $(addsuffix .in,$(CLISP_CONFIGURES)) | \
egrep -v -e 'AC_(INIT|PREREQ|CANONICAL_|GNU_SOURCE|CONFIG_HEADER|OUTPUT)' \
-e 'AC_CONFIG_FILE.*(Makefile|link\.sh)' >> configure.ac
echo AC_OUTPUT >> configure.ac
aclocal -I `pwd`/src/m4 --output=src/autoconf/aclocal.m4
$(RM) configure.ac
AUTOCONF_FILES = src/autoconf/aclocal.m4
AUTOCONF = autoconf
AUTOCONF_CACHE = autom4te.cache
AUTOHEADER = autoheader
$(CLISP_CONFIGURES) utils/hln/configure: %/configure : \
%/configure.in $(AUTOCONF_FILES) version.sh
cd $*; $(AUTOCONF) --include=$(CURDIR)/src/autoconf --include=$(CURDIR)
$(MOD_CONFIG_H_IN) : %/config.h.in : %/configure.in $(AUTOCONF_FILES)
cd $*; $(AUTOHEADER) --include=$(CURDIR)/src/autoconf
src/unixconf.h.in : src/configure.in $(AUTOCONF_FILES)
cd src ; $(AUTOHEADER) --include=autoconf
ffcall/autoconf/aclocal.m4 : src/autoconf/aclocal.m4
cd ffcall ; $(MAKE) -f Makefile.devel autoconf/aclocal.m4
$(FFCALL_CONFIGURES) : %/configure : %/configure.in \
ffcall/autoconf/aclocal.m4 $(AUTOCONF_FILES)
cd ffcall ; $(MAKE) -f Makefile.devel $(patsubst ffcall/%,%,$@)
libcharset/configure : libcharset/configure.in libcharset/autoconf/aclocal.m4 $(AUTOCONF_FILES)
cd libcharset ; $(MAKE) -f Makefile.devel configure
# syntax check
check-configures : $(CONFIGURES) $(CONFIG_H_IN)
set -e; for f in $(CONFIGURES); do bash -x -n $$f; done
rm -rf `find . -name $(AUTOCONF_CACHE)`;
ANSITESTS_CVS_ROOT = :ext:anoncvs@savannah.gnu.org:/cvsroot/gcl
ANSITESTS_CVS_REPOSITORY = gcl/ansi-tests
update-ansi-tests:
if test -d ansi-tests; then \
cd ansi-tests && \
cvs update -d -P; \
else \
cvs -d "$(ANSITESTS_CVS_ROOT)" checkout $(ANSITESTS_CVS_REPOSITORY); \
mv $(ANSITESTS_CVS_REPOSITORY) ansi-tests; \
rm -rf `echo $(ANSITESTS_CVS_REPOSITORY) | sed -e 's,/.*,,'`; \
fi
DOCBOOK_XML_DOWNLOAD = http://www.docbook.org/xml/4.3/docbook-xml-4.3.zip
update-docbook-utils:
if test ! -d utils/docbook; then \
mkdir utils/docbook && \
cd utils/docbook && \
wget -O docbook-xml.zip $(DOCBOOK_XML_DOWNLOAD) && \
unzip -x docbook-xml.zip && \
rm -f docbook-xml.zip; \
fi
CLISP=$(CURDIR)/build/clisp
potfiles :
cd src/po && CLISP='$(CLISP)' $(MAKE) -f Makefile.devel && $(MAKE) -f Makefile.devel clean
fixperms :
./utils/fix-perms.sh
view-man :
grep -v '^#[ie]' doc/_clisp.1 | $(GROFF) -Tascii | less
view-html :
grep -v '^#[ie]' doc/_clisp.html > /tmp/clisp.html
netscape /tmp/clisp.html &
lynx /tmp/clisp.html
src/version.h: version.sh
. version.sh ; \
{ echo "/* generated by Makefile.devel from version.sh */" ; \
echo "#define PACKAGE_NAME \"GNU CLISP\"" ; \
echo "#define PACKAGE_TARNAME \"clisp\"" ; \
echo "#define PACKAGE_VERSION \"$$VERSION_NUMBER ($$RELEASE_DATE)\"" ; \
echo "#define PACKAGE_STRING \"GNU CLISP $$VERSION_NUMBER ($$RELEASE_DATE)\"" ; \
echo "#define PACKAGE_BUGREPORT \"http://clisp.cons.org/\""; \
} > src/version.h
src/uninames.h : utils/unicode/UnicodeDataFull.txt utils/gen-uninames
$(CLISP) utils/gen-uninames utils/unicode/UnicodeDataFull.txt src/uninames.h
src/asmi386.h : src/asmi386.hh
sed -e 's,//.*$$,,' < src/asmi386.hh > src/asmi386.h
src/ari80386.msvc.c : src/ari80386.d src/asmi386.sh
src/asmi386.sh -no-C < src/ari80386.d > src/ari80386.msvc.c
src/sp80386.msvc.c : src/sp80386.d src/asmi386.sh
src/asmi386.sh -no-C < src/sp80386.d > src/sp80386.msvc.c
ffcall/avcall/avcall.h.msvc : ffcall/avcall/avcall.h.in
cd ffcall ; $(MAKE) -f Makefile.devel avcall/avcall.h.msvc
ffcall/avcall/avcall-i386-msvc.c : ffcall/avcall/avcall-i386-macro.S ffcall/avcall/asmi386.sh
cd ffcall ; $(MAKE) -f Makefile.devel avcall/avcall-i386-msvc.c
# ffcall/vacall/config.h.in , ffcall/trampoline/config.h.in,
# all/callback/vacall_r/vacall_r.h.in, ffcall/callback/trampoline_r/config.h.in
# are not auto-generated!
ffcall/vacall/config.h.msvc : ffcall/vacall/config.h.in
cd ffcall ; $(MAKE) -f Makefile.devel vacall/config.h.msvc
ffcall/vacall/vacall.h.msvc : ffcall/vacall/vacall.h.in
cd ffcall ; $(MAKE) -f Makefile.devel vacall/vacall.h.msvc
ffcall/vacall/vacall-i386-msvc.c : ffcall/vacall/vacall-i386-macro.S ffcall/vacall/asmi386.sh
cd ffcall ; $(MAKE) -f Makefile.devel vacall/vacall-i386-msvc.c
ffcall/trampoline/config.h.msvc : ffcall/trampoline/config.h.in
cd ffcall ; $(MAKE) -f Makefile.devel trampoline/config.h.msvc
ffcall/callback/vacall_r/config.h.msvc : ffcall/callback/vacall_r/config.h.in
cd ffcall ; $(MAKE) -f Makefile.devel callback/vacall_r/config.h.msvc
ffcall/callback/vacall_r/vacall_r.h.msvc : ffcall/callback/vacall_r/vacall_r.h.in
cd ffcall ; $(MAKE) -f Makefile.devel callback/vacall_r/vacall_r.h.msvc
ffcall/callback/vacall_r/vacall-i386-msvc.c : ffcall/callback/vacall_r/vacall-i386-macro.S ffcall/callback/vacall_r/asmi386.sh
cd ffcall ; $(MAKE) -f Makefile.devel callback/vacall_r/vacall-i386-msvc.c
ffcall/callback/trampoline_r/config.h.msvc : ffcall/callback/trampoline_r/config.h.in
cd ffcall ; $(MAKE) -f Makefile.devel callback/trampoline_r/config.h.msvc
# Build and test all essential memory models on a Linux/x86 machine.
MULTIBUILD_OPTIONS =
MULTIBUILD_CFLAGS = -g
multibuild-linux-x86: build-linux-x86-1 build-linux-x86-2 build-linux-x86-3 build-linux-x86-4 build-linux-x86-5 build-linux-x86-6 build-linux-x86-7 build-linux-x86-8 build-linux-x86-9 build-linux-x86-10
build-linux-x86-1:
CFLAGS="-O -falign-functions=4 $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DSTANDARD_HEAPCODES -DCONS_HEAP_GROWS_UP" \
./configure --build $(MULTIBUILD_OPTIONS) \
build-standard-spvw_mixed_blocks-staggered
build-linux-x86-2:
CFLAGS="-O -falign-functions=4 $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DSTANDARD_HEAPCODES -DCONS_HEAP_GROWS_DOWN" \
./configure --build $(MULTIBUILD_OPTIONS) \
build-standard-spvw_mixed_blocks-opposite
build-linux-x86-3:
CFLAGS="-O -falign-functions=4 $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DSTANDARD_HEAPCODES -DNO_VIRTUAL_MEMORY -DNO_TRIVIALMAP" \
./configure --build $(MULTIBUILD_OPTIONS) \
build-standard-spvw_mixed_blocks-opposite-fixedmemsize
build-linux-x86-4:
CFLAGS="-O -falign-functions=4 $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DSTANDARD_HEAPCODES -DNO_SINGLEMAP -DNO_TRIVIALMAP -DNO_MULTIMAP_FILE -DNO_MULTIMAP_SHM" \
./configure --build $(MULTIBUILD_OPTIONS) \
build-standard-spvw_mixed_pages
build-linux-x86-5:
CFLAGS="-O -falign-functions=4 $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DLINUX_NOEXEC_HEAPCODES -DCONS_HEAP_GROWS_UP" \
./configure --build $(MULTIBUILD_OPTIONS) \
build-noexec-spvw_mixed_blocks-staggered
build-linux-x86-6:
CFLAGS="-O -falign-functions=4 $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DLINUX_NOEXEC_HEAPCODES -DCONS_HEAP_GROWS_DOWN" \
./configure --build $(MULTIBUILD_OPTIONS) \
build-noexec-spvw_mixed_blocks-opposite
build-linux-x86-7:
CFLAGS="-O -falign-functions=4 $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DLINUX_NOEXEC_HEAPCODES -DNO_VIRTUAL_MEMORY -DNO_TRIVIALMAP" \
./configure --build $(MULTIBUILD_OPTIONS) \
build-noexec-spvw_mixed_blocks-opposite-fixedmemsize
build-linux-x86-8:
CFLAGS="-O -falign-functions=4 $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DLINUX_NOEXEC_HEAPCODES -DNO_SINGLEMAP -DNO_TRIVIALMAP -DNO_MULTIMAP_FILE -DNO_MULTIMAP_SHM" \
./configure --build $(MULTIBUILD_OPTIONS) \
build-noexec-spvw_mixed_pages
build-linux-x86-9:
CFLAGS="-O -falign-functions=4 $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DTYPECODES" \
./configure --build $(MULTIBUILD_OPTIONS) \
build-spvw_pure_blocks
build-linux-x86-10:
CFLAGS="-O -falign-functions=4 $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DWIDE" \
./configure --build $(MULTIBUILD_OPTIONS) \
build-wide
multibuild-darwin-powerpc: build-darwin-powerpc-1 build-darwin-powerpc-2 build-darwin-powerpc-3 build-darwin-powerpc-4 build-darwin-powerpc-5 build-darwin-powerpc-6 build-darwin-powerpc-7 build-darwin-powerpc-8 build-darwin-powerpc-9 build-darwin-powerpc-10
build-darwin-powerpc-1:
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DSTANDARD_HEAPCODES -DCONS_HEAP_GROWS_UP" \
./configure --build $(MULTIBUILD_OPTIONS) \
build-standard-spvw_mixed_blocks-staggered
build-darwin-powerpc-2:
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DSTANDARD_HEAPCODES -DCONS_HEAP_GROWS_DOWN" \
./configure --build $(MULTIBUILD_OPTIONS) \
build-standard-spvw_mixed_blocks-opposite
build-darwin-powerpc-3:
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DSTANDARD_HEAPCODES -DNO_VIRTUAL_MEMORY -DNO_TRIVIALMAP" \
./configure --build $(MULTIBUILD_OPTIONS) \
build-standard-spvw_mixed_blocks-opposite-fixedmemsize
build-darwin-powerpc-4:
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DSTANDARD_HEAPCODES -DNO_SINGLEMAP -DNO_TRIVIALMAP -DNO_MULTIMAP_FILE -DNO_MULTIMAP_SHM" \
./configure --build $(MULTIBUILD_OPTIONS) \
build-standard-spvw_mixed_pages
build-darwin-powerpc-5:
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DLINUX_NOEXEC_HEAPCODES -DCONS_HEAP_GROWS_UP" \
./configure --build $(MULTIBUILD_OPTIONS) \
build-noexec-spvw_mixed_blocks-staggered
build-darwin-powerpc-6:
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DLINUX_NOEXEC_HEAPCODES -DCONS_HEAP_GROWS_DOWN" \
./configure --build $(MULTIBUILD_OPTIONS) \
build-noexec-spvw_mixed_blocks-opposite
build-darwin-powerpc-7:
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DLINUX_NOEXEC_HEAPCODES -DNO_VIRTUAL_MEMORY -DNO_TRIVIALMAP" \
./configure --build $(MULTIBUILD_OPTIONS) \
build-noexec-spvw_mixed_blocks-opposite-fixedmemsize
build-darwin-powerpc-8:
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DLINUX_NOEXEC_HEAPCODES -DNO_SINGLEMAP -DNO_TRIVIALMAP -DNO_MULTIMAP_FILE -DNO_MULTIMAP_SHM" \
./configure --build $(MULTIBUILD_OPTIONS) \
build-noexec-spvw_mixed_pages
build-darwin-powerpc-9:
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DTYPECODES" \
./configure --build $(MULTIBUILD_OPTIONS) \
build-spvw_pure_blocks
build-darwin-powerpc-10:
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DWIDE" \
./configure --build $(MULTIBUILD_OPTIONS) \
build-wide
# Bootstrap SBCL.
SBCL_VERSION = 0.8.15
SBCL_SOURCE_FILE = sbcl-$(SBCL_VERSION)-source.tar.bz2
SBCL_SOURCE_URL = http://www.haible.de/bruno/$(SBCL_SOURCE_FILE)
check-sbcl:
./configure --build build-for-sbcl
test -f $(SBCL_SOURCE_FILE) || wget $(SBCL_SOURCE_URL)
rm -rf sbcl-$(SBCL_VERSION)
bunzip2 -c < $(SBCL_SOURCE_FILE) | tar xvf -
clisp=`pwd`/build-for-sbcl/clisp; \
cd sbcl-$(SBCL_VERSION) && sh make.sh $$clisp
# Build a GCC from source.
# Note that this requires ca. 1 GB of disk space.
GCC_VERSION = 3.4.3
GCC_SOURCE_FILE = gcc-$(GCC_VERSION).tar.bz2
GCC_SOURCE_URL = http://ftp.gnu.org/gnu/gcc/gcc-$(GCC_VERSION)/$(GCC_SOURCE_FILE)
# Put here the --prefix that you would like to use for installing gcc.
# It should *not* be the same --prefix as you use for other programs.
GCC_INSTALL_DIR = $(shell dirname $$(dirname $$(which clisp | head -1)))/inst-gcc-$(GCC_VERSION)
install-gcc:
test -f $(GCC_SOURCE_FILE) || wget $(GCC_SOURCE_URL)
rm -rf gcc-$(GCC_VERSION) gcc-$(GCC_VERSION)-build
bunzip2 -c < $(GCC_SOURCE_FILE) | tar xvf -
mkdir gcc-$(GCC_VERSION)-build
gcc_install_dir='$(GCC_INSTALL_DIR)' ; \
cd gcc-$(GCC_VERSION)-build && ../gcc-$(GCC_VERSION)/configure --prefix="$$gcc_install_dir" --enable-shared --enable-threads `if grep __GLIBC__ /usr/include/features.h > /dev/null 2>/dev/null; then echo --enable-__cxa_atexit; fi` --enable-version-specific-runtime-libs --enable-languages=c,c++ --enable-nls
cd gcc-$(GCC_VERSION)-build && make bootstrap
cd gcc-$(GCC_VERSION)-build && make install
rm -rf gcc-$(GCC_VERSION)-build
rm -rf gcc-$(GCC_VERSION)
distrib : fixperms linux-distrib src-distrib
## Pre-release TODO:
# echo URL-tar.bz2| mail -s "clisp-`cat VERSION`" translation@IRO.UMontreal.CA
## RELEASE TODO:
# Before doing a "make src-distrib":
# * update version.sh, src/NEWS, src/HISTORY
# * update clisp.lsm, clisp.spec
# * "make -f Makefile.devel all"
# web pages to be updated:
# www/index.php, www/impnotes.html, www/clisp.html, www/impnotes/
# CLISP release announcements go to:
# clisp-announce@lists.sourceforge.net
# info-gnu@gnu.org
# news:comp.lang.lisp
# news:comp.os.linux.announce (linux-announce@news.ornl.gov)
# http://freshmeat.net/projects/clisp/
# https://sourceforge.net/news/submit.php?group_id=1355
VER=$(shell . version.sh ; echo $$VERSION_NUMBER)
SRC_DIST=/tmp/clisp-$(VER)$(PACKEXT)
SRC_DIST1=/tmp/clisp-$(VER).tar.gz
SSHUP=podval:~/public_html/clisp/
FTPUP=upload.sf.net:/incoming sunsite.unc.edu:/incoming/linux
$(SRC_DIST1) : $(SRC_DIST)
bzcat -v $(SRC_DIST) | gzip -9 -v > $(SRC_DIST1)
upload : $(SRC_DIST1) force
for h in $(SSHUP) ; do \
scp $(SRC_DIST) $(SRC_DIST1) $${h}/latest/; scp src/NEWS $${h}; \
done
for h in $(FTPUP) ; do \
lftp $${h} -e "put clisp.lsm $(SRC_DIST) $(SRC_DIST1); quit"; \
done
src-distrib : potfiles force
$(MAKE) -f Makefile.devel src--distrib TOPDIR=clisp-$(VER)
src--distrib : force
ln -s . $(TOPDIR)
$(PACK) $(PACKOPT) $(SRC_DIST) $(EXCLUDE) $(SOURCES)
rm -f $(TOPDIR)
linux-distrib : force
$(MAKE) linux--distrib
linux--distrib : force
cd make.gcc && $(MAKE) PACK="$(PACK)" PACKOPT="$(PACKOPT)" PACKEXT="$(PACKEXT)" distrib
force :