summaryrefslogtreecommitdiff
path: root/lib/libGL/mesa/generated/Makefile
blob: 21150e496ed0a2abdcf0b87d2c2e3cc5465137eb (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
# $OpenBSD: Makefile,v 1.1 2012/08/26 18:46:42 mpi Exp $

MESA=	${.CURDIR}/../../../../dist/Mesa/src/mesa

PYTHON=		python${PYTHON_VERSION}
PYTHON_FLAGS=	-t -O -O

GENERATED= api_exec_es1.c api_exec_es2.c

all: ${GENERATED}

obj:

depend:

install:

clean distclean:
	rm -f ${GENERATED}

api_exec_es1.c: APIspec.xml es_generator.py APIspecutil.py APIspec.py
	$(PYTHON) $(PYTHON_FLAGS) ${MESA}/main/es_generator.py -S ${MESA}/main/APIspec.xml -V GLES1.1 > $@

api_exec_es2.c: APIspec.xml es_generator.py APIspecutil.py APIspec.py
	$(PYTHON) $(PYTHON_FLAGS) ${MESA}/main/es_generator.py -S ${MESA}/main/APIspec.xml -V GLES2.0 > $@

.SUFFIXES: .py .xml

.PATH:	${MESA}/main

.include <bsd.own.mk>