Merge from vendor branch TNFTP:
[dragonfly.git] / lib / libz / Makefile.stand
1 # $DragonFly: src/lib/libz/Makefile.stand,v 1.4 2005/07/21 16:07:41 joerg Exp $
2
3 # decompression functionality from libz for libstand
4
5 # relative to lib/libstand
6 ZLIBDIR= ${.CURDIR}/../../contrib/zlib-1.2
7 .PATH: ${ZLIBDIR}
8
9 CFLAGS+=-DHAVE_MEMCPY -I${ZLIBDIR}
10 SRCS+=  adler32.c crc32.c deflate.c infback.c inffast.c inflate.c \
11         inftrees.c zutil.c
12
13 ZLIB_PATCHES!= echo ${.CURDIR}/../libz/patches/*.patch
14 .for patch in ${ZLIB_PATCHES}
15 .for file in ${patch:R:T}
16 CLEANFILES+=    ${file}
17 ${file}: ${ZLIBDIR}/${file} ${patch}
18         patch -o ${.TARGET} -i ${patch} ${ZLIBDIR}/${file}
19 .endfor
20 .endfor