xenocara/lib/libGLw/Makefile

53 lines
906 B
Makefile
Raw Normal View History

2011-10-23 07:59:38 -06:00
# $OpenBSD: Makefile,v 1.14 2011/10/23 13:59:38 matthieu Exp $
2006-11-26 04:21:13 -07:00
2007-04-07 09:37:50 -06:00
DEBUG?=
2006-11-26 04:21:13 -07:00
LIB= GLw
MESA_MAJOR= 7
2011-10-23 07:59:38 -06:00
MESA_MINOR= 10
MESA_TINY= 3
CPPFLAGS += -I${X11BASE}/include \
-I${.CURDIR}
2006-11-26 04:21:13 -07:00
SRCS= \
GLwDrawA.c \
GLwDAUtil.c \
GLwM1DrawA.c \
GLwM2DrawA.c
2006-11-26 04:21:13 -07:00
2006-11-29 07:45:19 -07:00
INCS= \
GLwDrawA.h \
GLwDrawAP.h \
GLwMDrawA.h \
GLwMDrawAP.h
obj: _xenocara_obj
2006-11-29 07:45:19 -07:00
includes:
cd ${.CURDIR}; for i in ${INCS}; do \
2006-11-29 07:45:19 -07:00
j="cmp -s $$i ${DESTDIR}${INCSDIR}/GL/$$i || \
${INSTALL_DATA} $$i ${DESTDIR}${INCSDIR}/GL"; \
2006-11-29 07:45:19 -07:00
echo "\tinstalling $$i"; \
eval "$$j"; \
done
2006-11-29 11:03:09 -07:00
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
2006-11-29 11:03:09 -07:00
NOPROFILE=
2006-11-26 04:21:13 -07:00
.include <bsd.lib.mk>
.include <bsd.xorg.mk>