minizip: use default variables/rules in Makefile

The minizip bare Makefile overrides CC/CFLAGS and the default
compile/link rules for no reason, which breaks users who want to pass
specific CFLAGS/LDFLAGS.

These can all be removed: the out-of-box build is unchaged but
overriding CFLAGS or LDFLAGS now works as expected.

Signed-off-by: Ross Burton <ross.burton@arm.com>
This commit is contained in:
Ross Burton 2022-07-18 17:02:37 +01:00
parent 21767c654d
commit 19b484c415
1 changed files with 1 additions and 7 deletions

View File

@ -1,19 +1,13 @@
CC=cc
CFLAGS := $(CFLAGS) -O -I../..
CPPFLAGS = -I../..
UNZ_OBJS = miniunz.o unzip.o ioapi.o ../../libz.a
ZIP_OBJS = minizip.o zip.o ioapi.o ../../libz.a
.c.o:
$(CC) -c $(CFLAGS) $*.c
all: miniunz minizip
miniunz: $(UNZ_OBJS)
$(CC) $(CFLAGS) -o $@ $(UNZ_OBJS)
minizip: $(ZIP_OBJS)
$(CC) $(CFLAGS) -o $@ $(ZIP_OBJS)
test: miniunz minizip
@rm -f test.*