1 # $FreeBSD: src/sys/boot/i386/pxeldr/Makefile,v 1.9 2003/09/03 08:12:20 phk Exp $
13 .if defined
(BOOT_PXELDR_PROBE_KEYBOARD
)
14 CFLAGS
+= -DPROBE_KEYBOARD
17 .if defined
(BOOT_PXELDR_ALWAYS_SERIAL
)
18 CFLAGS
+= -DALWAYS_SERIAL
22 .if exists
(${.OBJDIR
}/..
/loader
)
23 LOADERBIN?
= ${.OBJDIR
}/..
/loader
/loader.bin
25 LOADERBIN?
= ${.CURDIR
}/..
/loader
/loader.bin
29 .if exists
(${.OBJDIR
}/..
/btx
)
30 BTXDIR
= ${.OBJDIR
}/..
/btx
32 BTXDIR
= ${.CURDIR
}/..
/btx
34 BTXLDR
= ${BTXDIR}/btxldr
/btxldr
35 BTXKERN
= ${BTXDIR}/btx
/btx
36 BTXCRT
= ${BTXDIR}/lib
/crt0.o
38 ${BOOT}: ${LDR} ${LOADER}
39 cat
${LDR} ${LOADER} > ${.TARGET
}.tmp
40 dd if
=${.TARGET
}.tmp of
=${.TARGET
} obs
=2k conv
=osync
43 ${LOADER}: ${LOADERBIN} ${BTXLDR} ${BTXKERN} ${BTXCRT}
44 ${.OBJDIR
}/..
/btxld
/btxld.nx
-v
-f aout
-e
${LOADER_ADDRESS} \
45 -o
${.TARGET
} -l
${BTXLDR} -b
${BTXKERN} ${LOADERBIN}
48 ${LD} ${LDFLAGS
:N-Wl
,*} -N
-e start
-Ttext
${ORG} -o
${LDR}.out
${LDR}.o
49 objcopy
-S
-O binary
${LDR}.out
${.TARGET
}
52 ${CC} ${CFLAGS} ${.IMPSRC
} -o
${LDR}.o
-c
54 CLEANFILES
+= ${LDR} ${LDR}.out
${LDR}.o
${BOOT}.tmp
${LOADER}
56 .
include <bsd.prog.mk
>