]> CyberLeo.Net >> Repos - FreeBSD/releng/9.0.git/blob - sys/boot/pc98/btx/btx/Makefile
Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
[FreeBSD/releng/9.0.git] / sys / boot / pc98 / 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
16 .if ${CC:T:Mclang} == "clang"
17 # XXX: clang integrated-as doesn't grok .codeNN directives yet
18 CFLAGS+=${.IMPSRC:T:Mbtx.S:C/^.+$/-no-integrated-as/}
19 .endif
20
21 .if defined(BTX_SERIAL)
22 BOOT_COMCONSOLE_PORT?= 0x238
23 BOOT_COMCONSOLE_SPEED?= 9600
24 B2SIOFMT?=      0x3
25
26 CFLAGS+=-DBTX_SERIAL -DSIOPRT=${BOOT_COMCONSOLE_PORT} \
27         -DSIOFMT=${B2SIOFMT} -DSIOSPD=${BOOT_COMCONSOLE_SPEED}
28 .endif
29
30 ORG=    0x9000
31
32 LDFLAGS=-e start -Ttext ${ORG} -Wl,-N,-S,--oformat,binary
33
34 .include <bsd.prog.mk>