#
# 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

RM=rm -f

PCLU = $(CLUHOME)/exe/pclu

all:	lib
	$(PCLU) \#xf cmp.xfile \#opt time \#ccopt 0 \#co *.clu ; \
	# cd ../cmp ; make ; cd ../../cmpclu

lib:
	$(RM) ./cmp.lib ; \
	$(PCLU) \#xf cmp.xfile \#spec *.spc \#spec *.clu \#spec *.clu \
		\#dump cmp.lib

clean:
	$(RM) cmp.lib *.c
