2013-12-06 12:04:52 +01:00
|
|
|
# $NetBSD: Makefile,v 1.47 2012/08/10 12:10:28 joerg Exp $
|
2012-01-10 09:46:52 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2012-01-10 10:45:46 +01:00
|
|
|
PROG= installboot_nbsd
|
|
|
|
MAN= installboot_nbsd.8
|
|
|
|
SRCS= installboot.c sum.c machines.c fstypes.c install_master.c
|
2012-01-10 09:46:52 +01:00
|
|
|
|
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
.if !defined(__MINIX)
|
|
|
|
ARCH_XLAT= amd64-i386.c news68k-news.c newsmips-news.c
|
|
|
|
ARCH_XLAT+= sun2-sun68k.c sun3-sun68k.c
|
|
|
|
.else
|
2012-01-10 10:45:46 +01:00
|
|
|
ARCH_XLAT= amd64-i386.c
|
2013-12-06 12:04:52 +01:00
|
|
|
.endif # !defined(__MINIX)
|
2012-01-10 09:46:52 +01:00
|
|
|
|
|
|
|
.if !defined(SMALLPROG) && !defined(ARCH_FILES)
|
2013-12-06 12:04:52 +01:00
|
|
|
.if !defined(__MINIX)
|
|
|
|
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
|
2012-01-10 10:45:46 +01:00
|
|
|
ARCH_FILES= i386.c
|
2013-12-06 12:04:52 +01:00
|
|
|
.endif # !defined(__MINIX)
|
2012-01-10 09:46:52 +01:00
|
|
|
.else
|
|
|
|
ARCH_FILES?= ${ARCH_XLAT:M${MACHINE}-*:S/${MACHINE}-//}
|
|
|
|
.if empty(ARCH_FILES)
|
|
|
|
ARCH_FILES= ${MACHINE}.c
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
SRCS+=${ARCH_FILES}
|
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
.if !defined(__MINIX)
|
|
|
|
.if empty(ARCH_FILES:C/(macppc|news|sparc|sun68k|x68k)/stg2/:Mstg2.c)
|
2012-01-10 09:46:52 +01:00
|
|
|
CPPFLAGS += -DNO_STAGE2
|
2013-12-06 12:04:52 +01:00
|
|
|
.else
|
|
|
|
SRCS+= bbinfo.c
|
2012-01-10 09:46:52 +01:00
|
|
|
|
|
|
|
# fstypes are only needed for 'stage2' and then only from bbinfo.
|
2013-12-06 12:04:52 +01:00
|
|
|
SRCS+= ffs.c
|
|
|
|
.if SMALLPROG
|
|
|
|
CPPFLAGS+= -DNO_FFS_SWAP
|
|
|
|
.else
|
|
|
|
SRCS+= ffs_bswap.c
|
|
|
|
.endif
|
2012-01-10 09:46:52 +01:00
|
|
|
#SRCS+= ext2fs.c ext2fs_bswap.c
|
2013-12-06 12:04:52 +01:00
|
|
|
.endif
|
2012-01-10 10:45:46 +01:00
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
UFSSRC= ${NETBSDSRCDIR}/sys/ufs
|
|
|
|
CPPFLAGS+= -I${.CURDIR} -I.
|
|
|
|
.PATH: ${.CURDIR}/arch ${UFSSRC}/ffs ${UFSSRC}/ext2fs
|
|
|
|
.else
|
|
|
|
CPPFLAGS += -DNO_STAGE2
|
2012-01-10 10:45:46 +01:00
|
|
|
SRCS+= minixfs3.c
|
|
|
|
.PATH: ${.CURDIR}/arch
|
2012-01-10 09:46:52 +01:00
|
|
|
CPPFLAGS+= -I${.CURDIR} -I.
|
2013-12-06 12:04:52 +01:00
|
|
|
.endif # !defined(__MINIX)
|
2012-01-10 09:46:52 +01:00
|
|
|
|
|
|
|
.if !defined(HOSTPROGNAME)
|
|
|
|
.for f in i386 macppc
|
|
|
|
COPTS.${f}.c+= -Wno-pointer-sign
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|