CC = gcc
DEBUG = -g
CFLAGS = -O "-Duchar=unsigned char" $(DEBUG)

solaris/zipdebug: ZIP.o systemlib.o
	$(CC) $(DEBUG) -o $@ ZIP.o systemlib.o -lp2c -ltermcap -lucb

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 
