Use <bsd.klinks.mk>
This commit is contained in:
parent
cb6d5a3422
commit
30e34946aa
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.14 2006/04/03 09:08:03 uebayasi Exp $
|
||||
# $NetBSD: Makefile,v 1.15 2013/08/21 07:04:38 matt Exp $
|
||||
#
|
||||
# NOTE: This program is *not* standalone, but a userlevel program -- this
|
||||
# program was run from within boot-only, NetBSD-as-bootloader as a
|
||||
@ -18,14 +18,7 @@ CFLAGS+= -ffreestanding
|
||||
CPPFLAGS+= -I${.CURDIR}/../../../.. -I${.OBJDIR}
|
||||
LDSTATIC= -static
|
||||
|
||||
CLEANFILES+= machine
|
||||
|
||||
realdepend realall: machine
|
||||
|
||||
machine::
|
||||
-rm -f $@
|
||||
ln -s ${.CURDIR}/../../../../arch/${MACHINE}/include $@
|
||||
|
||||
${PROG}: ${OBJS} machine
|
||||
${PROG}: ${OBJS}
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
.include <bsd.klinks.mk>
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.16 2005/12/28 08:08:00 skrll Exp $
|
||||
# $NetBSD: Makefile,v 1.17 2013/08/21 06:58:58 matt Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
|
||||
@ -12,19 +12,9 @@ CPPFLAGS+= -I${LIBSA} -I. -D__daddr_t=int32_t
|
||||
# Need this to work in the miniroot
|
||||
LDSTATIC= -static
|
||||
|
||||
.if !make(obj) && !make(clean) && !make(cleandir)
|
||||
.BEGIN: machine
|
||||
.NOPATH: machine
|
||||
|
||||
machine::
|
||||
-rm -f $@
|
||||
ln -s ${.CURDIR}/../../include $@
|
||||
.endif
|
||||
|
||||
CLEANFILES+= machine
|
||||
|
||||
.PATH.c: ${LIBSA}
|
||||
|
||||
SRCS= installboot.c byteorder.c loadfile.c loadfile_aout.c loadfile_elf32.c
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
.include <bsd.klinks.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user