2018-05-25 00:24:59 -06:00
|
|
|
# $OpenBSD: Makefile,v 1.2 2018/05/25 06:24:59 matthieu Exp $
|
2015-04-15 01:58:58 -06:00
|
|
|
|
|
|
|
EPOXY= ${.CURDIR}/../../../dist/libepoxy
|
|
|
|
|
|
|
|
PYTHON= python${PYTHON_VERSION}
|
|
|
|
PYTHON_FLAGS= -t -O -O
|
|
|
|
|
|
|
|
GENERATED= \
|
|
|
|
src/gl_generated_dispatch.c \
|
|
|
|
src/glx_generated_dispatch.c \
|
|
|
|
src/egl_generated_dispatch.c
|
|
|
|
|
|
|
|
all: ${GENERATED}
|
|
|
|
|
|
|
|
obj:
|
|
|
|
|
|
|
|
depend:
|
|
|
|
|
|
|
|
install:
|
|
|
|
|
|
|
|
clean distclean:
|
|
|
|
rm -f ${GENERATED}
|
|
|
|
|
|
|
|
src/gl_generated_dispatch.c: registry/gl.xml
|
|
|
|
$(PYTHON) $(PYTHON_FLAGS) ${EPOXY}/src/gen_dispatch.py \
|
2018-05-25 00:24:59 -06:00
|
|
|
--srcdir ${.CURDIR}/src --includedir ${.CURDIR}/include/epoxy \
|
|
|
|
${EPOXY}/registry/gl.xml
|
2015-04-15 01:58:58 -06:00
|
|
|
|
|
|
|
src/glx_generated_dispatch.c: registry/glx.xml
|
|
|
|
$(PYTHON) $(PYTHON_FLAGS) ${EPOXY}/src/gen_dispatch.py \
|
2018-05-25 00:24:59 -06:00
|
|
|
--srcdir ${.CURDIR}/src --includedir ${.CURDIR}/include/epoxy \
|
|
|
|
${EPOXY}/registry/glx.xml
|
2015-04-15 01:58:58 -06:00
|
|
|
|
|
|
|
src/egl_generated_dispatch.c: registry/egl.xml
|
|
|
|
$(PYTHON) $(PYTHON_FLAGS) ${EPOXY}/src/gen_dispatch.py \
|
2018-05-25 00:24:59 -06:00
|
|
|
--srcdir ${.CURDIR}/src --includedir ${.CURDIR}/include/epoxy \
|
|
|
|
${EPOXY}/registry/egl.xml
|
2015-04-15 01:58:58 -06:00
|
|
|
|
|
|
|
.SUFFIXES: .py .xml
|
|
|
|
|
|
|
|
.PATH: ${EPOXY}
|
|
|
|
.PATH: ${EPOXY}/src
|
|
|
|
|
|
|
|
.include <bsd.xorg.mk>
|