]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sys/boot/i386/btx/btx/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / sys / boot / i386 / btx / btx / Makefile
1 # $FreeBSD$
2
3 PROG=   btx
4 INTERNALPROG=
5 NO_MAN=
6 SRCS=   btx.S
7
8 .if defined(BOOT_BTX_NOHANG)
9 BOOT_BTX_FLAGS=0x1
10 .else
11 BOOT_BTX_FLAGS=0x0
12 .endif
13
14 CFLAGS+=-DBTX_FLAGS=${BOOT_BTX_FLAGS}
15 CFLAGS+=-I${.CURDIR}/../../common
16
17 .if defined(BTX_SERIAL)
18 BOOT_COMCONSOLE_PORT?= 0x3f8
19 BOOT_COMCONSOLE_SPEED?= 9600
20 B2SIOFMT?=      0x3
21
22 CFLAGS+=-DBTX_SERIAL -DSIOPRT=${BOOT_COMCONSOLE_PORT} \
23         -DSIOFMT=${B2SIOFMT} -DSIOSPD=${BOOT_COMCONSOLE_SPEED}
24 .endif
25
26 ORG=    0x9000
27
28 LDFLAGS=-e start -Ttext ${ORG} -Wl,-N,-S,--oformat,binary
29
30 .include <bsd.prog.mk>
31
32 # XXX: clang integrated-as doesn't grok .codeNN directives yet
33 CFLAGS.btx.S=           ${CLANG_NO_IAS}
34 CFLAGS+=                ${CFLAGS.${.IMPSRC:T}}