Skip to content

Commit

Permalink
Add header file dependencies to contrib/minizip/Makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
madler committed Aug 1, 2024
1 parent be24a8f commit 4cacc35
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions contrib/minizip/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,21 @@ ZIP_OBJS = minizip.o zip.o ioapi.o ../../libz.a

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)

minizip: $(ZIP_OBJS)
minizip: $(ZIP_OBJS)
$(CC) $(CFLAGS) -o $@ $(ZIP_OBJS)

test: miniunz minizip
test: miniunz minizip
@rm -f test.*
@echo hello hello hello > test.txt
./minizip test test.txt
Expand Down

0 comments on commit 4cacc35

Please sign in to comment.