
LISP=../unixport/saved_kcl

LOAD='(load "sysdef.lsp")(make::make :bcomp :compile t)'

all:
	echo ${LOAD} | ${LISP}


tests:
	echo ${LOAD}'(load "try1")(load "../tests/all-tests.lsp")(in-package "BCOMP")(do-some-tests)' \
	'(test-sloop)' | ${LISP}


test1:
	echo '(load "../tests/try-comp")' | ${LISP}


TFILES=src/makefile comp/makefile unixport/makefile o/makefile \
	h/enum.h src/kclobjs src/sobjs src/NewInit src/make-init

tar:
	(cd .. ; tar cvf - ${TFILES} src/sobjs src/*.c src/*.el newh/*.el src/makefile comp/*.lsp comp/*.doc newh/*.h newh/makefile  | gzip -c > ${HOME}/`date '+acl-%y%m%d'`.tar.z)

all-tests:
	make
	- make tests test1
	- (cd /u11/wfs/nqthm1 ; rm *.o ; make "LISP=nacl")
	- (cd /u11/wfs/gabriel ; make "LISP=nacl")

tests2:
	make
	- make tests test1
	- (cd /u11/wfs/nqthm1 ; rm *.o ; make "LISP=nacl")


# begin makedefs
GCLDIR=/LocalPrograms/GNU/gcl-2.2
SHELL=/bin/sh
MACHINE=NeXT32-i386
#could not find tk.tcl so using:
TK_LIBRARY=unknown
#could not find init.tcl so using:
TCL_LIBRARY=unknown
#could not find X11/Xlib.h so using:
X11_INCLUDE_DIR=unknown
#could not find tk.h so using:
TK_INCLUDE_DIR=unknown
#could not find libtk.* so using:
TK_LIBS_DIR=unknown
#could not find libtcl.* so using:
TCL_LIBS_DIR=unknown
#could not find libX11.* so using:
X11_LIBS_DIR=unknown
#could not find *.el* so using:
EMACS_SITE_LISP=unknown
#could not find dir so using:
INFO_DIR=unknown
TK_INCLUDE=-I${TK_INCLUDE_DIR}
X11_INCLUDE=-I${X11_INCLUDE_DIR}
TCL_LIBS=-L${TCL_LIBS_DIR} -ltcl
TK_LIBS=-L${TK_LIBS_DIR} -ltk
X11_LIBS=-L${X11_LIBS_DIR} -lX11
#
# NeXTSTEP 3.2, 3.3 for Intel
#

LBINDIR=/usr/local/bin

OFLAG=	-O4
LIBS=	-lsys_s -lm 
LIBC= 
ODIR_DEBUG=  

# NeXT's cc does not compile gcl correctly.
# However gcc-2.6.3 is OK.
CC=	xgcc -DVOL=volatile -I$(GCLDIR)/o -L/LocalPrograms/GNU/gcc-2.7.1 -fwritable-strings

# The option -seglinkedit is specified so that rld_load() can be used.
LDCC=	ld -X -seglinkedit -segprot __TEXT rwx rwx /lib/crt0.o

# bcmp(), bcopy(), and bzero() are already included in the NeXT C library.
LIBFILES=

CFLAGS	= -c $(DEFS)  -I../h

MAIN    = ../o/main.o

INITFORM=(setq compiler::*cc* "cc -DVOL=volatile -fwritable-strings")

MPFILES=$(MPDIR)/mpi-386d.o $(MPDIR)/libmport.a

# Use symbolic links
SYMB=-s

# the  make to use for saved_kcp the profiler.
KCP=kcp-next

# set path = (. /LocalPrograms/GNU/gcc-2.7.1 /cat/Library/Terminal /bin /etc /usr/bin /usr/etc /usr/ucb /usr/lib /usr/local/bin /LocalApps /NextApps /NextAdmin /NextDeveloper/Apps /cat/Apps)# end makedefs
