Makefile revision 276486
1# $FreeBSD: stable/10/sys/boot/pc98/btx/btx/Makefile 276486 2014-12-31 23:25:37Z ngie $
2
3PROG=	btx
4INTERNALPROG=
5MAN=
6SRCS=	btx.S
7
8.if defined(BOOT_BTX_NOHANG)
9BOOT_BTX_FLAGS=0x1
10.else
11BOOT_BTX_FLAGS=0x0
12.endif
13
14CFLAGS+=-DBTX_FLAGS=${BOOT_BTX_FLAGS}
15CFLAGS+=-I${.CURDIR}/../../../i386/common
16
17.if defined(BTX_SERIAL)
18BOOT_COMCONSOLE_PORT?= 0x238
19BOOT_COMCONSOLE_SPEED?= 9600
20B2SIOFMT?=	0x3
21
22CFLAGS+=-DBTX_SERIAL -DSIOPRT=${BOOT_COMCONSOLE_PORT} \
23	-DSIOFMT=${B2SIOFMT} -DSIOSPD=${BOOT_COMCONSOLE_SPEED}
24.endif
25
26ORG=	0x9000
27
28LDFLAGS=-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
33CFLAGS.btx.S=		${CLANG_NO_IAS}
34CFLAGS+=		${CFLAGS.${.IMPSRC:T}}
35