# DMakefile for UnZip 5.1+ with Amiga DICE compiler         11 September 1992
#
# Edit directories as required.
#
# v4.1 by Georg Sassen, D-5100 Aachen, +49-241-875158
#   georg@bluemoon.tunix.sub.org  or  georg@bluemoon.GUN.de
#   georg@cip-s01.informatik.rwth-aachen.de
#   2:242/7.11@fido
#
# v5.0 by Stefan Becker (with DICE 2.06.40)  [what version of AmigaDOS?]
#   stefanb@pool.informatik.rwth-aachen.de   [really need filedate.c?]
#

EXE = unzip
OD  = T:
SRC1 = unzip.c crypt.c envargs.c explode.c extract.c file_io.c inflate.c
SRC2 = mapname.c match.c misc.c unreduce.c unshrink.c filedate.c
SRCS = $(SRC1) $(SRC2)
CFLAGS = -mD
OBJS = $(SRCS:"*.c":"$(OD)*.o") $(SRCS:"*.a":"$(OD)*.o")

all : $(EXE)

$(EXE) : $(OBJS)
    dcc $(CFLAGS) -o %(left) %(right)

$(OBJS) : $(SRCS) unzip.h
    dcc $(CFLAGS) -c -o %(left) %(right)

$(OD)crypt.o : zip.h crypt.h

$(OD)extract.o $(OD)file_io.o $(OD)unzip.o : crypt.h

clean:
    rm -v $(OBJS)
