Deleted Added
full compact
Makefile (225736) Makefile (232930)
1# $FreeBSD: stable/9/sys/boot/i386/btx/btx/Makefile 218893 2011-02-20 19:33:47Z dim $
1# $FreeBSD: stable/9/sys/boot/i386/btx/btx/Makefile 232930 2012-03-13 18:39:57Z dim $
2
3PROG= btx
4INTERNALPROG=
5NO_MAN=
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}
15
2
3PROG= btx
4INTERNALPROG=
5NO_MAN=
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}
15
16.if ${CC:T:Mclang} == "clang"
17# XXX: clang integrated-as doesn't grok .codeNN directives yet
18CFLAGS+=${.IMPSRC:T:Mbtx.S:C/^.+$/-no-integrated-as/}
19.endif
20
21.if defined(BTX_SERIAL)
22BOOT_COMCONSOLE_PORT?= 0x3f8
23BOOT_COMCONSOLE_SPEED?= 9600
24B2SIOFMT?= 0x3
25
26CFLAGS+=-DBTX_SERIAL -DSIOPRT=${BOOT_COMCONSOLE_PORT} \
27 -DSIOFMT=${B2SIOFMT} -DSIOSPD=${BOOT_COMCONSOLE_SPEED}
28.endif
29
30ORG= 0x9000
31
32LDFLAGS=-e start -Ttext ${ORG} -Wl,-N,-S,--oformat,binary
33
34.include <bsd.prog.mk>
16.if defined(BTX_SERIAL)
17BOOT_COMCONSOLE_PORT?= 0x3f8
18BOOT_COMCONSOLE_SPEED?= 9600
19B2SIOFMT?= 0x3
20
21CFLAGS+=-DBTX_SERIAL -DSIOPRT=${BOOT_COMCONSOLE_PORT} \
22 -DSIOFMT=${B2SIOFMT} -DSIOSPD=${BOOT_COMCONSOLE_SPEED}
23.endif
24
25ORG= 0x9000
26
27LDFLAGS=-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
32CFLAGS.btx.S= ${CLANG_NO_IAS}
33CFLAGS+= ${CFLAGS.${.IMPSRC:T}}