# Makefile for the CLISP binaries
# DO NOT EDIT! GENERATED AUTOMATICALLY!

# -------------- Start of configurable section --------------------

# Directories used by "make install":
prefix = /usr/local
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
mandir = $(exec_prefix)/man
libdir = $(exec_prefix)/lib
lisplibdir = $(libdir)/lisp

# Programs used by "make":
CC = gcc
CFLAGS = -O
CPP = gcc -E
XCC = gcc-atari
XCFLAGS = -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -fomit-frame-pointer -ffixed-a4 -fno-strength-reduce -O2
XCPP = gcc-atari -E
XCLFLAGS = 
XLIBS = 
X_LIBS = 
CHARSETCONVERT = ./cv_lt_at

MAKE = make
RM = rm -f
CP = cp -p
LN = ln -s
MV = mv
CAT = cat
TOUCH = touch
AR = ar
RANLIB = ranlib

# Programs used by "make install":
INSTALL = cp -p
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL)

# Programs used by "make distrib":

# formatter for manual page
ROFF_MAN = nroff -man # try "groff -Tascii -mandoc" or "nroff -man"
ROFF_DVI =  # try "groff -Tdvi -mandoc"

# -------------- End of configurable section --------------------

SHELL = /bin/sh

COMMENT5 = ./comment5
ANSIDECL = ./ansidecl
TXT2C = ./txt2c

DFILES = \
spvw.d \
spvwtabf.d \
spvwtabs.d \
spvwtabo.d \
eval.d \
control.d \
pathname.d \
stream.d \
io.d \
array.d \
hashtabl.d \
list.d \
package.d \
record.d \
sequence.d \
charstrg.d \
debug.d \
error.d \
misc.d \
predtype.d \
symbol.d \
lisparit.d \
alglobal.d \
lispbibl.d \
fsubr.d \
subr.d \
pseudofun.d \
constsym.d \
constobj.d \
atari.d \
constpack.d \
avl.d \
sort.d \
aridecl.d \
arilev0.d \
arilev1.d \
intelem.d \
intlog.d \
intplus.d \
intcomp.d \
intbyte.d \
intmal.d \
intdiv.d \
intgcd.d \
int2adic.d \
intsqrt.d \
intprint.d \
intread.d \
rational.d \
sfloat.d \
ffloat.d \
dfloat.d \
lfloat.d \
flo_konv.d \
flo_rest.d \
realelem.d \
realrand.d \
realtran.d \
compelem.d \
comptran.d \
arilev1c.d \
arilev1e.d \
arilev1i.d \
genclisph.d \
modules.d \
noreadline.d \
main.d \
ari68000.mot.d \
ari68000.mit.d \
ari68000.atari.d \
ari68020.mot.d \
ari68020.mit.d

CFILES = \
spvw.c \
spvwtabf.c \
spvwtabs.c \
spvwtabo.c \
eval.c \
control.c \
pathname.c \
stream.c \
io.c \
array.c \
hashtabl.c \
list.c \
package.c \
record.c \
sequence.c \
charstrg.c \
debug.c \
error.c \
misc.c \
predtype.c \
symbol.c \
lisparit.c \
alglobal.c \
lispbibl.c \
fsubr.c \
subr.c \
pseudofun.c \
constsym.c \
constobj.c \
atari.c \
constpack.c \
avl.c \
sort.c \
aridecl.c \
arilev0.c \
arilev1.c \
intelem.c \
intlog.c \
intplus.c \
intcomp.c \
intbyte.c \
intmal.c \
intdiv.c \
intgcd.c \
int2adic.c \
intsqrt.c \
intprint.c \
intread.c \
rational.c \
sfloat.c \
ffloat.c \
dfloat.c \
lfloat.c \
flo_konv.c \
flo_rest.c \
realelem.c \
realrand.c \
realtran.c \
compelem.c \
comptran.c \
arilev1c.c \
arilev1e.c \
arilev1i.c \
genclisph.c \
modules.c \
noreadline.c \
main.c \
ari68000.mot.c \
ari68000.mit.c \
ari68000.atari.c \
ari68020.mot.c \
ari68020.mit.c \
ari68000.c

OBJECTS = \
spvw.o \
spvwtabf.o \
spvwtabs.o \
spvwtabo.o \
eval.o \
control.o \
pathname.o \
stream.o \
io.o \
array.o \
hashtabl.o \
list.o \
package.o \
record.o \
sequence.o \
charstrg.o \
debug.o \
error.o \
misc.o \
predtype.o \
symbol.o \
lisparit.o \
alglobal.o \
ari68000.o

LSPFILES = \
init.lsp \
defseq.lsp \
backquot.lsp \
defmacro.lsp \
macros1.lsp \
macros2.lsp \
defs1.lsp \
timezone.lsp \
places.lsp \
floatpri.lsp \
type.lsp \
defstruc.lsp \
format.lsp \
user1.lsp \
user2.lsp \
trace.lsp \
macros3.lsp \
config.lsp \
compiler.lsp \
defs2.lsp \
loop.lsp \
clos.lsp \
conditio.lsp \
defs3.lsp \
gstream.lsp \
foreign.lsp \
screen.lsp \
stdwin1.lsp \
stdwin2.lsp \
rexx.lsp \
editor.lsp

FASFILES = \
init.fas \
defseq.fas \
backquot.fas \
defmacro.fas \
macros1.fas \
macros2.fas \
defs1.fas \
timezone.fas \
places.fas \
floatpri.fas \
type.fas \
defstruc.fas \
format.fas \
user1.fas \
user2.fas \
trace.fas \
macros3.fas \
config.fas \
compiler.fas \
defs2.fas \
loop.fas \
clos.fas \
conditio.fas \
defs3.fas \
gstream.fas \
foreign.fas \
screen.fas \
stdwin1.fas \
stdwin2.fas \
rexx.fas \
editor.fas

TXTFILES = \
LISP-tutorial.txt \
CLOS-guide.txt \
cltl2.txt

TESTLSPFILES = \
stage/init.lsp \
stage/defseq.lsp \
stage/backquot.lsp \
stage/defmacro.lsp \
stage/macros1.lsp \
stage/macros2.lsp \
stage/defs1.lsp \
stage/timezone.lsp \
stage/places.lsp \
stage/floatpri.lsp \
stage/type.lsp \
stage/defstruc.lsp \
stage/format.lsp \
stage/user1.lsp \
stage/user2.lsp \
stage/trace.lsp \
stage/macros3.lsp \
stage/config.lsp \
stage/compiler.lsp \
stage/defs2.lsp \
stage/loop.lsp \
stage/clos.lsp \
stage/conditio.lsp \
stage/defs3.lsp \
stage/gstream.lsp \
stage/foreign.lsp \
stage/screen.lsp \
stage/stdwin1.lsp \
stage/stdwin2.lsp \
stage/rexx.lsp \
stage/editor.lsp

TESTFASFILES = \
stage/init.fas \
stage/defseq.fas \
stage/backquot.fas \
stage/defmacro.fas \
stage/macros1.fas \
stage/macros2.fas \
stage/defs1.fas \
stage/timezone.fas \
stage/places.fas \
stage/floatpri.fas \
stage/type.fas \
stage/defstruc.fas \
stage/format.fas \
stage/user1.fas \
stage/user2.fas \
stage/trace.fas \
stage/macros3.fas \
stage/config.fas \
stage/compiler.fas \
stage/defs2.fas \
stage/loop.fas \
stage/clos.fas \
stage/conditio.fas \
stage/defs3.fas \
stage/gstream.fas \
stage/foreign.fas \
stage/screen.fas \
stage/stdwin1.fas \
stage/stdwin2.fas \
stage/rexx.fas \
stage/editor.fas


all : init allc allo lisp.prg interpreted.mem halfcompiled.mem compiled.mem manual


init : unixconf.h comment5 ansidecl txt2c cv_lt_at $(DFILES) modules.h

unixconf.h :
	if [ ! -f unixconf.h ] ; then $(TOUCH) unixconf.h ; fi

comment5 : ../utils/comment5.c
	$(CC) $(CFLAGS) ../utils/comment5.c -o comment5

ansidecl : ../utils/ansidecl.d comment5
	$(LN) ../utils/ansidecl.d ansidecl.d
	$(COMMENT5) ansidecl.d ansidecl.c
	$(RM) ansidecl.d
	$(CC) $(CFLAGS) ansidecl.c -o ansidecl
	$(RM) ansidecl.c

txt2c : ../utils/txt2c.c
	$(CC) $(CFLAGS) -DCROSS ../utils/txt2c.c -o txt2c

cv_lt_at : ../atari/cv_lt_at.c
	$(CC) $(CFLAGS) ../atari/cv_lt_at.c -o cv_lt_at


../src/version.h : ../src/VERSION
	sed -e 's/^/#define VERSION "/' -e 's/$$/"/' ../src/VERSION > ../src/version.h

spvw.d : ../src/spvw.d
	-$(LN) ../src/spvw.d spvw.d

spvwtabf.d : ../src/spvwtabf.d
	-$(LN) ../src/spvwtabf.d spvwtabf.d

spvwtabs.d : ../src/spvwtabs.d
	-$(LN) ../src/spvwtabs.d spvwtabs.d

spvwtabo.d : ../src/spvwtabo.d
	-$(LN) ../src/spvwtabo.d spvwtabo.d

eval.d : ../src/eval.d
	-$(LN) ../src/eval.d eval.d

control.d : ../src/control.d
	-$(LN) ../src/control.d control.d

pathname.d : ../src/pathname.d
	-$(LN) ../src/pathname.d pathname.d

stream.d : ../src/stream.d
	-$(LN) ../src/stream.d stream.d

io.d : ../src/io.d
	-$(LN) ../src/io.d io.d

array.d : ../src/array.d
	-$(LN) ../src/array.d array.d

hashtabl.d : ../src/hashtabl.d
	-$(LN) ../src/hashtabl.d hashtabl.d

list.d : ../src/list.d
	-$(LN) ../src/list.d list.d

package.d : ../src/package.d
	-$(LN) ../src/package.d package.d

record.d : ../src/record.d
	-$(LN) ../src/record.d record.d

sequence.d : ../src/sequence.d
	-$(LN) ../src/sequence.d sequence.d

charstrg.d : ../src/charstrg.d
	-$(LN) ../src/charstrg.d charstrg.d

debug.d : ../src/debug.d
	-$(LN) ../src/debug.d debug.d

error.d : ../src/error.d
	-$(LN) ../src/error.d error.d

misc.d : ../src/misc.d
	-$(LN) ../src/misc.d misc.d

predtype.d : ../src/predtype.d
	-$(LN) ../src/predtype.d predtype.d

symbol.d : ../src/symbol.d
	-$(LN) ../src/symbol.d symbol.d

lisparit.d : ../src/lisparit.d
	-$(LN) ../src/lisparit.d lisparit.d

alglobal.d : ../src/alglobal.d
	-$(LN) ../src/alglobal.d alglobal.d

lispbibl.d : ../src/lispbibl.d
	-$(LN) ../src/lispbibl.d lispbibl.d

fsubr.d : ../src/fsubr.d
	-$(LN) ../src/fsubr.d fsubr.d

subr.d : ../src/subr.d
	-$(LN) ../src/subr.d subr.d

pseudofun.d : ../src/pseudofun.d
	-$(LN) ../src/pseudofun.d pseudofun.d

constsym.d : ../src/constsym.d
	-$(LN) ../src/constsym.d constsym.d

constobj.d : ../src/constobj.d
	-$(LN) ../src/constobj.d constobj.d

atari.d : ../src/atari.d
	-$(LN) ../src/atari.d atari.d

constpack.d : ../src/constpack.d
	-$(LN) ../src/constpack.d constpack.d

avl.d : ../src/avl.d
	-$(LN) ../src/avl.d avl.d

sort.d : ../src/sort.d
	-$(LN) ../src/sort.d sort.d

aridecl.d : ../src/aridecl.d
	-$(LN) ../src/aridecl.d aridecl.d

arilev0.d : ../src/arilev0.d
	-$(LN) ../src/arilev0.d arilev0.d

arilev1.d : ../src/arilev1.d
	-$(LN) ../src/arilev1.d arilev1.d

intelem.d : ../src/intelem.d
	-$(LN) ../src/intelem.d intelem.d

intlog.d : ../src/intlog.d
	-$(LN) ../src/intlog.d intlog.d

intplus.d : ../src/intplus.d
	-$(LN) ../src/intplus.d intplus.d

intcomp.d : ../src/intcomp.d
	-$(LN) ../src/intcomp.d intcomp.d

intbyte.d : ../src/intbyte.d
	-$(LN) ../src/intbyte.d intbyte.d

intmal.d : ../src/intmal.d
	-$(LN) ../src/intmal.d intmal.d

intdiv.d : ../src/intdiv.d
	-$(LN) ../src/intdiv.d intdiv.d

intgcd.d : ../src/intgcd.d
	-$(LN) ../src/intgcd.d intgcd.d

int2adic.d : ../src/int2adic.d
	-$(LN) ../src/int2adic.d int2adic.d

intsqrt.d : ../src/intsqrt.d
	-$(LN) ../src/intsqrt.d intsqrt.d

intprint.d : ../src/intprint.d
	-$(LN) ../src/intprint.d intprint.d

intread.d : ../src/intread.d
	-$(LN) ../src/intread.d intread.d

rational.d : ../src/rational.d
	-$(LN) ../src/rational.d rational.d

sfloat.d : ../src/sfloat.d
	-$(LN) ../src/sfloat.d sfloat.d

ffloat.d : ../src/ffloat.d
	-$(LN) ../src/ffloat.d ffloat.d

dfloat.d : ../src/dfloat.d
	-$(LN) ../src/dfloat.d dfloat.d

lfloat.d : ../src/lfloat.d
	-$(LN) ../src/lfloat.d lfloat.d

flo_konv.d : ../src/flo_konv.d
	-$(LN) ../src/flo_konv.d flo_konv.d

flo_rest.d : ../src/flo_rest.d
	-$(LN) ../src/flo_rest.d flo_rest.d

realelem.d : ../src/realelem.d
	-$(LN) ../src/realelem.d realelem.d

realrand.d : ../src/realrand.d
	-$(LN) ../src/realrand.d realrand.d

realtran.d : ../src/realtran.d
	-$(LN) ../src/realtran.d realtran.d

compelem.d : ../src/compelem.d
	-$(LN) ../src/compelem.d compelem.d

comptran.d : ../src/comptran.d
	-$(LN) ../src/comptran.d comptran.d

arilev1c.d : ../src/arilev1c.d
	-$(LN) ../src/arilev1c.d arilev1c.d

arilev1e.d : ../src/arilev1e.d
	-$(LN) ../src/arilev1e.d arilev1e.d

arilev1i.d : ../src/arilev1i.d
	-$(LN) ../src/arilev1i.d arilev1i.d

genclisph.d : ../src/genclisph.d
	-$(LN) ../src/genclisph.d genclisph.d

modules.d : ../src/modules.d
	-$(LN) ../src/modules.d modules.d

noreadline.d : ../src/noreadline.d
	-$(LN) ../src/noreadline.d noreadline.d

main.d : ../src/main.d
	-$(LN) ../src/main.d main.d

ari68000.mot.d : ../src/ari68000.mot.d
	-$(LN) ../src/ari68000.mot.d ari68000.mot.d

ari68000.mit.d : ../src/ari68000.mit.d
	-$(LN) ../src/ari68000.mit.d ari68000.mit.d

ari68000.atari.d : ../src/ari68000.atari.d
	-$(LN) ../src/ari68000.atari.d ari68000.atari.d

ari68020.mot.d : ../src/ari68020.mot.d
	-$(LN) ../src/ari68020.mot.d ari68020.mot.d

ari68020.mit.d : ../src/ari68020.mit.d
	-$(LN) ../src/ari68020.mit.d ari68020.mit.d

version.h : ../src/version.h
	-$(LN) ../src/version.h version.h

modules.h : ../src/modules.h
	-$(LN) ../src/modules.h modules.h

module.cc : ../src/module.cc
	-$(LN) ../src/module.cc module.cc


allc : init $(CFILES)

spvw.c : spvw.d comment5 ansidecl
	$(COMMENT5) spvw.d | $(CHARSETCONVERT) | $(ANSIDECL) > spvw.c

spvwtabf.c : spvwtabf.d comment5 ansidecl
	$(COMMENT5) spvwtabf.d | $(CHARSETCONVERT) | $(ANSIDECL) > spvwtabf.c

spvwtabs.c : spvwtabs.d comment5 ansidecl
	$(COMMENT5) spvwtabs.d | $(CHARSETCONVERT) | $(ANSIDECL) > spvwtabs.c

spvwtabo.c : spvwtabo.d comment5 ansidecl
	$(COMMENT5) spvwtabo.d | $(CHARSETCONVERT) | $(ANSIDECL) > spvwtabo.c

eval.c : eval.d comment5 ansidecl
	$(COMMENT5) eval.d | $(CHARSETCONVERT) | $(ANSIDECL) > eval.c

control.c : control.d comment5 ansidecl
	$(COMMENT5) control.d | $(CHARSETCONVERT) | $(ANSIDECL) > control.c

pathname.c : pathname.d comment5 ansidecl
	$(COMMENT5) pathname.d | $(CHARSETCONVERT) | $(ANSIDECL) > pathname.c

stream.c : stream.d comment5 ansidecl
	$(COMMENT5) stream.d | $(CHARSETCONVERT) | $(ANSIDECL) > stream.c

io.c : io.d comment5 ansidecl
	$(COMMENT5) io.d | $(CHARSETCONVERT) | $(ANSIDECL) > io.c

array.c : array.d comment5 ansidecl
	$(COMMENT5) array.d | $(CHARSETCONVERT) | $(ANSIDECL) > array.c

hashtabl.c : hashtabl.d comment5 ansidecl
	$(COMMENT5) hashtabl.d | $(CHARSETCONVERT) | $(ANSIDECL) > hashtabl.c

list.c : list.d comment5 ansidecl
	$(COMMENT5) list.d | $(CHARSETCONVERT) | $(ANSIDECL) > list.c

package.c : package.d comment5 ansidecl
	$(COMMENT5) package.d | $(CHARSETCONVERT) | $(ANSIDECL) > package.c

record.c : record.d comment5 ansidecl
	$(COMMENT5) record.d | $(CHARSETCONVERT) | $(ANSIDECL) > record.c

sequence.c : sequence.d comment5 ansidecl
	$(COMMENT5) sequence.d | $(CHARSETCONVERT) | $(ANSIDECL) > sequence.c

charstrg.c : charstrg.d comment5 ansidecl
	$(COMMENT5) charstrg.d | $(CHARSETCONVERT) | $(ANSIDECL) > charstrg.c

debug.c : debug.d comment5 ansidecl
	$(COMMENT5) debug.d | $(CHARSETCONVERT) | $(ANSIDECL) > debug.c

error.c : error.d comment5 ansidecl
	$(COMMENT5) error.d | $(CHARSETCONVERT) | $(ANSIDECL) > error.c

misc.c : misc.d comment5 ansidecl
	$(COMMENT5) misc.d | $(CHARSETCONVERT) | $(ANSIDECL) > misc.c

predtype.c : predtype.d comment5 ansidecl
	$(COMMENT5) predtype.d | $(CHARSETCONVERT) | $(ANSIDECL) > predtype.c

symbol.c : symbol.d comment5 ansidecl
	$(COMMENT5) symbol.d | $(CHARSETCONVERT) | $(ANSIDECL) > symbol.c

lisparit.c : lisparit.d comment5 ansidecl
	$(COMMENT5) lisparit.d | $(CHARSETCONVERT) | $(ANSIDECL) > lisparit.c

alglobal.c : alglobal.d comment5 ansidecl
	$(COMMENT5) alglobal.d | $(CHARSETCONVERT) | $(ANSIDECL) > alglobal.c

lispbibl.c : lispbibl.d comment5 ansidecl
	$(COMMENT5) lispbibl.d | $(CHARSETCONVERT) | $(ANSIDECL) > lispbibl.c

fsubr.c : fsubr.d comment5 ansidecl
	$(COMMENT5) fsubr.d | $(CHARSETCONVERT) | $(ANSIDECL) > fsubr.c

subr.c : subr.d comment5 ansidecl
	$(COMMENT5) subr.d | $(CHARSETCONVERT) | $(ANSIDECL) > subr.c

pseudofun.c : pseudofun.d comment5 ansidecl
	$(COMMENT5) pseudofun.d | $(CHARSETCONVERT) | $(ANSIDECL) > pseudofun.c

constsym.c : constsym.d comment5 ansidecl
	$(COMMENT5) constsym.d | $(CHARSETCONVERT) | $(ANSIDECL) > constsym.c

constobj.c : constobj.d comment5 ansidecl
	$(COMMENT5) constobj.d | $(CHARSETCONVERT) | $(ANSIDECL) > constobj.c

atari.c : atari.d comment5 ansidecl
	$(COMMENT5) atari.d | $(CHARSETCONVERT) | $(ANSIDECL) > atari.c

constpack.c : constpack.d comment5 ansidecl
	$(COMMENT5) constpack.d | $(CHARSETCONVERT) | $(ANSIDECL) > constpack.c

avl.c : avl.d comment5 ansidecl
	$(COMMENT5) avl.d | $(CHARSETCONVERT) | $(ANSIDECL) > avl.c

sort.c : sort.d comment5 ansidecl
	$(COMMENT5) sort.d | $(CHARSETCONVERT) | $(ANSIDECL) > sort.c

aridecl.c : aridecl.d comment5 ansidecl
	$(COMMENT5) aridecl.d | $(CHARSETCONVERT) | $(ANSIDECL) > aridecl.c

arilev0.c : arilev0.d comment5 ansidecl
	$(COMMENT5) arilev0.d | $(CHARSETCONVERT) | $(ANSIDECL) > arilev0.c

arilev1.c : arilev1.d comment5 ansidecl
	$(COMMENT5) arilev1.d | $(CHARSETCONVERT) | $(ANSIDECL) > arilev1.c

intelem.c : intelem.d comment5 ansidecl
	$(COMMENT5) intelem.d | $(CHARSETCONVERT) | $(ANSIDECL) > intelem.c

intlog.c : intlog.d comment5 ansidecl
	$(COMMENT5) intlog.d | $(CHARSETCONVERT) | $(ANSIDECL) > intlog.c

intplus.c : intplus.d comment5 ansidecl
	$(COMMENT5) intplus.d | $(CHARSETCONVERT) | $(ANSIDECL) > intplus.c

intcomp.c : intcomp.d comment5 ansidecl
	$(COMMENT5) intcomp.d | $(CHARSETCONVERT) | $(ANSIDECL) > intcomp.c

intbyte.c : intbyte.d comment5 ansidecl
	$(COMMENT5) intbyte.d | $(CHARSETCONVERT) | $(ANSIDECL) > intbyte.c

intmal.c : intmal.d comment5 ansidecl
	$(COMMENT5) intmal.d | $(CHARSETCONVERT) | $(ANSIDECL) > intmal.c

intdiv.c : intdiv.d comment5 ansidecl
	$(COMMENT5) intdiv.d | $(CHARSETCONVERT) | $(ANSIDECL) > intdiv.c

intgcd.c : intgcd.d comment5 ansidecl
	$(COMMENT5) intgcd.d | $(CHARSETCONVERT) | $(ANSIDECL) > intgcd.c

int2adic.c : int2adic.d comment5 ansidecl
	$(COMMENT5) int2adic.d | $(CHARSETCONVERT) | $(ANSIDECL) > int2adic.c

intsqrt.c : intsqrt.d comment5 ansidecl
	$(COMMENT5) intsqrt.d | $(CHARSETCONVERT) | $(ANSIDECL) > intsqrt.c

intprint.c : intprint.d comment5 ansidecl
	$(COMMENT5) intprint.d | $(CHARSETCONVERT) | $(ANSIDECL) > intprint.c

intread.c : intread.d comment5 ansidecl
	$(COMMENT5) intread.d | $(CHARSETCONVERT) | $(ANSIDECL) > intread.c

rational.c : rational.d comment5 ansidecl
	$(COMMENT5) rational.d | $(CHARSETCONVERT) | $(ANSIDECL) > rational.c

sfloat.c : sfloat.d comment5 ansidecl
	$(COMMENT5) sfloat.d | $(CHARSETCONVERT) | $(ANSIDECL) > sfloat.c

ffloat.c : ffloat.d comment5 ansidecl
	$(COMMENT5) ffloat.d | $(CHARSETCONVERT) | $(ANSIDECL) > ffloat.c

dfloat.c : dfloat.d comment5 ansidecl
	$(COMMENT5) dfloat.d | $(CHARSETCONVERT) | $(ANSIDECL) > dfloat.c

lfloat.c : lfloat.d comment5 ansidecl
	$(COMMENT5) lfloat.d | $(CHARSETCONVERT) | $(ANSIDECL) > lfloat.c

flo_konv.c : flo_konv.d comment5 ansidecl
	$(COMMENT5) flo_konv.d | $(CHARSETCONVERT) | $(ANSIDECL) > flo_konv.c

flo_rest.c : flo_rest.d comment5 ansidecl
	$(COMMENT5) flo_rest.d | $(CHARSETCONVERT) | $(ANSIDECL) > flo_rest.c

realelem.c : realelem.d comment5 ansidecl
	$(COMMENT5) realelem.d | $(CHARSETCONVERT) | $(ANSIDECL) > realelem.c

realrand.c : realrand.d comment5 ansidecl
	$(COMMENT5) realrand.d | $(CHARSETCONVERT) | $(ANSIDECL) > realrand.c

realtran.c : realtran.d comment5 ansidecl
	$(COMMENT5) realtran.d | $(CHARSETCONVERT) | $(ANSIDECL) > realtran.c

compelem.c : compelem.d comment5 ansidecl
	$(COMMENT5) compelem.d | $(CHARSETCONVERT) | $(ANSIDECL) > compelem.c

comptran.c : comptran.d comment5 ansidecl
	$(COMMENT5) comptran.d | $(CHARSETCONVERT) | $(ANSIDECL) > comptran.c

arilev1c.c : arilev1c.d comment5 ansidecl
	$(COMMENT5) arilev1c.d | $(CHARSETCONVERT) | $(ANSIDECL) > arilev1c.c

arilev1e.c : arilev1e.d comment5 ansidecl
	$(COMMENT5) arilev1e.d | $(CHARSETCONVERT) | $(ANSIDECL) > arilev1e.c

arilev1i.c : arilev1i.d comment5 ansidecl
	$(COMMENT5) arilev1i.d | $(CHARSETCONVERT) | $(ANSIDECL) > arilev1i.c

genclisph.c : genclisph.d comment5 ansidecl
	$(COMMENT5) genclisph.d | $(CHARSETCONVERT) | $(ANSIDECL) > genclisph.c

modules.c : modules.d comment5 ansidecl
	$(COMMENT5) modules.d | $(CHARSETCONVERT) | $(ANSIDECL) > modules.c

noreadline.c : noreadline.d comment5 ansidecl
	$(COMMENT5) noreadline.d | $(CHARSETCONVERT) | $(ANSIDECL) > noreadline.c

main.c : main.d comment5 ansidecl
	$(COMMENT5) main.d | $(CHARSETCONVERT) | $(ANSIDECL) > main.c

ari68000.mot.c : ari68000.mot.d comment5  
	$(COMMENT5) ari68000.mot.d > ari68000.mot.c

ari68000.mit.c : ari68000.mit.d comment5  
	$(COMMENT5) ari68000.mit.d > ari68000.mit.c

ari68000.atari.c : ari68000.atari.d comment5  
	$(COMMENT5) ari68000.atari.d > ari68000.atari.c

ari68020.mot.c : ari68020.mot.d comment5  
	$(COMMENT5) ari68020.mot.d > ari68020.mot.c

ari68020.mit.c : ari68020.mit.d comment5  
	$(COMMENT5) ari68020.mit.d > ari68020.mit.c

# Change "ari68000.mit" to "ari68000.atari" when using "gcc-atari -mshort"
ari68000.c : ari68000.mit.c
	$(LN) ari68000.mit.c ari68000.c

ari68000.s : ari68000.c
	$(XCPP) -DUNDERSCORE ari68000.c > ari68000.s

allo : allc spvw.o spvwtabf.o spvwtabs.o spvwtabo.o eval.o control.o pathname.o stream.o io.o array.o hashtabl.o list.o package.o record.o sequence.o charstrg.o debug.o error.o misc.o predtype.o symbol.o lisparit.o alglobal.o

alls : allc spvw.s spvwtabf.s spvwtabs.s spvwtabo.s eval.s control.s pathname.s stream.s io.s array.s hashtabl.s list.s package.s record.s sequence.s charstrg.s debug.s error.s misc.s predtype.s symbol.s lisparit.s alglobal.s

spvw.i : spvw.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c constpack.c avl.c sort.c arilev0.c aridecl.c version.h
	$(XCPP) $(XCFLAGS) spvw.c > spvw.i

spvw.s : spvw.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c constpack.c avl.c sort.c arilev0.c aridecl.c version.h
	$(XCC) $(XCFLAGS) -S spvw.c

spvw.o : spvw.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c constpack.c avl.c sort.c arilev0.c aridecl.c version.h
	$(XCC) $(XCFLAGS) -c spvw.c

spvwtabf.i : spvwtabf.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCPP) $(XCFLAGS) spvwtabf.c > spvwtabf.i

spvwtabf.s : spvwtabf.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -S spvwtabf.c

spvwtabf.o : spvwtabf.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -c spvwtabf.c

spvwtabs.i : spvwtabs.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCPP) $(XCFLAGS) spvwtabs.c > spvwtabs.i

spvwtabs.s : spvwtabs.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -S spvwtabs.c

spvwtabs.o : spvwtabs.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -c spvwtabs.c

spvwtabo.i : spvwtabo.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCPP) $(XCFLAGS) spvwtabo.c > spvwtabo.i

spvwtabo.s : spvwtabo.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -S spvwtabo.c

spvwtabo.o : spvwtabo.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -c spvwtabo.c

eval.i : eval.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCPP) $(XCFLAGS) eval.c > eval.i

eval.s : eval.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -S eval.c

eval.o : eval.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -c eval.c

control.i : control.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCPP) $(XCFLAGS) control.c > control.i

control.s : control.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -S control.c

control.o : control.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -c control.c

pathname.i : pathname.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCPP) $(XCFLAGS) pathname.c > pathname.i

pathname.s : pathname.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -S pathname.c

pathname.o : pathname.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -c pathname.c

stream.i : stream.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c arilev0.c
	$(XCPP) $(XCFLAGS) stream.c > stream.i

stream.s : stream.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c arilev0.c
	$(XCC) $(XCFLAGS) -S stream.c

stream.o : stream.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c arilev0.c
	$(XCC) $(XCFLAGS) -c stream.c

io.i : io.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c arilev0.c
	$(XCPP) $(XCFLAGS) io.c > io.i

io.s : io.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c arilev0.c
	$(XCC) $(XCFLAGS) -S io.c

io.o : io.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c arilev0.c
	$(XCC) $(XCFLAGS) -c io.c

array.i : array.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c arilev0.c
	$(XCPP) $(XCFLAGS) array.c > array.i

array.s : array.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c arilev0.c
	$(XCC) $(XCFLAGS) -S array.c

array.o : array.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c arilev0.c
	$(XCC) $(XCFLAGS) -c array.c

hashtabl.i : hashtabl.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c arilev0.c aridecl.c
	$(XCPP) $(XCFLAGS) hashtabl.c > hashtabl.i

hashtabl.s : hashtabl.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c arilev0.c aridecl.c
	$(XCC) $(XCFLAGS) -S hashtabl.c

hashtabl.o : hashtabl.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c arilev0.c aridecl.c
	$(XCC) $(XCFLAGS) -c hashtabl.c

list.i : list.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCPP) $(XCFLAGS) list.c > list.i

list.s : list.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -S list.c

list.o : list.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -c list.c

package.i : package.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c constpack.c arilev0.c
	$(XCPP) $(XCFLAGS) package.c > package.i

package.s : package.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c constpack.c arilev0.c
	$(XCC) $(XCFLAGS) -S package.c

package.o : package.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c constpack.c arilev0.c
	$(XCC) $(XCFLAGS) -c package.c

record.i : record.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCPP) $(XCFLAGS) record.c > record.i

record.s : record.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -S record.c

record.o : record.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -c record.c

sequence.i : sequence.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCPP) $(XCFLAGS) sequence.c > sequence.i

sequence.s : sequence.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -S sequence.c

sequence.o : sequence.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -c sequence.c

charstrg.i : charstrg.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCPP) $(XCFLAGS) charstrg.c > charstrg.i

charstrg.s : charstrg.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -S charstrg.c

charstrg.o : charstrg.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -c charstrg.c

debug.i : debug.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCPP) $(XCFLAGS) debug.c > debug.i

debug.s : debug.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -S debug.c

debug.o : debug.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -c debug.c

error.i : error.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCPP) $(XCFLAGS) error.c > error.i

error.s : error.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -S error.c

error.o : error.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -c error.c

misc.i : misc.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c arilev0.c
	$(XCPP) $(XCFLAGS) misc.c > misc.i

misc.s : misc.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c arilev0.c
	$(XCC) $(XCFLAGS) -S misc.c

misc.o : misc.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c arilev0.c
	$(XCC) $(XCFLAGS) -c misc.c

predtype.i : predtype.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCPP) $(XCFLAGS) predtype.c > predtype.i

predtype.s : predtype.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -S predtype.c

predtype.o : predtype.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -c predtype.c

symbol.i : symbol.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCPP) $(XCFLAGS) symbol.c > symbol.i

symbol.s : symbol.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -S symbol.c

symbol.o : symbol.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -c symbol.c

lisparit.i : lisparit.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c aridecl.c arilev0.c arilev1.c intelem.c intlog.c intplus.c intcomp.c intbyte.c intmal.c intdiv.c intgcd.c int2adic.c intsqrt.c intprint.c intread.c rational.c sfloat.c ffloat.c dfloat.c lfloat.c flo_konv.c flo_rest.c realelem.c realrand.c realtran.c compelem.c comptran.c arilev1c.c arilev1e.c arilev1i.c ari68000.c
	$(XCPP) $(XCFLAGS) lisparit.c > lisparit.i

lisparit.s : lisparit.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c aridecl.c arilev0.c arilev1.c intelem.c intlog.c intplus.c intcomp.c intbyte.c intmal.c intdiv.c intgcd.c int2adic.c intsqrt.c intprint.c intread.c rational.c sfloat.c ffloat.c dfloat.c lfloat.c flo_konv.c flo_rest.c realelem.c realrand.c realtran.c compelem.c comptran.c arilev1c.c arilev1e.c arilev1i.c ari68000.c
	$(XCC) $(XCFLAGS) -S lisparit.c

lisparit.o : lisparit.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c aridecl.c arilev0.c arilev1.c intelem.c intlog.c intplus.c intcomp.c intbyte.c intmal.c intdiv.c intgcd.c int2adic.c intsqrt.c intprint.c intread.c rational.c sfloat.c ffloat.c dfloat.c lfloat.c flo_konv.c flo_rest.c realelem.c realrand.c realtran.c compelem.c comptran.c arilev1c.c arilev1e.c arilev1i.c ari68000.c
	$(XCC) $(XCFLAGS) -c lisparit.c

alglobal.i : alglobal.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCPP) $(XCFLAGS) alglobal.c > alglobal.i

alglobal.s : alglobal.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -S alglobal.c

alglobal.o : alglobal.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -c alglobal.c

genclisph.i : genclisph.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCPP) $(XCFLAGS) genclisph.c > genclisph.i

genclisph.s : genclisph.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -O0 -S genclisph.c

genclisph.o : genclisph.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -O0 -c genclisph.c

modules.i : modules.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c modules.h
	$(XCPP) $(XCFLAGS) -DNO_CLISP_H modules.c > modules.i

modules.s : modules.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c modules.h
	$(XCC) $(XCFLAGS) -DNO_CLISP_H -S modules.c

modules.o : modules.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c modules.h
	$(XCC) $(XCFLAGS) -DNO_CLISP_H -c modules.c

noreadline.i : noreadline.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCPP) $(XCFLAGS) noreadline.c > noreadline.i

noreadline.s : noreadline.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -S noreadline.c

noreadline.o : noreadline.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -c noreadline.c

main.i : main.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCPP) $(XCFLAGS) main.c > main.i

main.s : main.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -S main.c

main.o : main.c lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	$(XCC) $(XCFLAGS) -c main.c

ari68000.o : ari68000.s
	$(XCC) $(XCFLAGS) -c ari68000.s

lisp.o : $(OBJECTS)
	ld -r -o lisp.o $(OBJECTS)
	chmod a-x lisp.o

lisp.a : lisp.o modules.o main.o
	$(AR) rcv lisp.a lisp.o modules.o main.o
	$(RANLIB) lisp.a

libnoreadline.a : noreadline.o
	$(AR) rcv libnoreadline.a noreadline.o
	$(RANLIB) libnoreadline.a

lisp.prg : $(OBJECTS) modules.o   
	$(XCC) $(XCFLAGS) $(XCLFLAGS) $(OBJECTS) modules.o $(XLIBS) $(X_LIBS) -o lisp.prg
	-sync


alllsp : $(LSPFILES)

init.lsp : ../src/init.lsp
	-$(LN) ../src/init.lsp init.lsp

defseq.lsp : ../src/defseq.lsp
	-$(LN) ../src/defseq.lsp defseq.lsp

backquot.lsp : ../src/backquot.lsp
	-$(LN) ../src/backquot.lsp backquot.lsp

defmacro.lsp : ../src/defmacro.lsp
	-$(LN) ../src/defmacro.lsp defmacro.lsp

macros1.lsp : ../src/macros1.lsp
	-$(LN) ../src/macros1.lsp macros1.lsp

macros2.lsp : ../src/macros2.lsp
	-$(LN) ../src/macros2.lsp macros2.lsp

defs1.lsp : ../src/defs1.lsp
	-$(LN) ../src/defs1.lsp defs1.lsp

timezone.lsp : ../src/timezone.lsp
	-$(LN) ../src/timezone.lsp timezone.lsp

places.lsp : ../src/places.lsp
	-$(LN) ../src/places.lsp places.lsp

floatpri.lsp : ../src/floatpri.lsp
	-$(LN) ../src/floatpri.lsp floatpri.lsp

type.lsp : ../src/type.lsp
	-$(LN) ../src/type.lsp type.lsp

defstruc.lsp : ../src/defstruc.lsp
	-$(LN) ../src/defstruc.lsp defstruc.lsp

format.lsp : ../src/format.lsp
	-$(LN) ../src/format.lsp format.lsp

user1.lsp : ../src/user1.lsp
	-$(LN) ../src/user1.lsp user1.lsp

user2.lsp : ../src/user2.lsp
	-$(LN) ../src/user2.lsp user2.lsp

trace.lsp : ../src/trace.lsp
	-$(LN) ../src/trace.lsp trace.lsp

macros3.lsp : ../src/macros3.lsp
	-$(LN) ../src/macros3.lsp macros3.lsp

config.lsp : ../src/cfgathd.lsp
	$(CP) ../src/cfgathd.lsp config.lsp

compiler.lsp : ../src/compiler.lsp
	-$(LN) ../src/compiler.lsp compiler.lsp

defs2.lsp : ../src/defs2.lsp
	-$(LN) ../src/defs2.lsp defs2.lsp

loop.lsp : ../src/loop.lsp
	-$(LN) ../src/loop.lsp loop.lsp

clos.lsp : ../src/clos.lsp
	-$(LN) ../src/clos.lsp clos.lsp

conditio.lsp : ../src/conditio.lsp
	-$(LN) ../src/conditio.lsp conditio.lsp

defs3.lsp : ../src/defs3.lsp
	-$(LN) ../src/defs3.lsp defs3.lsp

gstream.lsp : ../src/gstream.lsp
	-$(LN) ../src/gstream.lsp gstream.lsp

foreign.lsp : ../src/foreign.lsp
	-$(LN) ../src/foreign.lsp foreign.lsp

screen.lsp : ../src/screen.lsp
	-$(LN) ../src/screen.lsp screen.lsp

stdwin1.lsp : ../src/stdwin1.lsp
	-$(LN) ../src/stdwin1.lsp stdwin1.lsp

stdwin2.lsp : ../src/stdwin2.lsp
	-$(LN) ../src/stdwin2.lsp stdwin2.lsp

rexx.lsp : ../src/rexx.lsp
	-$(LN) ../src/rexx.lsp rexx.lsp

editor.lsp : ../src/editor.lsp
	-$(LN) ../src/editor.lsp editor.lsp

init.fas : init.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"init.lsp\")"

defseq.fas : defseq.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"defseq.lsp\")"

backquot.fas : backquot.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"backquot.lsp\")"

defmacro.fas : defmacro.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"defmacro.lsp\")"

macros1.fas : macros1.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"macros1.lsp\")"

macros2.fas : macros2.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"macros2.lsp\")"

defs1.fas : defs1.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"defs1.lsp\")"

timezone.fas : timezone.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"timezone.lsp\")"

places.fas : places.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"places.lsp\")"

floatpri.fas : floatpri.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"floatpri.lsp\")"

type.fas : type.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"type.lsp\")"

defstruc.fas : defstruc.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"defstruc.lsp\")"

format.fas : format.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"format.lsp\")"

user1.fas : user1.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"user1.lsp\")"

user2.fas : user2.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"user2.lsp\")"

trace.fas : trace.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"trace.lsp\")"

macros3.fas : macros3.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"macros3.lsp\")"

config.fas : config.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"config.lsp\")"

compiler.fas : compiler.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"compiler.lsp\")"

defs2.fas : defs2.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"defs2.lsp\")"

loop.fas : loop.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"loop.lsp\")"

clos.fas : clos.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"clos.lsp\")"

conditio.fas : conditio.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"conditio.lsp\")"

defs3.fas : defs3.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"defs3.lsp\")"

gstream.fas : gstream.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"gstream.lsp\")"

foreign.fas : foreign.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"foreign.lsp\")"

screen.fas : screen.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"screen.lsp\")"

stdwin1.fas : stdwin1.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"stdwin1.lsp\")"

stdwin2.fas : stdwin2.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"stdwin2.lsp\")"

rexx.fas : rexx.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"rexx.lsp\")"

editor.fas : editor.lsp
	clisp -M cross.mem -q -x "(cross:compile-file \"editor.lsp\")"


lispbibl.h : lispbibl.c fsubr.c subr.c pseudofun.c constsym.c constobj.c atari.c
	(($(XCPP) $(XCFLAGS) -P lispbibl.c | grep -v "^ *$$") ; ($(XCPP) $(XCFLAGS) -P -dM lispbibl.c | sort) ) > lispbibl.h


manual : ANNOUNCE COPYRIGHT GNU-GPL SUMMARY NEWS README clisp.1 clisp.html impnotes.txt $(TXTFILES)

manualx : manual clisp.man

ANNOUNCE : ../ANNOUNCE
	-$(LN) ../ANNOUNCE ANNOUNCE

COPYRIGHT : ../COPYRIGHT
	-$(LN) ../COPYRIGHT COPYRIGHT

GNU-GPL : ../GNU-GPL
	-$(LN) ../GNU-GPL GNU-GPL

SUMMARY : ../SUMMARY
	-$(LN) ../SUMMARY SUMMARY

NEWS : ../src/NEWS
	-$(LN) ../src/NEWS NEWS

README : ../src/_README lispbibl.h txt2c 
	$(TXT2C) < ../src/_README > txt.c
	$(CC) $(CFLAGS) -O0 txt.c -o txt
	./txt > README
	$(RM) txt.c
	$(RM) txt

clisp.1 : ../src/_clisp.1 lispbibl.h txt2c 
	$(TXT2C) < ../src/_clisp.1 > txt.c
	$(CC) $(CFLAGS) -O0 txt.c -o txt
	./txt | grep -v '^ *$$' > clisp.1
	$(RM) txt.c
	$(RM) txt

clisp.html : ../src/_clisp.html lispbibl.h txt2c 
	$(TXT2C) < ../src/_clisp.html > txt.c
	$(CC) $(CFLAGS) -O0 txt.c -o txt
	./txt > clisp.html
	$(RM) txt.c
	$(RM) txt

impnotes.txt : ../src/_impnotes.txt lispbibl.h txt2c 
	$(TXT2C) < ../src/_impnotes.txt > txt.c
	$(CC) $(CFLAGS) -O0 txt.c -o txt
	./txt > impnotes.txt
	$(RM) txt.c
	$(RM) txt

clisp.man : clisp.1
	$(ROFF_MAN) clisp.1 > clisp.man

clisp.dvi : clisp.1
	$(ROFF_DVI) clisp.1 > clisp.dvi

LISP-tutorial.txt : ../doc/LISP-tutorial.txt
	-$(LN) ../doc/LISP-tutorial.txt LISP-tutorial.txt

CLOS-guide.txt : ../doc/CLOS-guide.txt
	-$(LN) ../doc/CLOS-guide.txt CLOS-guide.txt

cltl2.txt : ../doc/cltl2.txt
	-$(LN) ../doc/cltl2.txt cltl2.txt


# 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

# GNU tar together with GNU gzip. Excellent performance.
PACK = tar
PACKOPT = cvfhz
PACKEXT = .tar.z

# Popular Amiga packer. Good performance.
#PACK = lha
#PACKOPT = a
#PACKEXT = .lzh

# Popular DOS packer.
#PACK = zip
#PACKOPT = -r
#PACKEXT = .zip

# Popular Atari packer.
#PACK = zoo
#PACKOPT = -add
#PACKEXT = .zoo

# The distribution's top directory
TOPDIR=clisp-1995-01-01

distrib : force all lisp.a manualx distmakefile libnoreadline.a libreadline.a clisp-link modules.d modules.c module.cc clisp.h modules.h makevars
	$(RM) /tmp/clisp$(PACKEXT)
	mkdir $(TOPDIR)
	ln ANNOUNCE COPYRIGHT GNU-GPL SUMMARY NEWS README $(TOPDIR)
	ln distmakefile $(TOPDIR)/Makefile
	mkdir $(TOPDIR)/base
	ln lisp.a libnoreadline.a libreadline.a modules.h makevars $(TOPDIR)/base
	ln compiled.mem $(TOPDIR)/base/lispinit.mem
	mkdir $(TOPDIR)/doc
	ln clisp.1 clisp.man clisp.html impnotes.txt $(TXTFILES) $(TOPDIR)/doc
	mkdir $(TOPDIR)/src
	ln $(LSPFILES) $(FASFILES) $(TOPDIR)/src
	mkdir $(TOPDIR)/linkkit
	ln clisp-link modules.d modules.c module.cc clisp.h $(TOPDIR)/linkkit
	chmod -R a+rX $(TOPDIR)
	$(PACK) $(PACKOPT) /tmp/clisp$(PACKEXT) $(TOPDIR)
	$(RM) -rf $(TOPDIR)


# clean0 is harmless: removes only superfluous things: temporary files.
clean0 : force
	-$(RM) core ansidecl.c genclisph clisp1.h clisp2.h clisp3.h txt.c txt

# clean1 removes everything that becomes obsolete once lisp.prg is recompiled
# without changing the bytecode format and the tables in
# constobj.d, constpack.d, constsym.d, subr.d, fsubr.d, pseudofun.d.
clean1 : clean0
	-$(RM) lispbibl.h clisp.h *.i *.s *.o *.a lisp.prg stage/* suite/*
	-rmdir stage
	-rmdir suite
	-$(RM) README clisp.1 clisp.html impnotes.txt $(TXTFILES) clreadline.3 readline.dvi

# clean2 removes everything that becomes obsolete once lisp.prg is recompiled
# without changing the bytecode format.
clean2 : clean1
	-$(RM) interpreted.mem halfcompiled.mem compiled.mem compiled2.mem

# clean3 removes everything that becomes obsolete once lisp.prg is recompiled.
# It leaves everything generated by "make allc".
clean3 : clean2
	-$(RM) $(FASFILES) *.lib

# clean4 removes everything that becomes obsolete
# when switching to a new version of the C compiler.
# It leaves everything generated by "make init".
clean4 : clean3
	-$(RM) $(CFILES)

# clean5 even undoes "make init".
clean5 : clean4
	-$(RM) $(DFILES) modules.h $(LSPFILES) COPYRIGHT
	-$(RM) comment5 ansidecl ccpaux deelif deerror dedefined traddecl deema mergestrings txt2c

# clean6 lets us go back to "makemake > makefile".
clean6 : clean5
	-$(RM) makefile

# clean7 lets us go back to the main "configure".
clean7 : clean6
	-$(RM) config.status config.log config.cache machine.h unixconf.h makemake
	-$(RM) readline.tar.Z

# clean8 moreover cleans up the SRCDIR.
clean8 : clean7
	-$(RM) ../src/lisparit0.d

# The normal "start over" command:
mostlyclean : clean4

# Clear all files that are built by "make ...":
clean : clean5

# Make "clear for distribution":
distclean : clean7

# Remove everything that can be generated otherwise:
realclean : clean8


force:

