From 8074f143de2dfd0ff321bae3d860c2bdcfd336f3 Mon Sep 17 00:00:00 2001 From: luoqi Date: Tue, 16 Feb 1999 14:57:58 +0000 Subject: Look for aout X libraries at the right place. --- usr.bin/doscmd/Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'usr.bin/doscmd/Makefile') diff --git a/usr.bin/doscmd/Makefile b/usr.bin/doscmd/Makefile index 5fb64e1..218d7d0 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 -- cgit v1.1