summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/groff/xditview/Makefile
blob: 57c0def56a4075a85d3e16f158123d523aff4e8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#	$Id: Makefile,v 1.5 1994/02/14 17:27:49 jtc Exp $

.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
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$(XLIBDIR) -lXaw -lXmu -lXt -lXext -lX11 -lm 
DPADD+=		$(LIBM)

afterinstall:
		install -c -o $(BINOWN) -g $(BINGRP) -m 444 \
			$(.CURDIR)/GXditview.ad \
			$(DESTDIR)$(XLIBDIR)/X11/app-defaults/GXditview
.endif

.include <bsd.prog.mk>