Remove PC98 and Alpha support.
[dragonfly.git] / sys / boot / pc98 / btx / btx / Makefile
1 # $FreeBSD: src/sys/boot/pc98/btx/btx/Makefile,v 1.7 2002/09/17 01:48:56 peter Exp $
2 # $DragonFly: src/sys/boot/pc98/btx/btx/Attic/Makefile,v 1.3 2003/11/10 06:08:38 dillon Exp $
3
4 M4?=    m4
5
6 .if defined(PAGING)
7 M4FLAGS+=       -DPAGING
8 .endif
9
10 .if defined(BOOT_BTX_NOHANG)
11 BOOT_BTX_FLAGS=0x1
12 .else
13 BOOT_BTX_FLAGS=0x0
14 .endif
15
16 AFLAGS+=        --defsym BTX_FLAGS=${BOOT_BTX_FLAGS}
17 AFLAGS+=        --defsym PC98=1
18
19 .if defined(BTX_SERIAL)
20 BOOT_COMCONSOLE_PORT?= 0x238
21 BOOT_COMCONSOLE_SPEED?= 9600
22 B2SIOFMT?=      0x3
23
24 M4FLAGS+=       -DBTX_SERIAL -DSIOPRT=${BOOT_COMCONSOLE_PORT} \
25                 -DSIOFMT=${B2SIOFMT} -DSIOSPD=${BOOT_COMCONSOLE_SPEED}
26 .endif
27
28 ORG=    0x9000
29
30 all: btx
31
32 btx: btx.o
33         ${LD} -N -e start -Ttext ${ORG} -o btx.out btx.o
34         objcopy -S -O binary btx.out ${.TARGET}
35
36 btx.o: btx.s
37         (cd ${.CURDIR}; ${M4} ${M4FLAGS} btx.s) | \
38            ${AS} ${AFLAGS} -o ${.TARGET}
39
40 CLEANFILES+= btx btx.out btx.o
41
42 .include <bsd.prog.mk>