minix/usr.sbin/installboot/Makefile
Evgeniy Ivanov fa6c4a2580 Port installboot as installboot_nbsd and rename the old one.
Also following functionality was added:
- Add install_master to the installboot from NetBSD.
- Check if enough space for bootxx.

Old installboot was renamed to installboot_minix.
2012-02-09 18:54:24 +01:00

60 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.46 2011/08/14 17:50:16 christos Exp $
#
.include <bsd.own.mk>
PROG= installboot_nbsd
MAN= installboot_nbsd.8
SRCS= installboot.c sum.c machines.c fstypes.c install_master.c
ARCH_XLAT= amd64-i386.c
#ARCH_XLAT= amd64-i386.c news68k-news.c newsmips-news.c
#ARCH_XLAT+= sun2-sun68k.c sun3-sun68k.c
.if !defined(SMALLPROG) && !defined(ARCH_FILES)
ARCH_FILES= i386.c
#ARCH_FILES= alpha.c amiga.c emips.c ews4800mips.c hp300.c hp700.c i386.c
#ARCH_FILES+= landisk.c macppc.c news.c next68k.c pmax.c
#ARCH_FILES+= sparc.c sparc64.c sun68k.c vax.c x68k.c
.else
ARCH_FILES?= ${ARCH_XLAT:M${MACHINE}-*:S/${MACHINE}-//}
.if empty(ARCH_FILES)
ARCH_FILES= ${MACHINE}.c
.endif
.endif
SRCS+=${ARCH_FILES}
CPPFLAGS += -DNO_STAGE2
#.if empty(ARCH_FILES:C/(macppc|news|sparc|sun68k|x68k)/stg2/:Mstg2.c)
#CPPFLAGS += -DNO_STAGE2
#.else
#SRCS+= bbinfo.c
# fstypes are only needed for 'stage2' and then only from bbinfo.
#SRCS+= ffs.c
#.if SMALLPROG
#CPPFLAGS+= -DNO_FFS_SWAP
#.else
#SRCS+= ffs_bswap.c
#.endif
#SRCS+= ext2fs.c ext2fs_bswap.c
#.endif
SRCS+= minixfs3.c
#UFSSRC= ${NETBSDSRCDIR}/sys/ufs
#.PATH: ${.CURDIR}/arch ${UFSSRC}/ffs ${UFSSRC}/ext2fs
.PATH: ${.CURDIR}/arch
CPPFLAGS+= -I${.CURDIR} -I.
.if !defined(HOSTPROGNAME)
.if defined(HAVE_GCC) || defined(HAVE_PCC)
.for f in i386 macppc
COPTS.${f}.c+= -Wno-pointer-sign
.endfor
.endif
.endif
.include <bsd.prog.mk>