summaryrefslogtreecommitdiffstats
path: root/usr.bin/doscmd/Makefile
diff options
context:
space:
mode:
authorjlemon <jlemon@FreeBSD.org>1997-08-28 18:23:40 +0000
committerjlemon <jlemon@FreeBSD.org>1997-08-28 18:23:40 +0000
commit38914117f060f87f8c832de302a8f72bf636fbe5 (patch)
tree4c7912fb233c28d4e72aa2d7ca69c2097fa8bc32 /usr.bin/doscmd/Makefile
parent3a22d79f32e11f40e1065319e9d5f0bd0c47162f (diff)
downloadFreeBSD-src-38914117f060f87f8c832de302a8f72bf636fbe5.zip
FreeBSD-src-38914117f060f87f8c832de302a8f72bf636fbe5.tar.gz
Make X11 support in doscmd dependent on the actual libX11.a library and
include directory, rather than X11BASE. This fixes the build for people who only have the shared X11 distribution installed. Requested-by: A Joseph Koshy <koshy@india.hp.com>
Diffstat (limited to 'usr.bin/doscmd/Makefile')
-rw-r--r--usr.bin/doscmd/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/doscmd/Makefile b/usr.bin/doscmd/Makefile
index 29ac73e..c8754e7 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.5 1997/08/15 23:41:22 jlemon Exp $
+# $Id: Makefile,v 1.6 1997/08/18 18:48:33 jlemon Exp $
PROG= doscmd
MAN1= doscmd.1
@@ -16,7 +16,7 @@ EXEGRP= bin
BINMODE=2555
EXEMODE=444
-.if exists(${X11BASE})
+.if exists(${X11BASE}/include) && exists(${X11BASE}/lib/libX11.a)
CFLAGS+= -I. -I${X11BASE}/include -DDISASSEMBLER
LDFLAGS+= -L${X11BASE}/lib
LDADD+= -lX11 -lgcc -lc
OpenPOWER on IntegriCloud