summaryrefslogtreecommitdiff
path: root/es_2_0/makefile-static
diff options
context:
space:
mode:
Diffstat (limited to 'es_2_0/makefile-static')
-rwxr-xr-xes_2_0/makefile-static62
1 files changed, 62 insertions, 0 deletions
diff --git a/es_2_0/makefile-static b/es_2_0/makefile-static
new file mode 100755
index 0000000..75bf10f
--- /dev/null
+++ b/es_2_0/makefile-static
@@ -0,0 +1,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
+