1 # $FreeBSD: src/sys/boot/i386/btx/btx/Makefile,v 1.13 2002/09/17 01:48:54 peter Exp $
3 .if defined
(BOOT_BTX_NOHANG
)
9 CFLAGS
+= -DBTX_FLAGS
=${BOOT_BTX_FLAGS}
11 .if defined
(BTX_SERIAL
)
12 BOOT_COMCONSOLE_PORT?
= 0x3f8
13 BOOT_COMCONSOLE_SPEED?
= 9600
16 CFLAGS
+= -DBTX_SERIAL
-DSIOPRT
=${BOOT_COMCONSOLE_PORT} \
17 -DSIOFMT
=${B2SIOFMT} -DSIOSPD
=${BOOT_COMCONSOLE_SPEED}
23 ${LD} ${LDFLAGS
:N-Wl
,*} -N
-e start \
24 --script
${.CURDIR
}/btx.ldscript
-o btx.out btx.o
25 objcopy
-S
-O binary btx.out
${.TARGET
}
28 ${CC} ${CFLAGS} ${.IMPSRC
} -o
${.TARGET
} -c
30 CLEANFILES
+= btx btx.out btx.o
32 .
include <bsd.prog.mk
>