dummy:
	@echo 'Convert is a program that helps in updating schemes when'
	@echo 'it is decided that it must contain more data items.'
	@echo 'First edit the files listed in db.h to contain the new'
	@echo 'scheme items. Then make convert as follows:'
	@echo 'Type "make first", edit the readsch.copy.c to remove the'
	@echo 'scheme items not present in the new scheme format.'
	@echo 'Then do "make all".'
	@echo 'Run /tmp/convert on each relation.'

CFLAGS=-g -I${SATSRC}/Schedit -I${SATSRC}/=Include -I${VPATH}


CONVERTOBJ=convert.o writesch.o readsch.copy.o

all: convert
	cp convert /tmp

convert: $(CONVERTOBJ)
	$(CC) $(CFLAGS) $(CONVERTOBJ) $(SATLIB) -o convert

writesch.o: ../../Schedit/writesch.c
	$(CC) -c $(CFLAGS) ../../Schedit/writesch.c

readsch.copy.o: readsch.copy.c
	$(CC) -c $(CFLAGS) readsch.copy.c


first:
	cp ../../Schedit/readsch.c readsch.copy.c

clean:
	/bin/rm -f *.o convert /tmp/convert
