NetBSD/gnu/usr.bin/groff/xditview/Makefile
2002-02-09 09:21:47 +00:00

42 lines
1020 B
Makefile

# $NetBSD: Makefile,v 1.11 2002/02/09 09:22:43 lukem Exp $
.include "../Makefile.path"
DIST= ${IDIST}/src/xditview
.PATH: ${DIST}
.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
.if defined(XINCDIR) && defined(XLIBDIR)
BINDIR= /usr/bin
PROG= gxditview
CPPFLAGS+= -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+= -Wl,-R$(XLIBDIR) -L$(XLIBDIR) -lXaw -lXmu -lXt -lXext -lX11 -lm
DPADD+= $(LIBM)
afterinstall:
${INSTALL_FILE} -o $(BINOWN) -g $(BINGRP) -m 444 \
$(.CURDIR)/GXditview.ad \
$(DESTDIR)$(XLIBDIR)/X11/app-defaults/GXditview
.endif
.include <bsd.prog.mk>