diff options
Diffstat (limited to 'es_2_0/makefile-dynamic')
-rwxr-xr-x | es_2_0/makefile-dynamic | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/es_2_0/makefile-dynamic b/es_2_0/makefile-dynamic new file mode 100755 index 0000000..1fde268 --- /dev/null +++ b/es_2_0/makefile-dynamic @@ -0,0 +1,89 @@ +#!/bin/make + +CFLAGS = -I. -I../include -fPIC -Werror-implicit-function-declaration -O0 -g3 +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 + +# supports + +clean: + $(RM) $(RMFLAGS) $(OBJS) + +wc: + wc $(SRCS) *.h *.inl + +#$(OBJS): GLES2/gl2.h es2front.h + + +clobber: clean + $(RM) $(RMFLAGS) $(LIB) core a.out + |