blob: 75bf10fa54e3ad703cd3eff36ce9b559611bbff6 (
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
|
#!/bin/make
CFLAGS = -I. -Werror-implicit-function-declaration -O0 -g3
LIB = libGLESv2.a
ARFLAGS = rucv
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 \
Compressed.c \
Clear.c \
Fragment.c \
Get.c \
Framebuffer.c \
internal.c \
macro.c \
EGLImage.c \
$(END)
OBJS = $(SRCS:.c=.o)
default: __touch__ $(LIB)
__touch__:
touch Get.c
$(LIB): $(OBJS)
$(AR) $(ARFLAGS) $@ $(OBJS)
install: $(LIB)
cp $(LIB) ../lib
# supports
clean:
$(RM) $(RMFLAGS) $(OBJS)
clobber: clean
$(RM) $(RMFLAGS) $(LIB) core a.out
wc:
wc $(SRCS) *.inl *.h
$(OBJS): GLES2/gl2.h
|