Add header file dependencies to contrib/minizip/Makefile.

This commit is contained in:
Mark Adler 2024-07-29 15:29:22 -07:00
parent be24a8f4ca
commit 4cacc3562b
1 changed files with 11 additions and 3 deletions

View File

@ -9,13 +9,21 @@ ZIP_OBJS = minizip.o zip.o ioapi.o ../../libz.a
all: miniunz minizip all: miniunz minizip
miniunz: $(UNZ_OBJS) miniunz.o: miniunz.c unzip.h iowin32.h
minizip.o: minizip.c zip.h iowin32.h ints.h
unzip.o: unzip.c unzip.h crypt.h
zip.o: zip.c zip.h crypt.h skipset.h ints.h
ioapi.o: ioapi.c ioapi.h ints.h
iowin32.o: iowin32.c iowin32.h ioapi.h
mztools.o: mztools.c unzip.h
miniunz: $(UNZ_OBJS)
$(CC) $(CFLAGS) -o $@ $(UNZ_OBJS) $(CC) $(CFLAGS) -o $@ $(UNZ_OBJS)
minizip: $(ZIP_OBJS) minizip: $(ZIP_OBJS)
$(CC) $(CFLAGS) -o $@ $(ZIP_OBJS) $(CC) $(CFLAGS) -o $@ $(ZIP_OBJS)
test: miniunz minizip test: miniunz minizip
@rm -f test.* @rm -f test.*
@echo hello hello hello > test.txt @echo hello hello hello > test.txt
./minizip test test.txt ./minizip test test.txt