diff options
author | sobomax <sobomax@FreeBSD.org> | 2001-09-18 13:01:12 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2001-09-18 13:01:12 +0000 |
commit | f261311bf8a95a68eddd17de69be6a0d0320326e (patch) | |
tree | 76acf0e35441ab9a8a740fc6881d0952b04fcc94 /lib/libstand/Makefile | |
parent | 62ef09324a4fe4b7bcba6695b290d2daced18a7c (diff) | |
download | FreeBSD-src-f261311bf8a95a68eddd17de69be6a0d0320326e.zip FreeBSD-src-f261311bf8a95a68eddd17de69be6a0d0320326e.tar.gz |
Add support for loading bzip2-compressed filesystems. Among other things
this would allow to load bzip2-compressed kernels/modules from the loader(8)
(support for that will be committer separately).
MFC after: 1 month
Diffstat (limited to 'lib/libstand/Makefile')
-rw-r--r-- | lib/libstand/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/libstand/Makefile b/lib/libstand/Makefile index 989b83c..39d8421 100644 --- a/lib/libstand/Makefile +++ b/lib/libstand/Makefile @@ -114,6 +114,15 @@ SRCS+= _setjmp.S # really only required for i386 CFLAGS+=-I${.CURDIR}/../libc/${MACHINE_ARCH} +# decompression functionality from libbz2 +.PATH: ${.CURDIR}/../../contrib/bzip2 +CFLAGS+=-I${.CURDIR}/../../contrib/bzip2 -DBZ_NO_STDIO -DBZ_NO_COMPRESS +SRCS+= _bzlib.c crctable.c decompress.c huffman.c randtable.c +CLEANFILES+= _bzlib.c _bzlib.c.orig + +_bzlib.c: bzlib.c bzlib.c.diff + patch -s -b .orig -o ${.TARGET} < ${.ALLSRC:M*.diff} ${.ALLSRC:M*.c} + # decompression functionality from libz .PATH: ${.CURDIR}/../libz CFLAGS+=-DHAVE_MEMCPY @@ -131,7 +140,7 @@ SRCS+= arp.c ether.c inet_ntoa.c in_cksum.c net.c udp.c netif.c rpc.c SRCS+= bootp.c rarp.c bootparam.c # boot filesystems -SRCS+= ufs.c nfs.c cd9660.c tftp.c zipfs.c +SRCS+= ufs.c nfs.c cd9660.c tftp.c zipfs.c bzipfs.c SRCS+= netif.c nfs.c SRCS+= dosfs.c ext2fs.c |