Home | History | Annotate | Line # | Download | only in boot
Makefile revision 1.27.4.1
      1  1.27.4.1   bouyer #	$NetBSD: Makefile,v 1.27.4.1 2017/04/21 16:53:38 bouyer Exp $
      2       1.8    lukem 
      3       1.8    lukem NOMAN=		# defined
      4       1.2  minoura 
      5       1.2  minoura .include <bsd.own.mk>
      6       1.1  minoura 
      7       1.5  minoura BOOT=		Multi-boot
      8      1.27    isaki VERSIONFILE=	${.CURDIR}/../boot/version
      9      1.15      apb VERSION!=	${TOOL_AWK} -F: '$$1 ~ /^[0-9.]*$$/ { it = $$1; } \
     10      1.15      apb 			END { print it }' ${VERSIONFILE}
     11       1.5  minoura NEWVERSWHAT=	"${BOOT}"
     12       1.1  minoura 
     13       1.1  minoura # text address
     14       1.1  minoura TEXT=		006000
     15       1.1  minoura 
     16      1.27    isaki # RTC offset for netboot (XXX hardcoded for JST-9)
     17      1.27    isaki RTC_OFFSET=	-540
     18      1.27    isaki 
     19      1.27    isaki PROG?=		boot
     20       1.1  minoura BINDIR=		/usr/mdec
     21       1.1  minoura BINMODE=	444
     22       1.1  minoura STRIPFLAG=
     23       1.1  minoura 
     24       1.1  minoura BFDNAME=	a.out-m68k-netbsd
     25       1.1  minoura 
     26      1.24    isaki SRCS=		srt0.S boot.c conf.c switch.c exec_image.S
     27      1.27    isaki SRCS+=		if_ne.c ne.c dp8390.c
     28       1.1  minoura S=		${.CURDIR}/../../../..
     29      1.17      abs M=		${.CURDIR}/../..
     30       1.1  minoura COMMONDIR=	$M/stand/common
     31       1.1  minoura .PATH:		${COMMONDIR}
     32      1.27    isaki .PATH:		${.CURDIR}/../boot
     33       1.1  minoura 
     34  1.27.4.1   bouyer .include "${S}/conf/newvers_stand.mk"
     35       1.5  minoura 
     36       1.1  minoura CPPFLAGS+=	-nostdinc -I$S -I${.OBJDIR} -I$M/stand/libsa
     37       1.1  minoura CPPFLAGS+=	-I$M/stand/libiocs -I${COMMONDIR}
     38       1.5  minoura CPPFLAGS+=	-D_STANDALONE -DHEAP_VARIABLE
     39       1.1  minoura CPPFLAGS+=	-DTEXTADDR="0x${TEXT}" 
     40       1.1  minoura CPPFLAGS+=	-DBOOT=\"${BOOT}\" -DBOOT_VERS=\"${VERSION}\"
     41      1.21  tsutsui CPPFLAGS+=	-DLIBSA_ENABLE_LS_OP
     42      1.27    isaki CPPFLAGS+=	-DRTC_OFFSET=${RTC_OFFSET}
     43      1.27    isaki CPPFLAGS+=	-DSUPPORT_BOOTP -DSUPPORT_DHCP
     44      1.23  tsutsui #CPPFLAGS+=	-DDEBUG
     45       1.1  minoura CFLAGS=		-Wno-main -Os -m68020-60
     46      1.27    isaki LINKFLAGS=	-N -static -T ${.CURDIR}/../boot/boot.ldscript
     47       1.6       tv LIBIOCS!=	cd $M/stand/libiocs && ${PRINTOBJDIR}
     48       1.6       tv LIBSA!=		cd $M/stand/libsa && ${PRINTOBJDIR}
     49      1.20  tsutsui L=		${LIBSA}/lib
     50      1.20  tsutsui LDLIBS= 	${L}/sa/libsa.a ${L}/kern/libkern.a ${L}/z/libz.a
     51      1.20  tsutsui LDLIBS+=	${LIBIOCS}/libiocs.a
     52       1.1  minoura 
     53       1.9    isaki .include "../Makefile.booters"
     54       1.1  minoura 
     55      1.16  tsutsui realall: ${PROG}
     56      1.20  tsutsui ${PROG}:	${OBJS} ${LDLIBS}
     57      1.13    lukem 	${_MKTARGET_LINK}
     58      1.12    lukem 	${LD} ${LINKFLAGS} -o ${PROG}.sym ${OBJS} ${LDLIBS}
     59       1.5  minoura 	${STRIP} -F ${BFDNAME} -o ${PROG} ${PROG}.sym
     60       1.1  minoura 
     61       1.5  minoura CLEANFILES+=	${PROG}.sym
     62       1.1  minoura 
     63       1.1  minoura .include <bsd.prog.mk>
     64