1997-08-09 01:52:58 +00:00
|
|
|
# from BSDI Makefile,v 2.6 1996/04/08 20:06:40 bostic Exp
|
|
|
|
#
|
1997-08-18 18:48:33 +00:00
|
|
|
# $Id: Makefile,v 1.5 1997/08/15 23:41:22 jlemon Exp $
|
1997-08-09 01:52:58 +00:00
|
|
|
|
|
|
|
PROG= doscmd
|
1997-08-12 16:08:02 +00:00
|
|
|
MAN1= doscmd.1
|
1997-08-15 23:41:26 +00:00
|
|
|
SRCS= AsyncIO.c ParseBuffer.c bios.c callback.c cpu.c dos.c cmos.c config.c \
|
|
|
|
cwd.c debug.c disktab.c doscmd.c exe.c i386-pinsn.c int.c int10.c \
|
|
|
|
int13.c int14.c int16.c int17.c int1a.c int2f.c intff.c mem.c mouse.c \
|
|
|
|
net.c port.c setver.c signal.c timer.c trace.c trap.c tty.c xms.c
|
1997-08-09 01:52:58 +00:00
|
|
|
|
1997-08-12 16:08:02 +00:00
|
|
|
CLEANFILES= doscmd.kernel crt0.o doscmd_loader.o instbsdi.exe
|
1997-08-09 01:52:58 +00:00
|
|
|
|
|
|
|
BINGRP= kmem
|
|
|
|
EXEGRP= bin
|
|
|
|
BINMODE=2555
|
|
|
|
EXEMODE=444
|
|
|
|
|
1997-08-18 18:48:33 +00:00
|
|
|
.if exists(${X11BASE})
|
|
|
|
CFLAGS+= -I. -I${X11BASE}/include -DDISASSEMBLER
|
|
|
|
LDFLAGS+= -L${X11BASE}/lib
|
|
|
|
LDADD+= -lX11 -lgcc -lc
|
|
|
|
DPADD+= ${X11BASE}/lib/libX11.a ${LIBC}
|
|
|
|
.else
|
|
|
|
CFLAGS+= -I. -DDISASSEMBLER -DNO_X
|
|
|
|
LDADD+= -lgcc -lc
|
|
|
|
DPADD+= ${LIBC}
|
|
|
|
.endif
|
1997-08-09 01:52:58 +00:00
|
|
|
|
|
|
|
afterinstall:
|
|
|
|
install ${COPY} -o ${BINOWN} -g ${EXEGRP} -m ${EXEMODE} \
|
|
|
|
doscmd.kernel ${DESTDIR}/usr/libexec/doscmd.kernel
|
|
|
|
install -c -o ${BINOWN} -g ${EXEGRP} -m ${EXEMODE} \
|
1997-08-12 16:08:02 +00:00
|
|
|
instbsdi.exe ${DESTDIR}/usr/libdata/doscmd/
|
1997-08-09 01:52:58 +00:00
|
|
|
|
1997-08-09 02:08:32 +00:00
|
|
|
doscmd: doscmd.kernel ${LIBCRT0} doscmd_loader.o instbsdi.exe
|
1997-08-18 18:48:33 +00:00
|
|
|
ld -e start -dc -dp -o doscmd /usr/lib/crt0.o doscmd_loader.o -lgcc -lc
|
1997-08-09 01:52:58 +00:00
|
|
|
|
1997-08-09 02:08:32 +00:00
|
|
|
instbsdi.exe: instbsdi.exe.uu
|
1997-08-09 20:04:04 +00:00
|
|
|
uudecode ${.CURDIR}/instbsdi.exe.uu
|
1997-08-09 02:08:32 +00:00
|
|
|
|
1997-08-09 01:52:58 +00:00
|
|
|
.include <bsd.prog.mk>
|
|
|
|
|
|
|
|
.depend: doscmd_loader.c
|
|
|
|
|
|
|
|
doscmd.kernel: crt0.o ${OBJS}
|
1997-08-18 18:48:33 +00:00
|
|
|
ld -N -Bstatic -T 110000 -o doscmd.kernel ${LDFLAGS} \
|
|
|
|
crt0.o ${OBJS} ${LDADD}
|