diff options
author | delphij <delphij@FreeBSD.org> | 2012-06-21 21:47:08 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2012-06-21 21:47:08 +0000 |
commit | f1aa6057552263943bc055b803d1254994d5f139 (patch) | |
tree | 77406785fe7cd37081c5a9cabb2dc128be5b4716 /sys/boot/userboot/libstand | |
parent | 47822f6690f1e74d6e808a2d97e6ed1ce4ad5089 (diff) | |
parent | 5ecec51ae55e160069af12ac1c8fb3c4612e498d (diff) | |
download | FreeBSD-src-f1aa6057552263943bc055b803d1254994d5f139.zip FreeBSD-src-f1aa6057552263943bc055b803d1254994d5f139.tar.gz |
MFV: Update zlib to 1.2.7.
(x86 assembler optimization disabled for now because it
requires the new .cfi_* directives that is not supported
by base system binutils).
MFC after: 1 week
Diffstat (limited to 'sys/boot/userboot/libstand')
-rw-r--r-- | sys/boot/userboot/libstand/Makefile | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/sys/boot/userboot/libstand/Makefile b/sys/boot/userboot/libstand/Makefile index 7bb4638..fa54b01 100644 --- a/sys/boot/userboot/libstand/Makefile +++ b/sys/boot/userboot/libstand/Makefile @@ -42,7 +42,7 @@ CFLAGS+= -msoft-float -D_STANDALONE .endif # standalone components and stuff we have modified locally -SRCS+= zutil.h __main.c assert.c bcd.c bswap.c environment.c getopt.c gets.c \ +SRCS+= gzguts.h zutil.h __main.c assert.c bcd.c bswap.c environment.c getopt.c gets.c \ globals.c pager.c printf.c strdup.c strerror.c strtol.c random.c \ sbrk.c twiddle.c zalloc.c zalloc_malloc.c @@ -125,23 +125,28 @@ libstand_bzlib_private.h: bzlib_private.h # decompression functionality from libz .PATH: ${.CURDIR}/../../../../lib/libz CFLAGS+=-DHAVE_MEMCPY -I${.CURDIR}/../../../../lib/libz -SRCS+= adler32.c crc32.c libstand_zutil.h +SRCS+= adler32.c crc32.c libstand_zutil.h libstand_gzguts.h .for file in infback.c inffast.c inflate.c inftrees.c zutil.c SRCS+= _${file} CLEANFILES+= _${file} _${file}: ${file} - sed "s|zutil\.h|libstand_zutil.h|" ${.ALLSRC} > ${.TARGET} + sed -e "s|zutil\.h|libstand_zutil.h|" \ + -e "s|gzguts\.h|libstand_gzguts.h|" ${.ALLSRC} > ${.TARGET} .endfor # depend on stand.h being able to be included multiple times -CLEANFILES+= libstand_zutil.h -libstand_zutil.h: zutil.h - sed -e 's|<stddef.h>|"stand.h"|' \ +.for file in zutil.h gzguts.h +CLEANFILES+= libstand_${file} +libstand_${file}: ${file} + sed -e 's|<fcntl.h>|"stand.h"|' \ + -e 's|<stddef.h>|"stand.h"|' \ -e 's|<string.h>|"stand.h"|' \ + -e 's|<stdio.h>|"stand.h"|' \ -e 's|<stdlib.h>|"stand.h"|' \ ${.ALLSRC} > ${.TARGET} +.endfor # io routines SRCS+= closeall.c dev.c ioctl.c nullfs.c stat.c \ |