| 1 | # Special makefile for the as86/ld86 tools |
| 2 | # |
| 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 |
| 7 | # |
| 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 $ |
| 10 | |
| 11 | AS86 = as86 |
| 12 | LD86 = ld86 |
| 13 | |
| 14 | OBJS = redir.o emsdriv.o |
| 15 | DOSPROG = redir.com emsdriv.sys |
| 16 | DOSDIST = redir.com.uu emsdriv.sys.uu |
| 17 | |
| 18 | all: ${DOSPROG} ${DOSDIST} |
| 19 | |
| 20 | redir.com: redir.o |
| 21 | $(LD86) -T 0 -s -o ${.PREFIX}.tmp ${.ALLSRC} |
| 22 | dd if=${.PREFIX}.tmp of=${.TARGET} bs=1 skip=288 |
| 23 | rm -f ${.PREFIX}.tmp |
| 24 | |
| 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 |
| 28 | rm -f ${.PREFIX}.tmp |
| 29 | |
| 30 | redir.com.uu: redir.com |
| 31 | uuencode redir.com redir.com > redir.com.uu |
| 32 | |
| 33 | emsdriv.sys.uu: emsdriv.sys |
| 34 | uuencode emsdriv.sys emsdriv.sys > emsdriv.sys.uu |
| 35 | |
| 36 | clean: |
| 37 | rm -f ${DOSPROG} ${OBJS} |
| 38 | |
| 39 | allclean: |
| 40 | rm -f ${DOSPROG} ${DOSDIST} ${OBJS} |
| 41 | |
| 42 | |
| 43 | # Rule for as86 |
| 44 | .S.o: |
| 45 | $(AS86) -0 -o ${.TARGET} ${.IMPSRC} |
| 46 | |
| 47 | |
| 48 | |
| 49 | |