Initial import from FreeBSD RELENG_4:
[dragonfly.git] / usr.bin / doscmd / Makefile.dos
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
10 AS86 = as86
11 LD86 = ld86
12
13 OBJS    = redir.o emsdriv.o
14 DOSPROG = redir.com emsdriv.sys
15 DOSDIST = redir.com.uu emsdriv.sys.uu
16
17 all: ${DOSPROG} ${DOSDIST}
18
19 redir.com: redir.o
20         $(LD86) -T 0 -s -o ${.PREFIX}.tmp ${.ALLSRC}
21         dd if=${.PREFIX}.tmp of=${.TARGET} bs=1 skip=288
22         rm -f ${.PREFIX}.tmp
23
24 emsdriv.sys: emsdriv.o
25         $(LD86) -T 0 -s -o ${.PREFIX}.tmp ${.ALLSRC}
26         dd if=${.PREFIX}.tmp of=${.TARGET} bs=1 skip=32
27         rm -f ${.PREFIX}.tmp
28
29 redir.com.uu: redir.com
30         uuencode redir.com redir.com > redir.com.uu
31
32 emsdriv.sys.uu: emsdriv.sys
33         uuencode emsdriv.sys emsdriv.sys > emsdriv.sys.uu
34
35 clean:
36         rm -f ${DOSPROG} ${OBJS}
37
38 allclean:
39         rm -f ${DOSPROG} ${DOSDIST} ${OBJS} 
40
41
42 # Rule for as86
43 .S.o:
44         $(AS86) -0 -o ${.TARGET} ${.IMPSRC}
45
46
47
48