Move binutils from /usr/libexec/gcc2/{aout,elf} to
[dragonfly.git] / sys / boot / pc32 / boot0 / Makefile
1 # $FreeBSD: src/sys/boot/i386/boot0/Makefile,v 1.17 2002/09/17 01:48:54 peter Exp $
2 # $DragonFly: src/sys/boot/pc32/boot0/Makefile,v 1.3 2003/11/10 06:08:34 dillon Exp $
3
4 PROG=           boot0
5 NOMAN=
6 STRIP=
7 BINDIR?=        /boot
8 BINMODE=        444
9
10 M4?=    m4
11
12 # The default set of flags compiled into boot0.  This enables update (writing
13 # the modified boot0 back to disk after running so that the selection made is
14 # saved), packet mode (detect and use the BIOS EDD extensions if we try to
15 # boot past the 1024 cylinder liimt), and booting from all valid slices.
16 BOOT_BOOT0_FLAGS?=      0xf
17
18 # The number of timer ticks to wait for a keypress before assuming the default
19 # selection.  Since there are 18.2 ticks per second, the default value of
20 # 0xb6 (182d) corresponds to 10 seconds.
21 BOOT_BOOT0_TICKS?=      0xb6
22
23 # The base address that we the boot0 code to to run it.  Don't change this
24 # unless you are glutton for punishment.
25 BOOT_BOOT0_ORG?=        0x600
26
27 boot0: boot0.o
28         ${LD} -N -e start -Ttext ${BOOT_BOOT0_ORG} -o boot0.out boot0.o
29         objcopy -S -O binary boot0.out ${.TARGET}
30
31 boot0.o: boot0.s
32         ${AS} ${AFLAGS} --defsym FLAGS=${BOOT_BOOT0_FLAGS} \
33                 --defsym TICKS=${BOOT_BOOT0_TICKS} ${.IMPSRC} -o ${.TARGET}
34
35 CLEANFILES+= boot0.out boot0.o
36
37 .include <bsd.prog.mk>