1 # $NetBSD: Makefile,v 1.46 2011/08/14 17:50:16 christos Exp $
7 MAN
= installboot_nbsd
.8
8 SRCS
= installboot.c sum.c machines.c fstypes.c install_master.c
11 ARCH_XLAT
= amd64-i386.c
12 #ARCH_XLAT= amd64-i386.c news68k-news.c newsmips-news.c
13 #ARCH_XLAT+= sun2-sun68k.c sun3-sun68k.c
15 .if
!defined
(SMALLPROG
) && !defined
(ARCH_FILES
)
17 #ARCH_FILES= alpha.c amiga.c emips.c ews4800mips.c hp300.c hp700.c i386.c
18 #ARCH_FILES+= landisk.c macppc.c news.c next68k.c pmax.c
19 #ARCH_FILES+= sparc.c sparc64.c sun68k.c vax.c x68k.c
21 ARCH_FILES?
= ${ARCH_XLAT
:M
${MACHINE}-*:S
/${MACHINE}-//}
23 ARCH_FILES
= ${MACHINE}.c
29 CPPFLAGS
+= -DNO_STAGE2
30 #.if empty(ARCH_FILES:C/(macppc|news|sparc|sun68k|x68k)/stg2/:Mstg2.c)
31 #CPPFLAGS += -DNO_STAGE2
35 # fstypes are only needed for 'stage2' and then only from bbinfo.
38 #CPPFLAGS+= -DNO_FFS_SWAP
42 #SRCS+= ext2fs.c ext2fs_bswap.c
47 #UFSSRC= ${NETBSDSRCDIR}/sys/ufs
48 #.PATH: ${.CURDIR}/arch ${UFSSRC}/ffs ${UFSSRC}/ext2fs
49 .PATH
: ${.CURDIR
}/arch
50 CPPFLAGS
+= -I
${.CURDIR
} -I.
52 .if
!defined
(HOSTPROGNAME
)
53 .if defined
(HAVE_GCC
) || defined
(HAVE_PCC
)
55 COPTS.
${f}.c
+= -Wno-pointer-sign
60 .
include <bsd.prog.mk
>