summaryrefslogtreecommitdiffstats
path: root/usr.bin/doscmd/Makefile
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-03-21 12:51:44 +0000
committerbde <bde@FreeBSD.org>1998-03-21 12:51:44 +0000
commitd172708658b0dd57913356a6fe449e0a6b3d9b76 (patch)
tree904d1786188de03384321b50927226bf4523e277 /usr.bin/doscmd/Makefile
parentb538635a3e61643029279c3054457a18c446e2a8 (diff)
downloadFreeBSD-src-d172708658b0dd57913356a6fe449e0a6b3d9b76.zip
FreeBSD-src-d172708658b0dd57913356a6fe449e0a6b3d9b76.tar.gz
Honour -static in LDFLAGS.
Install using ${INSTALL}, not `install'. Install generated files using ${COPY}, not -c. Install using a single command when this is easy.
Diffstat (limited to 'usr.bin/doscmd/Makefile')
-rw-r--r--usr.bin/doscmd/Makefile17
1 files changed, 8 insertions, 9 deletions
diff --git a/usr.bin/doscmd/Makefile b/usr.bin/doscmd/Makefile
index 1933729..c7d580a 100644
--- a/usr.bin/doscmd/Makefile
+++ b/usr.bin/doscmd/Makefile
@@ -1,6 +1,6 @@
# from BSDI Makefile,v 2.6 1996/04/08 20:06:40 bostic Exp
#
-# $Id: Makefile,v 1.8 1997/09/30 22:03:34 jlemon Exp $
+# $Id: Makefile,v 1.9 1997/12/16 16:36:43 bde Exp $
PROG= doscmd
SRCS= AsyncIO.c ParseBuffer.c bios.c callback.c cpu.c dos.c cmos.c config.c \
@@ -27,15 +27,14 @@ LDADD+= -lgcc -lc
DPADD+= ${LIBGCC} ${LIBC}
beforeinstall:
- install ${COPY} -o ${BINOWN} -g ${EXEGRP} -m ${EXEMODE} \
- doscmd.kernel ${DESTDIR}/usr/libexec/doscmd.kernel
- install -c -o ${BINOWN} -g ${EXEGRP} -m ${EXEMODE} \
- redir.com ${DESTDIR}/usr/libdata/doscmd/
- install -c -o ${BINOWN} -g ${EXEGRP} -m ${EXEMODE} \
- emsdriv.sys ${DESTDIR}/usr/libdata/doscmd/
+ ${INSTALL} ${COPY} -o ${BINOWN} -g ${EXEGRP} -m ${EXEMODE} \
+ doscmd.kernel ${DESTDIR}/usr/libexec/
+ ${INSTALL} ${COPY} -o ${BINOWN} -g ${EXEGRP} -m ${EXEMODE} \
+ emsdriv.sys redir.com ${DESTDIR}/usr/libdata/doscmd/
doscmd: ${LIBCRT0} doscmd_loader.o ${LIBGCC} ${LIBC}
- ld -e start -dc -dp -o doscmd ${LIBCRT0} doscmd_loader.o -lgcc -lc
+ ld -e start -dc -dp ${LDFLAGS:M-static:S/-static/-Bstatic/} \
+ -o doscmd ${LIBCRT0} doscmd_loader.o -lgcc -lc
# Bogusly generated dependency to get doscmd_loader.c looked at by mkdep.
.depend: doscmd_loader.c
@@ -60,4 +59,4 @@ emsdriv.sys: emsdriv.sys.uu
# dependency gets expanded.
doscmd.kernel: crt0.o ${OBJS} ${DPADD}
ld -N -Bstatic -T 110000 -o doscmd.kernel ${LDFLAGS} \
- crt0.o ${OBJS} ${LDADD}
+ crt0.o ${OBJS} ${LDADD}
OpenPOWER on IntegriCloud