use -ffreestanding

This commit is contained in:
matt 2003-10-24 06:48:53 +00:00
parent 5ec655da0e
commit 113d5c2523
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.booters,v 1.2 2002/05/31 13:46:00 bjh21 Exp $
# $NetBSD: Makefile.booters,v 1.3 2003/10/24 06:48:53 matt Exp $
S?= ${.CURDIR}/../../../..
MDEC_DIR?= /usr/mdec
@ -17,7 +17,7 @@ NOLINT=# defined
INCPATH=-I${.OBJDIR} -I${.CURDIR} -I${.CURDIR}/../libsa -I${.CURDIR}/../libbug \
-I${.CURDIR}/../../include -I${S} -I${S}/lib/libsa
CFLAGS= -nostdinc -D_STANDALONE \
CFLAGS= -nostdinc -ffreestanding -D_STANDALONE \
-DLIBSA_USE_MEMSET -DLIBSA_USE_MEMCPY ${INCPATH} ${DEFS}
BINDIR= ${MDEC_DIR}

View File

@ -1,13 +1,13 @@
# $NetBSD: Makefile,v 1.2 2002/03/03 11:03:43 scw Exp $
# $NetBSD: Makefile,v 1.3 2003/10/24 06:48:53 matt Exp $
SRCS= boot.c conf.c devopen.c
PROG= boot.tmp
PROG= boot.elf
LIBS= ${LIBSA}
DPADD= ${LIBS}
CLEANFILES+= boot.bin
boot.bin: ${PROG}
${OBJCOPY} -O binary ${.OBJDIR}/boot.tmp $@
${OBJCOPY} -O binary ${.OBJDIR}/boot.elf $@
.include "../Makefile.booters"