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
|
.SUFFIXES:
.SUFFIXES: .o .c .lsp .lisp .fn
-include ../makedefs
PORTDIR = ../unixport
CAT=cat
APPEND=../xbin/append
OBJS = gcl_cmpbind.o gcl_cmpblock.o gcl_cmpcall.o gcl_cmpcatch.o gcl_cmpenv.o gcl_cmpeval.o \
gcl_cmpflet.o gcl_cmpfun.o gcl_cmpif.o gcl_cmpinline.o gcl_cmplabel.o gcl_cmplam.o gcl_cmplet.o \
gcl_cmploc.o gcl_cmpmap.o gcl_cmpmulti.o gcl_cmpspecial.o gcl_cmptag.o gcl_cmptop.o \
gcl_cmptype.o gcl_cmputil.o gcl_cmpvar.o gcl_cmpvs.o gcl_cmpwt.o gcl_cmpmain.o #gcl_cmpopt.o gcl_lfun_list.o
FNS:= $(OBJS:.o=.fn)
LISP=$(PORTDIR)/saved_pre_gcl$(EXE)
COMPILE_FILE=$(LISP) $(PORTDIR) -system-p -c-file -data-file -h-file -compile
%.o: $(PORTDIR)/saved_pre_gcl$(EXE) %.lsp
$(COMPILE_FILE) $*
all: $(OBJS)
.lsp.fn: ../cmpnew/gcl_collectfn.o
../xbin/make-fn $*.lsp $(LISP)
fns1: $(FNS)
fns: ../cmpnew/gcl_collectfn.o
$(MAKE) fns1 -e "FNS=`echo ${OBJS} | sed -e 's:\.o:\.fn:g'`"
gcl_collectfn.o:
$(PORTDIR)/saved_pre_gcl$(EXE) $(PORTDIR)/ -compile $*.lsp
.lisp.o:
@ ../xbin/if-exists $(PORTDIR)/saved_pre_gcl$(EXE) \
"$(PORTDIR)/saved_pre_gcl$(EXE) $(PORTDIR)/ -compile $*.lisp "
sys-proclaim.lisp: fns
echo '(in-package "COMPILER")' \
'(load "../cmpnew/gcl_collectfn")(load "../lsp/sys-proclaim.lisp")'\
'(compiler::make-all-proclaims "*.fn")' | ../xbin/gcl
newfn:
$(MAKE) `echo $(OBJS) | sed -e 's:\.o:.fn:g'`
remake:
for v in `"ls" *.lsp.V | sed -e "s:\.lsp\.V::g"` ; \
do rm -f $$v.c $$v.h $$v.data $$v.lsp $$v.o ; \
ln -s $(MAINDIR)/cmpnew/$$v.c . ; ln -s $(MAINDIR)/cmpnew/$$v.h . ; \
ln -s $(MAINDIR)/cmpnew/$$v.data . ; \
done
rm -f ../unixport/$(FLISP)
(cd .. ; $(MAKE) sources)
(cd .. ; $(MAKE))
(cd .. ; $(MAKE))
clean:
rm -f *.o core a.out *.fn *.c *.data *.h
allclean:
rm -f *.h *.data *.c
|