a6b691a8dd
o remove all of compat except for pwcache and strstuftoll; these might end up in libutil or similar so keep them in the subdir o mv getid.c up to the top level; this looks like something that'll be makefs-specific o eliminate private versions of .h files in sys; use system files instead o eliminate private ffs_tables.c; use the system version directly (might want to adopt const'ification at some point but that's the only diff I can see) o mv remaining code from sys to ffs and strip out unused bits; this now becomes part of makefs o add compat defs and shims to makefs.h o strip all vestiges of nbtool_config.h, compat_defs.h, etc. o fixup includes after file shuffling o rename system #defines that do implicit byte swapping to have an _swap suffix; e.g. DIRSIZ -> DIRSIZ_SWAP, cg_inosused -> cg_inosused_swap; if we ever add endian-agnostic support to the kernel these can go back to their original names o strip some netbsd'isms that aren't worth shim'ing (e.g. _DIAGASSERT) Code compiles w/o complaints but is untested.
27 lines
438 B
Makefile
27 lines
438 B
Makefile
# $FreeBSD$
|
|
|
|
PROG= makefs
|
|
MAN= makefs.8
|
|
|
|
WARNS?= 2
|
|
|
|
CFLAGS+=-I.
|
|
SRCS= ffs.c getid.c makefs.c walk.c
|
|
|
|
.PATH: ${.CURDIR}/ffs
|
|
CFLAGS+=-Iffs
|
|
SRCS+= buf.c ffs_alloc.c ffs_balloc.c ffs_bswap.c ffs_subr.c mkfs.c ufs_bmap.c
|
|
|
|
.PATH: ${.CURDIR}/compat
|
|
CFLAGS+=-Icompat
|
|
SRCS+= pwcache.c strsuftoll.c
|
|
|
|
.PATH: ${.CURDIR}/../mtree
|
|
CFLAGS+=-I../mtree
|
|
SRCS+= misc.c spec.c
|
|
|
|
.PATH: ${.CURDIR}/../../sys/ufs/ffs
|
|
SRCS+= ffs_tables.c
|
|
|
|
.include <bsd.prog.mk>
|