Fix up mix of man(7)/mdoc(7).
[netbsd-mini2440.git] / usr.sbin / installboot / Makefile
blobac8271e07135d459e23dcdb73aab9b706828647d
1 # $NetBSD: Makefile,v 1.41 2009/04/05 12:04:04 lukem Exp $
4 .include <bsd.own.mk>
6 PROG= installboot
7 MAN= installboot.8
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
18 .else
19 ARCH_FILES?= ${ARCH_XLAT:M${MACHINE}-*:S/${MACHINE}-//}
20 .if empty(ARCH_FILES)
21 ARCH_FILES= ${MACHINE}.c
22 .endif
23 .endif
25 SRCS+=${ARCH_FILES}
27 .if empty(ARCH_FILES:C/(macppc|news|sparc|sun68k|x68k)/stg2/:Mstg2.c)
28 CPPFLAGS += -DNO_STAGE2
29 .else
30 SRCS+= bbinfo.c
32 # fstypes are only needed for 'stage2' and then only from bbinfo.
33 SRCS+= ffs.c
34 .if SMALLPROG
35 CPPFLAGS+= -DNO_FFS_SWAP
36 .else
37 SRCS+= ffs_bswap.c
38 .endif
39 #SRCS+= ext2fs.c ext2fs_bswap.c
40 .endif
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)
48 .for f in i386 macppc
49 COPTS.${f}.c+= -Wno-pointer-sign
50 .endfor
51 .endif
52 .endif
54 .include <bsd.prog.mk>