Remove building with NOCRYPTO option
[minix.git] / usr.sbin / installboot / Makefile
blobc1308193b712d26f2d1fd4e5d60d2c3c5df0438e
1 # $NetBSD: Makefile,v 1.50 2015/06/06 15:45:47 joerg 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 .if !defined(__MINIX)
12 ARCH_XLAT= amd64-i386.c news68k-news.c newsmips-news.c
13 ARCH_XLAT+= sun2-sun68k.c sun3-sun68k.c
14 .else
15 ARCH_XLAT= amd64-i386.c
16 .endif # !defined(__MINIX)
18 .if !defined(SMALLPROG) && !defined(ARCH_FILES)
19 .if !defined(__MINIX)
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
23 .else
24 ARCH_FILES= i386.c
25 .endif # !defined(__MINIX)
26 .else
27 ARCH_FILES?= ${ARCH_XLAT:M${MACHINE}-*:S/${MACHINE}-//}
28 .if empty(ARCH_FILES)
29 ARCH_FILES= ${MACHINE}.c
30 .endif
31 .endif
33 SRCS+=${ARCH_FILES}
35 .if !defined(__MINIX)
36 .if empty(ARCH_FILES:C/(macppc|news|sparc|sun68k|x68k)/stg2/:Mstg2.c)
37 CPPFLAGS += -DNO_STAGE2
38 .else
39 SRCS+= bbinfo.c
41 # fstypes are only needed for 'stage2' and then only from bbinfo.
42 SRCS+= ffs.c
43 .if SMALLPROG
44 CPPFLAGS+= -DNO_FFS_SWAP
45 .else
46 SRCS+= ffs_bswap.c
47 .endif
48 #SRCS+= ext2fs.c ext2fs_bswap.c
49 .endif
51 UFSSRC= ${NETBSDSRCDIR}/sys/ufs
52 CPPFLAGS+= -I${.CURDIR} -I.
53 .PATH: ${.CURDIR}/arch ${UFSSRC}/ffs ${UFSSRC}/ext2fs
54 .else
55 CPPFLAGS += -DNO_STAGE2
56 SRCS+= minixfs3.c
57 .PATH: ${.CURDIR}/arch
58 CPPFLAGS+= -I${.CURDIR} -I.
59 .endif # !defined(__MINIX)
61 .if !defined(HOSTPROGNAME)
62 .for f in i386 macppc
63 COPTS.${f}.c+= -Wno-pointer-sign
64 .endfor
66 LDADD+= -lutil
67 DPADD+= ${LIBUTIL}
68 .endif
70 .include <bsd.prog.mk>