Use <bsd.klinks.mk>

DBG=-Os (instead of blank)
This commit is contained in:
matt 2013-08-21 05:59:14 +00:00
parent 36f3d5215f
commit b26bfb6329

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.10 2013/08/15 21:41:08 matt Exp $
# $NetBSD: Makefile,v 1.11 2013/08/21 05:59:14 matt Exp $
S= ${.CURDIR}/../../../..
@ -7,6 +7,7 @@ SRCS= entry.S main.c devopen.c netif.c dev_net.c dm9000.c dev_sdmmc.c
SRCS+= s3csdi.c vers.c
.include <bsd.own.mk>
.include <bsd.klinks.mk>
CLEANFILES+= vers.c ${PROG}.elf
CFLAGS+= -Wall -Wno-main -ffreestanding -fno-unwind-tables
@ -17,7 +18,7 @@ CPPFLAGS+= -nostdinc -I. -I${.OBJDIR} -I${S} -I${S}/arch
CPPFLAGS+= -march=armv4 -mabi=apcs-gnu -mfloat-abi=soft
CPPFLAGS+= -mno-thumb -mno-thumb-interwork
CPUFLAGS=
DBG=
DBG= -Os
LIBCRT0= # nothing
LIBCRTBEGIN= # nothing
@ -32,14 +33,6 @@ BINMODE= 444
RELOC= 0x30A00000
ENTRY= _start
.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN:
@[ -h machine ] || ln -s ${S}/arch/evbarm/include machine
@[ -h arm ] || ln -s ${S}/arch/arm/include arm
.NOPATH: machine arm
.endif
CLEANFILES+= machine arm
### find out what to use for libkern
KERN_AS= library
.include "${S}/lib/libkern/Makefile.inc"