- WARNSfy

- make sure machine and ${MACHINE_ARCH} symlinks are always created
- add incpath to AFLAGS too for build without DESTDIR
This commit is contained in:
tsutsui 2009-01-12 07:47:47 +00:00
parent b4d6984248
commit e46a73d2df
1 changed files with 11 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.21 2008/10/19 22:05:21 apb Exp $
# $NetBSD: Makefile,v 1.22 2009/01/12 07:47:47 tsutsui Exp $
NOMAN= # defined
@ -28,6 +28,8 @@ DEFS+= -D_STANDALONE -DMC68040 -DSUPPORT_BOOTP -DSUPPORT_DHCP -DDEBUG -DSD_DEB
SAMISCCPPFLAGS= -DSUPPORT_DHCP -DSUPPORT_BOOTP -DINSECURE # -DBOOTP_DEBUG -DETHER_DEBUG -DNET_DEBUG # -DNETIF_DEBUG -DNFS_DEBUG -DARP_DEBUG
WARNS=1
CFLAGS+= -ffreestanding -nostdinc ${INCLUDES} ${DEFS}
CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
AFLAGS+= ${INCLUDES}
# XXX SHOULD NOT NEED TO DEFINE THESE!
LIBCRT0=
LIBC=
@ -88,10 +90,15 @@ vers.c: version
# utilities
.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN:
rm -f machine
.NOPATH: machine ${MACHINE_ARCH}
.BEGIN: machine ${MACHINE_ARCH}
machine:
-rm -f machine
ln -s ${S}/arch/${MACHINE}/include machine
rm -f ${MACHINE_ARCH}
${MACHINE_ARCH}:
-rm -f ${MACHINE_ARCH}
ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH}
.endif