1 # Special makefile for the as86/ld86 tools
3 # This is used only to make the dos tools. It is not used in the normal
4 # build process, except one of the *.S files is changed. The ready to
5 # use tools are included as uuencoded files.
6 # To use this makefile you must have Bruce Evans bcc package installed
8 # $FreeBSD: src/usr.bin/doscmd/Makefile.dos,v 1.1.6.1 2002/04/25 11:04:50 tg Exp $
9 # $DragonFly: src/usr.bin/doscmd/Makefile.dos,v 1.2 2003/06/17 04:29:25 dillon Exp $
14 OBJS = redir.o emsdriv.o
15 DOSPROG = redir.com emsdriv.sys
16 DOSDIST = redir.com.uu emsdriv.sys.uu
18 all: ${DOSPROG} ${DOSDIST}
21 $(LD86) -T 0 -s -o ${.PREFIX}.tmp ${.ALLSRC}
22 dd if=${.PREFIX}.tmp of=${.TARGET} bs=1 skip=288
25 emsdriv.sys: emsdriv.o
26 $(LD86) -T 0 -s -o ${.PREFIX}.tmp ${.ALLSRC}
27 dd if=${.PREFIX}.tmp of=${.TARGET} bs=1 skip=32
30 redir.com.uu: redir.com
31 uuencode redir.com redir.com > redir.com.uu
33 emsdriv.sys.uu: emsdriv.sys
34 uuencode emsdriv.sys emsdriv.sys > emsdriv.sys.uu
37 rm -f ${DOSPROG} ${OBJS}
40 rm -f ${DOSPROG} ${DOSDIST} ${OBJS}
45 $(AS86) -0 -o ${.TARGET} ${.IMPSRC}