summaryrefslogtreecommitdiff
path: root/external/mit/xorg/bin/x11perf/Makefile
blob: 01d4f8bd2a83c44927598fef882839c5f0093c21 (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
37
38
#	$NetBSD: Makefile,v 1.3 2011/11/20 21:02:23 dholland Exp $

.include <bsd.own.mk>

PROG=	x11perf
SRCS=	x11perf.c bitmaps.c do_tests.c do_simple.c do_rects.c do_valgc.c \
	do_lines.c do_segs.c do_dots.c do_windows.c do_movewin.c do_text.c \
	do_blt.c do_arcs.c do_tris.c do_complex.c do_traps.c

CPPFLAGS+=	-DMITSHM -DXRENDER
CPPFLAGS+=	-DXFT -DXFREE86_FT2 -I${DESTDIR}${X11INCDIR}/freetype2

MAN=	Xmark.1 x11perf.1 x11perfcomp.1

x11perfcomp: x11perfcomp.in
	${TOOL_SED} \
		-e "s,@x11perfcompdir@,${X11LIBDIR}/x11perfcomp,;" \
		-e "s,@MKTEMP@,/usr/bin/mktemp,;" \
		< ${.ALLSRC} > ${.TARGET}

SCRIPTS=		x11perfcomp Xmark \
			fillblnk perfboth perfratio
SCRIPTSDIR_fillblnk.sh=	${X11LIBDIR}/x11perfcomp
SCRIPTSDIR_perfboth.sh=	${X11LIBDIR}/x11perfcomp
SCRIPTSDIR_perfratio.sh=${X11LIBDIR}/x11perfcomp

CLEANFILES+=	x11perfcomp

LDADD+=	-lXft -lfontconfig -lfreetype -lexpat -lXrender
DPADD+=	${LIBXFT} ${LIBFONTCONFIG} ${LIBFREETYPE} ${LIBEXPAT} ${LIBXRENDER}
LDADD+=	-lXmuu -lXt -lSM -lICE -lXext -lX11 -lm
DPADD+=	${LIBXMUU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11} ${LIBM}

.PATH:	${X11SRCDIR.${PROG}}
.PATH:	${X11SRCDIR.${PROG}}/man

.include <bsd.x11.mk>
.include <bsd.prog.mk>