-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
58 lines (50 loc) · 1.26 KB
/
Makefile
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
54
55
56
57
58
REGISTRY?=OpenGL-Registry/xml/gl.xml
EXTENSIONS?=
NOTEST?=n
EXE=bin/Debug/net7.0/generator
GENERATOR?=$(EXE)
all: \
$(EXE) \
exports/gl_1v1.zig \
exports/gl_1v2.zig \
exports/gl_1v3.zig \
exports/gl_1v4.zig \
exports/gl_1v5.zig \
exports/gl_2v0.zig \
exports/gl_2v1.zig \
exports/gl_3v0.zig \
exports/gl_3v1.zig \
exports/gl_3v2.zig \
exports/gl_3v3.zig \
exports/gl_4v0.zig \
exports/gl_4v2.zig \
exports/gl_4v3.zig \
exports/gl_4v4.zig \
exports/gl_4v5.zig \
exports/gl_4v6.zig \
exports/gl_es_1v0.zig \
exports/gl_es_1v0.zig \
exports/gl_es_2v0.zig \
exports/gl_es_3v0.zig \
exports/gl_es_3v1.zig \
exports/gl_es_3v2.zig
$(EXE): src/Generator.cs
dotnet build
exports/gl_%.zig: $(REGISTRY)
$(GENERATOR) $(REGISTRY) $@ GL_VERSION_$(subst exports/gl_,,$(subst v,_,${@:.zig=})) $(EXTENSIONS)
zig fmt $@
ifneq ($(NOTEST),y)
./scripts/multiplatform-test.sh "$@"
endif
exports/gl_es_1v0.zig: $(REGISTRY)
$(GENERATOR) $(REGISTRY) $@ GL_VERSION_ES_CM_1_0 $(EXTENSIONS)
zig fmt $@
ifneq ($(NOTEST),y)
./scripts/multiplatform-test.sh "$@"
endif
exports/gl_es_%.zig: $(REGISTRY)
$(GENERATOR) $(REGISTRY) $@ GL_ES_VERSION_$(subst exports/gl_es_,,$(subst v,_,${@:.zig=})) $(EXTENSIONS)
zig fmt $@
ifneq ($(NOTEST),y)
./scripts/multiplatform-test.sh "$@"
endif