Use <bsd.klinks.mk>
This commit is contained in:
parent
5b04be1f80
commit
77ab2cf35d
@ -1,4 +1,6 @@
|
||||
# $NetBSD: Makefile.inc,v 1.15 2013/07/18 12:15:16 joerg Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.16 2013/08/21 06:15:41 matt Exp $
|
||||
|
||||
.include <bsd.klinks.mk>
|
||||
|
||||
RELOC=0x3f0000
|
||||
.PATH: ${.CURDIR}/../../vax ${.CURDIR}/../common
|
||||
@ -9,6 +11,7 @@ CPPFLAGS+=-I${.CURDIR}/../../
|
||||
CPPFLAGS+=-I${.CURDIR}/../common
|
||||
CPPFLAGS+=-I${.CURDIR}/../../include
|
||||
CPPFLAGS+=-DRELOC=${RELOC}
|
||||
CPPFLAGS+=-D_STANDALONE
|
||||
|
||||
WARNS?= 1
|
||||
CFLAGS+=-ffreestanding -fno-pic -fno-unwind-tables
|
||||
@ -18,13 +21,3 @@ MKMAN=no
|
||||
|
||||
LIBCRTBEGIN=
|
||||
LIBCRTEND=
|
||||
|
||||
.if ${MACHINE} == "vax"
|
||||
.PHONY: machine-links
|
||||
beforedepend: machine-links
|
||||
machine-links:
|
||||
@rm -f machine && ln -s ${S}/arch/${MACHINE}/include machine
|
||||
@rm -f ${MACHINE_ARCH} && ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH}
|
||||
.NOPATH: machine ${MACHINE_ARCH}
|
||||
CLEANFILES+= machine ${MACHINE_ARCH}
|
||||
.endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.40 2012/05/14 10:05:50 abs Exp $
|
||||
# $NetBSD: Makefile,v 1.41 2013/08/21 06:15:41 matt Exp $
|
||||
|
||||
S= ${.CURDIR}/../../../..
|
||||
|
||||
@ -36,7 +36,7 @@ vers.c: ${.CURDIR}/version
|
||||
${HOST_SH} ${S}/conf/newvers_stand.sh -N ${${MKREPRO} == "yes" :?:-D} \
|
||||
${.CURDIR}/version "${MACHINE}"
|
||||
|
||||
${PROG}: machine-links ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
|
||||
${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
|
||||
${_MKTARGET_LINK}
|
||||
${LD} -N -Ttext ${RELOC} -e nisse -o ${PROG}.sym ${OBJS} \
|
||||
${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN}
|
||||
|
Loading…
Reference in New Issue
Block a user