1 # $NetBSD: Makefile,v 1.41 2009/04/05 12:04:04 lukem Exp $
8 SRCS
= installboot.c sum.c machines.c fstypes.c
11 ARCH_XLAT
= amd64-i386.c news68k-news.c newsmips-news.c
12 ARCH_XLAT
+= sun2-sun68k.c sun3-sun68k.c
14 .if
!defined
(SMALLPROG
) && !defined
(ARCH_FILES
)
15 ARCH_FILES
= alpha.c amiga.c ews4800mips.c hp300.c hp700.c i386.c
16 ARCH_FILES
+= landisk.c macppc.c news.c next68k.c pmax.c
17 ARCH_FILES
+= sparc.c sparc64.c sun68k.c vax.c x68k.c
19 ARCH_FILES?
= ${ARCH_XLAT
:M
${MACHINE}-*:S
/${MACHINE}-//}
21 ARCH_FILES
= ${MACHINE}.c
27 .if empty
(ARCH_FILES
:C
/(macppc|news|sparc|sun68k|x68k
)/stg2
/:Mstg2.c
)
28 CPPFLAGS
+= -DNO_STAGE2
32 # fstypes are only needed for 'stage2' and then only from bbinfo.
35 CPPFLAGS
+= -DNO_FFS_SWAP
39 #SRCS+= ext2fs.c ext2fs_bswap.c
42 UFSSRC
= ${NETBSDSRCDIR}/sys
/ufs
43 CPPFLAGS
+= -I
${.CURDIR
} -I.
44 .PATH
: ${.CURDIR
}/arch
${UFSSRC}/ffs
${UFSSRC}/ext2fs
46 .if
!defined
(HOSTPROGNAME
)
47 .if
(defined
(HAVE_GCC
) && ${HAVE_GCC} == 4) || defined
(HAVE_PCC
)
49 COPTS.
${f}.c
+= -Wno-pointer-sign
54 .
include <bsd.prog.mk
>