blob: 3511dde05e43cf0d1bf9f9b8682f773a60aca429 (
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
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
#!/bin/make
CFLAGS = -I. -I../include -fPIC -Werror-implicit-function-declaration -O3 -g
ARFLAGS = rucv
CFLAGS += -DPROVIDING_OES_blend_func_separate
CFLAGS += -DPROVIDING_OES_blend_subtract
# never CFLAGS += -DPROVIDING_OES_byte_coordinates # N/A for ES 2.0
CFLAGS += -DPROVIDING_OES_fixed_point # always ON
# never CFLAGS += -DPROVIDING_OES_matrix_get # N/A for ES 2.0
# never CFLAGS += -DPROVIDING_OES_point_size_array # N/A for ES 2.0
# never CFLAGS += -DPROVIDING_OES_point_sprite # N/A for ES 2.0
# never CFLAGS += -DPROVIDING_OES_query_matrix # N/A for ES 2.0
CFLAGS += -DPROVIDING_OES_single_precision
CFLAGS += -DPROVIDING_OES_stencil_wrap # always ON
# never CFLAGS += -DPROVIDING_OES_texture_cube_map # N/A for ES 2.0
# never CFLAGS += -DPROVIDING_OES_texture_env_crossbar # N/A for ES 2.0
CFLAGS += -DPROVIDING_OES_texture_mirrored_repeat # always ON
CFLAGS += -DPROVIDING_OES_element_index_uint
CFLAGS += -DPROVIDING_OES_texture_3D
CFLAGS += -DPROVIDING_OES_texture_npot
CFLAGS += -DPROVIDING_OES_rgb8_rgba8
CFLAGS += -DPROVIDING_OES_packed_depth_stencil
LIBBASE = libGLESv2.so
LIBVER = 1.0
LIB = $(LIBBASE).$(LIBVER)
END =
SRCS = \
Enable.c \
Error.c \
Flush.c \
Shader.c \
Program.c \
Link.c \
Uniform.c \
VertexAttrib.c \
VertexPointer.c \
Buffer.c \
DrawArray.c \
DrawElement.c \
Primitive.c \
Texture.c \
TexImage.c \
Tex3D.c \
Compressed.c \
Clear.c \
Fragment.c \
Get.c \
Framebuffer.c \
Extend.c \
PrepLex.c \
EvalParse.c \
ParseParse.c \
internal.c \
macro.c \
symbol.c \
EGLImage.c \
$(END)
OBJS = $(SRCS:.c=.o)
default: __touch__ $(LIB)
__touch__:
touch Get.c
$(LIB): $(OBJS)
$(CC) -shared -Wl,-soname,$(LIBBASE).1 -o $@ $(OBJS) -ldl -lX11
install: $(LIB)
cp $(LIB) ../lib/host-gl/
# supports
clean:
$(RM) $(RMFLAGS) $(OBJS)
wc:
wc $(SRCS) *.h *.inl
#$(OBJS): GLES2/gl2.h es2front.h
clobber: clean
$(RM) $(RMFLAGS) $(LIB) core a.out
|