summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuoqi Chen <luoqi@FreeBSD.org>1999-02-16 14:57:58 +0000
committerLuoqi Chen <luoqi@FreeBSD.org>1999-02-16 14:57:58 +0000
commitcdea9fcaca098a96cc479c180990d22885b980ba (patch)
treee2a09cedeacb2903b73d60e9991f72faa2e8549e
parent424a49ef3f06c105d3385e0c7154a0f81b1a4295 (diff)
Notes
-rw-r--r--usr.bin/doscmd/Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/usr.bin/doscmd/Makefile b/usr.bin/doscmd/Makefile
index 5fb64e1817fb..218d7d00f553 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.14 1999/01/22 12:45:27 jdp Exp $
+# $Id: Makefile,v 1.15 1999/02/15 12:36:21 bde Exp $
PROG= doscmd
SRCS= AsyncIO.c ParseBuffer.c bios.c callback.c cpu.c dos.c cmos.c config.c \
@@ -20,10 +20,16 @@ EXEGRP= bin
BINMODE=2555
EXEMODE=444
-.if exists(${X11BASE}/include) && exists(${X11BASE}/lib/libX11.a)
+.if ${OBJFORMAT} == "aout"
+XLIBDIR:= ${X11BASE}/lib/aout
+.else
+XLIBDIR:= ${X11BASE}/lib
+.endif
+
+.if exists(${X11BASE}/include) && exists(${XLIBDIR}/libX11.a)
CFLAGS+= -I. -I${X11BASE}/include -DDISASSEMBLER
-LDADD= -L${X11BASE}/lib -lX11
-DPADD= ${X11BASE}/lib/libX11.a
+LDADD= -L${XLIBDIR} -lX11
+DPADD= ${XLIBDIR}/libX11.a
.else
CFLAGS+= -I. -DDISASSEMBLER -DNO_X
.endif