# buildfile for V-System XLISP 

#include ../../buildprefix

C68FLAGS= -O -v$(Xx)V

# First, define the world of 68000s
.SUFFIXES:
.SUFFIXES: .b .ls .s .c

# how to compile a 68000 file
.c.b:
	cc68 $(C68FLAGS) -c $*.c 

# how to make an assembly file (Not deleting it or assembling it)
.c.s:
	cc68 $(C68FLAGS) -S $*.c

# how to make an assembly listing
.c.ls:
	cc68 $(C68FLAGS) -c -L $*.c

#END of the world of 68000's

SRC1=	xlobj.c xllist.c xlcont.c xlbfun.c
SRC2=	xldmem.c xleval.c xlfio.c xlftab.c xlglob.c xlio.c xlisp.c xljump.c \
	xlmath.c xlprin.c xlread.c xlinit.c
SRC3=	xlsetf.c xlstr.c xlsubr.c xlsym.c xlsys.c xlbind.c xldbug.c xlVsys.c
SRCS=	$(SRC1) $(SRC2) $(SRC3) xlisp.h

OBJS=	xlbfun.b xlbind.b xlcont.b xldbug.b xldmem.b xleval.b xlfio.b \
	xlftab.b xlglob.b xlinit.b xlio.b xlisp.b xljump.b xllist.b xlmath.b \
	xlobj.b xlprin.b xlread.b xlsetf.b xlstr.b xlsubr.b xlsym.b xlsys.b \
	xlVsys.b
MISC=	Makefile fact.lsp init.lsp object.lsp prolog.lsp trace.lsp \
	xlstub.c.NOTUSED 

CFLAGS=	-O

xlisp: $(OBJS)
	cc68 $(C68FLAGS) -r -o xlisp $(OBJS)

$(OBJS): xlisp.h

lint:
	lint -ach $(SRCS)

clean:
	rm -f *.b xlisp

install:
	$(NETINSTALL) -p "xlisp init.lsp" /usr/sun/$(Xx)Vboot
