summaryrefslogtreecommitdiffstats
path: root/lib/libstand/Makefile
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2001-09-18 13:01:12 +0000
committersobomax <sobomax@FreeBSD.org>2001-09-18 13:01:12 +0000
commitf261311bf8a95a68eddd17de69be6a0d0320326e (patch)
tree76acf0e35441ab9a8a740fc6881d0952b04fcc94 /lib/libstand/Makefile
parent62ef09324a4fe4b7bcba6695b290d2daced18a7c (diff)
downloadFreeBSD-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/Makefile11
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
OpenPOWER on IntegriCloud