NetBSD/sys/rump/fs/Makefile.rumpfs
pooka c360a79960 * split userspace file system access into two separate libraries:
+ libp2k: the interface between libpuffs and vfs/vop
  + libukfs: generic user kernel file system library, usable
	     independent of libp2k and/or puffs
* use file system name (MOUNT_XYZ) instead of vfsops pointer to
  mount file system
2007-08-14 15:56:15 +00:00

31 lines
837 B
Makefile

# $NetBSD: Makefile.rumpfs,v 1.7 2007/08/14 15:56:15 pooka Exp $
#
.include <bsd.own.mk>
RUMPFSLIST= cd9660fs efs ext2fs ffs hfs lfs msdosfs ntfs tmpfs udf
RUMPFSALL= ${RUMPFSLIST} p2k ukfs ufs
RUMPFSLIBDIR?= ${NETBSDSRCDIR}/sys/rump/fs/lib
.for var in ${RUMPFSALL}
RUMPFSLIBS+=lib${var}
.endfor
# this is a hack: PRINTOBJDIR is really expensive, so do it only when necessary
.ifndef RUMPFS_NOFSLIB
RUMPFS_WANT+=${PROG} p2k ukfs
.endif
.for var in ${RUMPFS_WANT}
.ifndef RUMPFSLIB${var:tu}OBJDIR
RUMPFSLIB${var:tu}OBJDIR != cd ${RUMPFSLIBDIR}/lib${var} && ${PRINTOBJDIR}
RUMPFSLD_${var:tu}:=-L${RUMPFSLIB${var:tu}OBJDIR} -Wl,--whole-archive \
-l${var} -Wl,--no-whole-archive
RUMPFSDP_${var:tu}:=${RUMPFSLIB${var:tu}OBJDIR}/lib${var}.a
RUMPFSLD_ALL+=${RUMPFSLD_${var:tu}}
RUMPFSDP_ALL+=${RUMPFSDP_${var:tu}}
.endif
.endfor