CPP = /lib/cpp

# or uncomment this to use gcc's preprocessor
# CPP = gcc -E -

PARTS = root_obj.cl sys_obj.cl located_obj.cl described_obj.cl \
	thing.cl container.cl room.cl exit.cl player.cl builder.cl \
	programmer.cl wizard.cl

all: west.db east.db
west.db: $(PARTS) west.cl
	cat $? | $(CPP) | ./cm west -i -f -
west.tmp: $(PARTS) west.cl
	cat $? | $(CPP) > west.tmp
east.db: $(PARTS) east.cl
	cat $? | $(CPP) | ./cm east -i -f -
boot.tmp: $(PARTS)
	cat $(PARTS) | $(CPP) > boot.tmp
rm:
	rm -f *.db *.dir *.pag *.log