Start removing the old build infrastructure for the a.out
[dragonfly.git] / usr.bin / doscmd / Makefile
CommitLineData
984263bc
MD
1# from BSDI Makefile,v 2.6 1996/04/08 20:06:40 bostic Exp
2#
3# $FreeBSD: src/usr.bin/doscmd/Makefile,v 1.21.2.5 2002/08/07 16:32:01 ru Exp $
aa8d5dcb 4# $DragonFly: src/usr.bin/doscmd/Makefile,v 1.3 2004/03/20 16:27:41 drhodus Exp $
984263bc
MD
5
6PROG= doscmd
7SRCS= AsyncIO.c ParseBuffer.c bios.c callback.c cmos.c config.c cpu.c cwd.c \
8 debug.c disktab.c dos.c doscmd.c ems.c emuint.c exe.c i386-pinsn.c \
9 int.c int10.c int13.c int14.c int16.c int17.c int1a.c int2f.c intff.c \
10 mem.c mouse.c net.c port.c setver.c signal.c timer.c trace.c trap.c \
11 tty.c video.c xms.c ${FONTHDRS}
12CFLAGS+= -I. -DDISASSEMBLER
13FONTFILES= cp437-8x8.pcf.gz cp437-8x14.pcf.gz cp437-8x16.pcf.gz
14FONTHDRS= font8x8.h font8x14.h font8x16.h
15CLEANFILES= ${FONTFILES} ${FONTHDRS} emsdriv.sys redir.com
16
17XINCDIR= ${DESTDIR}${X11BASE}/include
984263bc 18XLIBDIR= ${DESTDIR}${X11BASE}/lib
984263bc
MD
19
20EXEGRP:= ${BINGRP}
21EXEMODE= ${NOBINMODE}
22#BINGRP= kmem
23#BINMODE= 2555
24
25.if !defined(NO_X) && exists(${XINCDIR}/X11/X.h) && exists(${XLIBDIR}/libX11.a)
26CFLAGS+= -I${XINCDIR}
27LDADD+= -L${XLIBDIR} -lX11
28DPADD+= ${XLIBDIR}/libX11.a
29.else
30CFLAGS+= -DNO_X
31.endif
32
33beforeinstall:
984263bc
MD
34 ${INSTALL} -o ${BINOWN} -g ${EXEGRP} -m ${EXEMODE} \
35 emsdriv.sys redir.com ${DESTDIR}/usr/libdata/doscmd/
36 ${INSTALL} -o ${BINOWN} -g ${EXEGRP} -m ${SHAREMODE} \
37 ${FONTFILES} ${DESTDIR}/usr/libdata/doscmd/fonts
38 cd ${.CURDIR} && \
39 ${INSTALL} -o ${BINOWN} -g ${EXEGRP} -m ${SHAREMODE} \
40 fonts.dir ${DESTDIR}/usr/libdata/doscmd/fonts
41
984263bc 42doscmd: ${FONTFILES} ${FONTHDRS} emsdriv.sys redir.com
984263bc
MD
43
44cp437-8x8.pcf.gz: cp437-8x8.pcf.gz.uu
45 uudecode ${.CURDIR}/cp437-8x8.pcf.gz.uu
46
47cp437-8x14.pcf.gz: cp437-8x14.pcf.gz.uu
48 uudecode ${.CURDIR}/cp437-8x14.pcf.gz.uu
49
50cp437-8x16.pcf.gz: cp437-8x16.pcf.gz.uu
51 uudecode ${.CURDIR}/cp437-8x16.pcf.gz.uu
52
53emsdriv.sys: emsdriv.sys.uu
54 uudecode ${.CURDIR}/emsdriv.sys.uu
55
56font8x8.h: ${.CURDIR}/../../share/syscons/fonts/cp437-8x8.fnt
57 uudecode -p ${.ALLSRC} | \
58 file2c 'u_int8_t font8x8[] = {' '};' > ${.TARGET}
59
60font8x14.h: ${.CURDIR}/../../share/syscons/fonts/cp437-8x14.fnt
61 uudecode -p ${.ALLSRC} | \
62 file2c 'u_int8_t font8x14[] = {' '};' > ${.TARGET}
63
64font8x16.h: ${.CURDIR}/../../share/syscons/fonts/cp437-8x16.fnt
65 uudecode -p ${.ALLSRC} | \
66 file2c 'u_int8_t font8x16[] = {' '};' > ${.TARGET}
67
68redir.com: redir.com.uu
69 uudecode ${.CURDIR}/redir.com.uu
70
71# Make sure the library names are defined. We want to specify the full
72# path to the standard crt0.o, and building two binaries in one directory
73# breaks the automatic generation of dependencies for binaries.
74NEED_LIBNAMES= yes
75
76.include <bsd.prog.mk>