1 # $NetBSD: Makefile,v 1.50 2015/06/06 15:45:47 joerg Exp $
7 MAN
= installboot_nbsd
.8
8 SRCS
= installboot.c sum.c machines.c fstypes.c install_master.c
12 ARCH_XLAT
= amd64-i386.c news68k-news.c newsmips-news.c
13 ARCH_XLAT
+= sun2-sun68k.c sun3-sun68k.c
15 ARCH_XLAT
= amd64-i386.c
16 .
endif # !defined(__MINIX)
18 .if
!defined
(SMALLPROG
) && !defined
(ARCH_FILES
)
20 ARCH_FILES
= alpha.c amiga.c emips.c ews4800mips.c hp300.c hppa.c i386.c
21 ARCH_FILES
+= landisk.c macppc.c news.c next68k.c pmax.c
22 ARCH_FILES
+= sparc.c sparc64.c sun68k.c vax.c x68k.c
25 .
endif # !defined(__MINIX)
27 ARCH_FILES?
= ${ARCH_XLAT
:M
${MACHINE}-*:S
/${MACHINE}-//}
29 ARCH_FILES
= ${MACHINE}.c
36 .if empty
(ARCH_FILES
:C
/(macppc|news|sparc|sun68k|x68k
)/stg2
/:Mstg2.c
)
37 CPPFLAGS
+= -DNO_STAGE2
41 # fstypes are only needed for 'stage2' and then only from bbinfo.
44 CPPFLAGS
+= -DNO_FFS_SWAP
48 #SRCS+= ext2fs.c ext2fs_bswap.c
51 UFSSRC
= ${NETBSDSRCDIR}/sys
/ufs
52 CPPFLAGS
+= -I
${.CURDIR
} -I.
53 .PATH
: ${.CURDIR
}/arch
${UFSSRC}/ffs
${UFSSRC}/ext2fs
55 CPPFLAGS
+= -DNO_STAGE2
57 .PATH
: ${.CURDIR
}/arch
58 CPPFLAGS
+= -I
${.CURDIR
} -I.
59 .
endif # !defined(__MINIX)
61 .if
!defined
(HOSTPROGNAME
)
63 COPTS.
${f}.c
+= -Wno-pointer-sign
70 .
include <bsd.prog.mk
>