[5f1a6f]: Makefile.devel Maximize Restore History

Download this file

Makefile.devel    316 lines (237 with data), 11.6 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
# -*- 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 \
`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
# $T/benchmarks are for developers only
SOURCES7 = $T/tests $T/emacs $T/doc $T/Makefile.devel
SOURCES = $(SOURCES1) $(SOURCES2) $(SOURCES4) $(SOURCES5) $(SOURCES6) $(SOURCES7)
DOSDIR = /c:/clisp/src
EMXDIR = /c:/emx
RSXDIR = /c:/rsx
TEMPDIR = /tmp/clispdos
all : makefiles check-configures potfiles src/FILES src/VERSION 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.msvc4 win32msvc/makefile.msvc7 \
win32msvc/makefile.msvc5 win32msvc/makefile.msvc5d
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.msvc7 : makemake
./makemake --with-dynamic-ffi \
win32msvc msvc7 > win32msvc/makefile.msvc7
makemake : src/makemake.in
(echo "#!/bin/sh" ; cat src/makemake.in) > makemake
chmod a+x makemake
CURDIR=$(shell pwd)
CONFIGURES = src/configure \
modules/wildcard/configure modules/regexp/configure \
modules/clx/new-clx/configure modules/postgresql/configure \
modules/dirkey/configure modules/syscalls/configure \
modules/oracle/configure modules/fastcgi/configure \
modules/berkeley-db/configure modules/pcre/configure \
ffcall/configure ffcall/avcall/configure ffcall/vacall/configure \
ffcall/trampoline/configure ffcall/callback/configure \
ffcall/callback/vacall_r/configure \
ffcall/callback/trampoline_r/configure \
utils/hln/configure \
libcharset/configure
CONFIG_H_IN = modules/wildcard/config.h.in modules/regexp/config.h.in \
modules/dirkey/config.h.in modules/syscalls/config.h.in \
modules/clx/new-clx/config.h.in modules/postgresql/config.h.in \
modules/berkeley-db/config.h.in modules/pcre/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,$(CONFIGURES))
grep AC_INIT src/configure.in > configure.ac
cat $(addsuffix .in,$(CONFIGURES)) | grep -v AC_INIT | grep -v AC_CONFIG_HEADERS | grep -v AC_OUTPUT >> configure.ac
echo AC_OUTPUT >> configure.ac
aclocal -I src/m4 --output=src/autoconf/aclocal.m4
$(RM) configure.ac
AUTOCONF_FILES = src/autoconf/aclocal.m4
AUTOCONF = autoconf
AUTOCONF_CACHE = autom4te.cache
AUTOHEADER = autoheader
$(filter-out libcharset/%, $(filter-out ffcall/%, $(CONFIGURES))) : %/configure : %/configure.in $(AUTOCONF_FILES)
cd $*; $(AUTOCONF) --include=$(CURDIR)/src/autoconf
$(filter %/config.h.in, $(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/configure : ffcall/configure.in ffcall/autoconf/aclocal.m4 $(AUTOCONF_FILES)
cd ffcall ; $(MAKE) -f Makefile.devel configure
ffcall/avcall/configure : ffcall/avcall/configure.in ffcall/autoconf/aclocal.m4 $(AUTOCONF_FILES)
cd ffcall ; $(MAKE) -f Makefile.devel avcall/configure
ffcall/vacall/configure : ffcall/vacall/configure.in ffcall/autoconf/aclocal.m4 $(AUTOCONF_FILES)
cd ffcall ; $(MAKE) -f Makefile.devel vacall/configure
ffcall/trampoline/configure : ffcall/trampoline/configure.in ffcall/autoconf/aclocal.m4 $(AUTOCONF_FILES)
cd ffcall ; $(MAKE) -f Makefile.devel trampoline/configure
ffcall/callback/configure : ffcall/callback/configure.in ffcall/autoconf/aclocal.m4 $(AUTOCONF_FILES)
cd ffcall ; $(MAKE) -f Makefile.devel callback/configure
ffcall/callback/vacall_r/configure : ffcall/callback/vacall_r/configure.in ffcall/autoconf/aclocal.m4 $(AUTOCONF_FILES)
cd ffcall ; $(MAKE) -f Makefile.devel callback/vacall_r/configure
ffcall/callback/trampoline_r/configure : ffcall/callback/trampoline_r/configure.in ffcall/autoconf/aclocal.m4 $(AUTOCONF_FILES)
cd ffcall ; $(MAKE) -f Makefile.devel callback/trampoline_r/configure
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)`;
CLISP=$(CURDIR)/build/clisp
potfiles :
cd src/po && CLISP='$(CLISP)' $(MAKE) -f Makefile.devel && $(MAKE) -f Makefile.devel clean
view-man :
grep -v '^#[ie]' src/_clisp.1 | $(GROFF) -Tascii | less
view-html :
grep -v '^#[ie]' src/_clisp.html > /tmp/clisp.html
netscape /tmp/clisp.html &
lynx /tmp/clisp.html
src/FILES : src/FILES.1
$(GROFF) -Tascii src/FILES.1 > src/FILES
src/VERSION : src/configure
src/configure --version | head -1 | cut -d' ' -f 4 > src/VERSION
src/version.h: src/configure
echo "/* generated by Makefile.devel from src/configure */" > src/version.h
egrep '^PACKAGE_' src/configure | sed -e 's/^/#define /' -e "s/='/ \"/" -e "s/'$$/\"/" >> 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
distrib : 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 src/configure.in (version number), src/NEWS, src/HISTORY
# * update clisp.lsm, clisp.spec
# * "make -f Makefile.devel"
# * "make -f Makefile.devel check-configures"
# * check that src/genclisph.d is up to date.
# 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
# careful here: this src/VERSION is changed by this file!
VER=$(shell cat src/VERSION)
SRC_DIST=/tmp/clisp-$(VER)$(PACKEXT)
SRC_DIST1=/tmp/clisp-$(VER).tar.gz
SSHUP=gnudist:~/ftp-clisp/ cons:~/ftp-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 : src/FILES src/VERSION 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 :