#
# Generate .c files corresponding to .clu files for compiler
#

# assumes that CLUHOME environment variable is set

# you will want to use "make new" when changing architectures
#	or on initial installation

PCLU = $(CLUHOME)/exe/pclu

all:	clufiles
	(cd ../code/cmpasm ; make)
	(cd ../code/cmp ; make)

clufiles:
	$(PCLU) \#xf cmp.xfile \#opt time \#ccopt 0 \#co *.clu 
	

test:

lib:
	/bin/rm -f ./cmp.lib ; \
	$(PCLU) \#xf cmp.xfile \#spec *.spc \#spec *.clu \#spec *.clu \
		\#dump cmp.lib

clean:
	/bin/rm -f cmp.lib *.c
