summaryrefslogtreecommitdiff
path: root/lib/libGLw/Makefile
blob: 756c97d3496547eae7dacaea71406c195cf8fa7d (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# $OpenBSD: Makefile,v 1.11 2009/05/25 18:40:11 matthieu Exp $

DEBUG?=

LIB= GLw

MESA_MAJOR=	7
MESA_MINOR=	4
MESA_TINY=	2

CPPFLAGS += -I${X11BASE}/include \
	-I${.CURDIR}

SRCS= \
	GLwDrawA.c \
	GLwDAUtil.c \
	GLwM1DrawA.c \
	GLwM2DrawA.c

INCS= \
	GLwDrawA.h \
	GLwDrawAP.h \
	GLwMDrawA.h \
	GLwMDrawAP.h

obj: _xenocara_obj

includes:
	cd ${.CURDIR}; for i in ${INCS}; do \
	    j="cmp -s $$i ${DESTDIR}${INCSDIR}/GL/$$i || \
		${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
		$$i ${DESTDIR}${INCSDIR}/GL"; \
		echo "\tinstalling $$i"; \
		eval "$$j"; \
	done

beforeinstall: includes

afterinstall: glw.pc
	$(INSTALL) -c -m 644 -o root -g wheel glw.pc \
		${DESTDIR}${LIBDIR}/pkgconfig

glw.pc: glw.pc.in
	sed -e 's,@INSTALL_DIR@,$(X11BASE),' \
	    -e 's,@LIB_DIR@,lib,' \
	    -e 's,@VERSION@,$(MESA_MAJOR).$(MESA_MINOR).$(MESA_TINY),' \
	< ${.CURDIR}/glw.pc.in > glw.pc

NOPROFILE=

.include <bsd.lib.mk>
.include <bsd.xorg.mk>