ALLLSP = package.lsp cmd-frame.lsp sketchpad.lsp sketch.lsp

ALLFAS = package.fas cmd-frame.fas sketchpad.fas sketch.fas


# Choose one of the packers:

# Standard Unix packer. Requires GNU tar.
PACK = tar
PACKOPT = cvfhz
PACKEXT = .tar.Z

# The one with the best 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


# defaults 
all : clio-examples
clio-examples : defsystem.fas $(ALLFAS) load-clio-examples

defsystem.fas defsystem.lib : defsystem.lsp
	clisp -q -c defsystem

$(ALLFAS) : stamp.fas

stamp.fas compile-clio-examples : $(ALLLSP) defsystem.fas
	clisp -M ../clio.mem -m 9MB -q -i defsystem -x '(load-clio-examples :compile-p t)'
	touch stamp.fas

load-clio-examples : defsystem.fas $(ALLFAS)
	clisp -M ../clio.mem -m 9MB -q -i defsystem -x '(load-clio-examples :compile-p nil) (clio-examples::sketch :host "")'

clean: force
	-rm -f *.fas *.lib

force:

