summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorjtc <jtc@NetBSD.org>1994-02-05 01:37:16 +0000
committerjtc <jtc@NetBSD.org>1994-02-05 01:37:16 +0000
commit3bb5673fafc87c99f398c4e2031e66aebaed09aa (patch)
treeab5d6bcf65b30b5d9167c941cc1bb0c188d531a2 /gnu
parent073a9f9e9997b8456c6be97095296611ec26bc6a (diff)
Check /usr/X11, /usr/X11R6, /usr/X11R5, /usr/X11R4 & /usr/X386 (in that
order) for X include files and libraries.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/groff/xditview/Makefile34
1 files changed, 25 insertions, 9 deletions
diff --git a/gnu/usr.bin/groff/xditview/Makefile b/gnu/usr.bin/groff/xditview/Makefile
index 2601a8a8656..4bd8e4a16c5 100644
--- a/gnu/usr.bin/groff/xditview/Makefile
+++ b/gnu/usr.bin/groff/xditview/Makefile
@@ -1,20 +1,36 @@
-# $Id: Makefile,v 1.3 1993/08/02 17:45:54 mycroft Exp $
+# $Id: Makefile,v 1.4 1994/02/05 01:37:16 jtc Exp $
-.if exists(/usr/X386)
+.if exists(/usr/X11)
+XINCDIR= /usr/X11/include
+XLIBDIR= /usr/X11/lib
+.elif exists(/usr/X11R6)
+XINCDIR= /usr/X11R6/include
+XLIBDIR= /usr/X11R6/lib
+.elif exists(/usr/X11R5)
+XINCDIR= /usr/X11R5/include
+XLIBDIR= /usr/X11R5/lib
+.elif exists(/usr/X11R4)
+XINCDIR= /usr/X11R4/include
+XLIBDIR= /usr/X11R4/lib
+.elif exists(/usr/X386)
+XINCDIR= /usr/X386/include
+XLIBDIR= /usr/X386/lib
+.endif
-BINDIR= /usr/X386/bin
-MANDIR= /usr/X386/man/cat
+.if defined(XINCDIR) && defined(XLIBDIR)
+BINDIR= /usr/bin
PROG= gxditview
-CFLAGS+= -I/usr/X386/include -DFONTPATH=\"/usr/share/groff_font\"
+CFLAGS+= -I$(XINCDIR) -DFONTPATH=\"/usr/share/groff_font\"
SRCS+= xditview.c Dvi.c draw.c font.c lex.c page.c parse.c \
XFontName.c DviChar.c device.c
-LDADD+= -L/usr/X386/lib -lXaw -lXmu -lXt -lXext -lX11 -lm
+LDADD+= -L$(XLIBDIR) -lXaw -lXmu -lXt -lXext -lX11 -lm
+DPADD+= $(LIBM)
afterinstall:
- install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
- ${.CURDIR}/GXditview.ad \
- $(DESTDIR)/usr/X386/lib/X11/app-defaults
+ install -c -o $(BINOWN) -g $(BINGRP) -m 444 \
+ $(.CURDIR)/GXditview.ad \
+ $(DESTDIR)$(XLIBDIR)/X11/app-defaults
.endif
.include <bsd.prog.mk>