packvfs
diff test/zipcat/Makefile @ 3:ef6c1472607f
jesus fucking christ that was easy... written a test prog "zipcat" to try out
zlib's contrib library "minizip", to list and read files out of zip archives
directly...
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 04 Nov 2013 06:46:17 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/zipcat/Makefile Mon Nov 04 06:46:17 2013 +0200 1.3 @@ -0,0 +1,13 @@ 1.4 +src = $(wildcard src/*.c) $(wildcard src/minizip/*.c) 1.5 +obj = $(src:.c=.o) 1.6 +bin = zipcat 1.7 + 1.8 +CFLAGS = -std=c99 -pedantic -Wall -g 1.9 +LDFLAGS = -lz 1.10 + 1.11 +$(bin): $(obj) 1.12 + $(CC) -o $@ $(obj) $(LDFLAGS) 1.13 + 1.14 +.PHONY: clean 1.15 +clean: 1.16 + rm -f $(obj) $(bin)