1997-10-25 14:10:19 +04:00
|
|
|
# $NetBSD: Makefile,v 1.8 1997/10/25 10:12:35 lukem Exp $
|
1993-08-02 21:38:43 +04:00
|
|
|
|
1994-02-05 04:37:16 +03:00
|
|
|
.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
|
1993-07-15 20:43:14 +04:00
|
|
|
|
1994-02-05 04:37:16 +03:00
|
|
|
.if defined(XINCDIR) && defined(XLIBDIR)
|
|
|
|
BINDIR= /usr/bin
|
1993-07-15 20:43:14 +04:00
|
|
|
|
|
|
|
PROG= gxditview
|
1997-10-25 14:10:19 +04:00
|
|
|
CPPFLAGS+= -I$(XINCDIR) -DFONTPATH=\"/usr/share/groff_font\"
|
1993-07-15 20:43:14 +04:00
|
|
|
SRCS+= xditview.c Dvi.c draw.c font.c lex.c page.c parse.c \
|
|
|
|
XFontName.c DviChar.c device.c
|
1994-02-05 04:37:16 +03:00
|
|
|
LDADD+= -L$(XLIBDIR) -lXaw -lXmu -lXt -lXext -lX11 -lm
|
|
|
|
DPADD+= $(LIBM)
|
1993-07-15 20:43:14 +04:00
|
|
|
|
|
|
|
afterinstall:
|
1996-10-18 06:52:59 +04:00
|
|
|
${INSTALL} -c -o $(BINOWN) -g $(BINGRP) -m 444 \
|
1994-02-05 04:37:16 +03:00
|
|
|
$(.CURDIR)/GXditview.ad \
|
1994-02-14 20:27:49 +03:00
|
|
|
$(DESTDIR)$(XLIBDIR)/X11/app-defaults/GXditview
|
1993-07-15 20:43:14 +04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|