Collapse makefile with parent to avoid duplication.
authorSimon 'corecode' Schubert <corecode@fs.ei.tum.de>
Sat, 3 Jan 2009 21:55:50 +0000 (22:55 +0100)
committerSimon Schubert <corecode@dragonflybsd.org>
Tue, 6 Jan 2009 02:57:15 +0000 (03:57 +0100)
sys/boot/pc32/pxeldr/Makefile
sys/boot/pc32/pxeldr_tftp/Makefile

index 83193c1..70965a8 100644 (file)
@@ -4,8 +4,8 @@
 ORG=           0x7c00
 
 LDR=           pxeldr
-BOOT         pxeboot
-LOADER=                loader
+BOOT?=         pxeboot
+LOADER?=       loader
 PROG=          ${BOOT}
 MAN=           ${BOOT}.8
 STRIP=
index 63f38fa..c9fe33c 100644 (file)
@@ -29,32 +29,4 @@ LOADERBIN=   ${.OBJDIR}/../${LOADER}/loader_tftp.bin
 LOADERBIN=     ${.CURDIR}/../${LOADER}/loader_tftp.bin
 .endif
 
-# BTX components
-.if exists(${.OBJDIR}/../btx)
-BTXDIR=                ${.OBJDIR}/../btx
-.else
-BTXDIR=                ${.CURDIR}/../btx
-.endif
-BTXLDR=                ${BTXDIR}/btxldr/btxldr
-BTXKERN=       ${BTXDIR}/btx/btx
-BTXCRT=                ${BTXDIR}/lib/crt0.o
-
-${BOOT}: ${LDR} ${LOADER}
-       cat ${LDR} ${LOADER} > ${.TARGET}.tmp
-       dd if=${.TARGET}.tmp of=${.TARGET} obs=2k conv=osync
-       rm ${.TARGET}.tmp
-
-${LOADER}: ${LOADERBIN} ${BTXLDR} ${BTXKERN} ${BTXCRT}
-       btxld -v -f aout -e ${LOADER_ADDRESS} -o ${.TARGET} -l ${BTXLDR} \
-           -b ${BTXKERN} ${LOADERBIN}
-
-${LDR}: ${LDR}.o
-       ${LD} -N -e start -Ttext ${ORG} -o ${LDR}.out ${LDR}.o
-       objcopy -S -O binary ${LDR}.out ${.TARGET}
-
-${LDR}.o: ${LDR}.S
-       ${CC} ${CFLAGS} ${AFLAGS} ${.IMPSRC} -o ${LDR}.o -c
-
-CLEANFILES+= ${LDR} ${LDR}.out ${LDR}.o ${BOOT}.tmp ${LOADER}
-
-.include <bsd.prog.mk>
+.include "${.CURDIR}/../pxeldr/Makefile"