xenocara/lib/libepoxy/Makefile
matthieu d9fc70eb7c Remove the global 'make includes' step from 'make build'.
This is no longer needed and gets in the way of tightening
permission used during build. ok and suggestions natano@
2016-10-10 13:34:43 +00:00

69 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.6 2016/10/10 13:34:43 matthieu Exp $
.include <bsd.xconf.mk>
EPOXY= ${.CURDIR}/../../dist/libepoxy
LIB= epoxy
EPOXY_MAJOR= 1
EPOXY_MINOR= 3
EPOXY_TINY= 1
INCSDIR= ${X11BASE}/include/epoxy
CFLAGS+= -std=gnu99
CPPFLAGS+= \
-I${.CURDIR}/generated/include \
-I${EPOXY}/include \
-I${EPOXY}/src \
-I${X11BASE}/include \
-DPLATFORM_HAS_GLX \
-DPLATFORM_HAS_EGL
SRCS= dispatch_common.c \
dispatch_glx.c \
dispatch_egl.c \
gl_generated_dispatch.c \
glx_generated_dispatch.c \
egl_generated_dispatch.c
INCS= gl.h \
glx.h \
egl.h
GINCS= gl_generated.h \
glx_generated.h \
egl_generated.h
includes: _SUBDIRUSE
cd ${EPOXY}/include/epoxy; for i in ${INCS}; do \
j="cmp -s $$i ${DESTDIR}${INCSDIR}/epoxy/$$i || \
${INSTALL_DATA} $$i ${DESTDIR}${INCSDIR}/epoxy"; \
echo "\tinstalling $$i"; \
eval "$$j"; \
done
cd ${.CURDIR}/generated/include/epoxy; for i in ${GINCS}; do \
j="cmp -s $$i ${DESTDIR}${INCSDIR}/epoxy/$$i || \
${INSTALL_DATA} $$i ${DESTDIR}${INCSDIR}/epoxy"; \
echo "\tinstalling $$i"; \
eval "$$j"; \
done
beforeinstall: includes
NOPROFILE=
PKGCONFIG= epoxy.pc
PACKAGE_VERSION= $(EPOXY_MAJOR).$(EPOXY_MINOR).$(EPOXY_TINY)
EXTRA_PKGCONFIG_SUBST= '-e s,@DLOPEN_LIBS@,,'
obj: _xenocara_obj
.include <bsd.lib.mk>
.include <bsd.xorg.mk>
.PATH: ${EPOXY}
.PATH: ${EPOXY}/src
.PATH: ${.CURDIR}/generated/src