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