pax: workaround for mkstemp() and long filenames
[minix.git] / usr.sbin / installboot / Makefile
blob231c1e78975814abaa9d93fea4af216021160430
1 # $NetBSD: Makefile,v 1.46 2011/08/14 17:50:16 christos Exp $
4 .include <bsd.own.mk>
6 PROG= installboot_nbsd
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)
16 ARCH_FILES= i386.c
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
20 .else
21 ARCH_FILES?= ${ARCH_XLAT:M${MACHINE}-*:S/${MACHINE}-//}
22 .if empty(ARCH_FILES)
23 ARCH_FILES= ${MACHINE}.c
24 .endif
25 .endif
27 SRCS+=${ARCH_FILES}
29 CPPFLAGS += -DNO_STAGE2
30 #.if empty(ARCH_FILES:C/(macppc|news|sparc|sun68k|x68k)/stg2/:Mstg2.c)
31 #CPPFLAGS += -DNO_STAGE2
32 #.else
33 #SRCS+= bbinfo.c
35 # fstypes are only needed for 'stage2' and then only from bbinfo.
36 #SRCS+= ffs.c
37 #.if SMALLPROG
38 #CPPFLAGS+= -DNO_FFS_SWAP
39 #.else
40 #SRCS+= ffs_bswap.c
41 #.endif
42 #SRCS+= ext2fs.c ext2fs_bswap.c
43 #.endif
45 SRCS+= minixfs3.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)
54 .for f in i386 macppc
55 COPTS.${f}.c+= -Wno-pointer-sign
56 .endfor
57 .endif
58 .endif
60 .include <bsd.prog.mk>