CC=gcc

DEFS=-DVSTAFAT -DASMV -DHAVE_UNISTD_H=1 -DDIRENT=1 -DNO_UTIME=1
CFLAGS=-O $(DEFS)

OBJS=gzip.o zip.o deflate.o trees.o bits.o unzip.o inflate.o util.o \
	crypt.o	lzw.o unlzw.o unpack.o unlzh.o getopt.o _match.o

all: gzip

_match.o: match.s
	cpp match.s _match.s
	$(CC) -c _match.s

gzip: $(OBJS)
	$(CC) -o gzip $(OBJS)

clean:
	rm -f $(OBJS) _match.s

clobber: clean
	rm -f gzip
