Home | History | Annotate | Line # | Download | only in installboot
Makefile revision 1.37.8.1
      1  1.37.8.1   matt #	Makefile,v 1.37 2006/09/01 21:47:21 uwe Exp
      2       1.1  lukem #
      3      1.14  bjh21 
      4      1.14  bjh21 .include <bsd.own.mk>
      5       1.1  lukem 
      6       1.1  lukem PROG=	installboot
      7       1.1  lukem MAN=	installboot.8
      8      1.34    dsl SRCS=	installboot.c sum.c machines.c fstypes.c
      9      1.34    dsl 
     10      1.34    dsl 
     11      1.34    dsl ARCH_XLAT= amd64-i386.c news68k-news.c newsmips-news.c
     12      1.34    dsl ARCH_XLAT+= sun2-sun68k.c sun3-sun68k.c
     13      1.34    dsl 
     14      1.34    dsl .if !defined(SMALLPROG) && !defined(ARCH_FILES)
     15      1.34    dsl ARCH_FILES=  alpha.c amiga.c ews4800mips.c hp300.c hp700.c i386.c
     16      1.37    uwe ARCH_FILES+= landisk.c macppc.c news.c next68k.c pmax.c
     17      1.34    dsl ARCH_FILES+= sparc.c sparc64.c sun68k.c vax.c x68k.c
     18      1.34    dsl .else
     19      1.34    dsl ARCH_FILES?= ${ARCH_XLAT:M${MACHINE}-*:S/${MACHINE}-//}
     20      1.34    dsl .if empty(ARCH_FILES)
     21      1.34    dsl ARCH_FILES= ${MACHINE}.c
     22      1.34    dsl .endif
     23      1.34    dsl .endif
     24      1.34    dsl 
     25      1.34    dsl SRCS+=${ARCH_FILES}
     26      1.34    dsl 
     27      1.34    dsl .if empty(ARCH_FILES:C/(macppc|news|sparc|sun68k|x68k)/stg2/:Mstg2.c)
     28      1.34    dsl CPPFLAGS	+= -DNO_STAGE2
     29      1.34    dsl .else
     30      1.34    dsl SRCS+= bbinfo.c
     31      1.34    dsl 
     32      1.34    dsl # fstypes are only needed for 'stage2' and then only from bbinfo.
     33      1.34    dsl SRCS+= ffs.c
     34      1.34    dsl .if SMALLPROG
     35      1.34    dsl CPPFLAGS+=	-DNO_FFS_SWAP
     36      1.34    dsl .else
     37      1.34    dsl SRCS+= ffs_bswap.c
     38      1.34    dsl .endif
     39  1.37.8.1   matt #SRCS+= ext2fs.c ext2fs_bswap.c
     40      1.34    dsl .endif
     41       1.1  lukem 
     42       1.1  lukem WARNS?=	3
     43       1.4  lukem 
     44      1.17  lukem UFSSRC=		${NETBSDSRCDIR}/sys/ufs
     45      1.12  lukem CPPFLAGS+=	-I${.CURDIR} -I.
     46  1.37.8.1   matt .PATH:		${.CURDIR}/arch ${UFSSRC}/ffs ${UFSSRC}/ext2fs
     47       1.1  lukem 
     48      1.36    mrg .if !defined(HOSTPROGNAME)
     49      1.35    mrg .if ${HAVE_GCC} == 4
     50      1.35    mrg .for f in i386 macppc
     51      1.35    mrg COPTS.${f}.c+=  -Wno-pointer-sign
     52      1.35    mrg .endfor
     53      1.35    mrg .endif
     54      1.36    mrg .endif
     55      1.35    mrg 
     56       1.1  lukem .include <bsd.prog.mk>
     57