CC = cc
DEBUG = # -g
CFLAGS = -DNetBSD -Dunix -I. -O $(DEBUG)

netbsd/zipdebug: ZIP.o systemlib.o
	$(CC) $(DEBUG) -o $@ ZIP.o systemlib.o -Lnetbsd -lp2c -ltermcap
	strip $@

ZIP.c: ZIP.pas
	p2c -c unix/p2crc -q -M0 ZIP.pas

ZIP_Ext.c: ZIP_Ext.pas
	p2c -c unix/p2crc -q -M0 ZIP_Ext.pas

#ZIP_Ext.h: ZIP_Ext.c

ZIP.o: ZIP.c ZIP_Ext.c

systemlib.o: systemlib.c ZIP_Ext.c 
