2000-01-27 21:21:01 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2004-04-28 21:31:21 +00:00
|
|
|
PROG= cdboot
|
|
|
|
STRIP=
|
|
|
|
BINMODE=${NOBINMODE}
|
2014-04-13 05:21:56 +00:00
|
|
|
MAN=
|
2012-05-10 09:47:04 +00:00
|
|
|
SRCS= ${PROG}.S
|
|
|
|
|
|
|
|
CFLAGS+=-I${.CURDIR}/../common
|
2000-01-27 21:21:01 +00:00
|
|
|
|
2004-02-06 21:58:32 +00:00
|
|
|
ORG= 0x7c00
|
2000-01-27 21:21:01 +00:00
|
|
|
|
2010-06-03 17:42:32 +00:00
|
|
|
LDFLAGS=-e start -Ttext ${ORG} -Wl,-N,-S,--oformat,binary
|
2000-01-27 21:21:01 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|
2012-05-11 18:07:23 +00:00
|
|
|
|
|
|
|
# XXX: clang integrated-as doesn't grok .codeNN directives yet
|
|
|
|
CFLAGS.cdboot.S= ${CLANG_NO_IAS}
|
|
|
|
CFLAGS+= ${CFLAGS.${.IMPSRC:T}}
|