#!/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 CFLAGS += -DPROVIDING_OES_byte_coordinates # core: always on CFLAGS += -DPROVIDING_OES_fixed_point # core: always on CFLAGS += -DPROVIDING_OES_matrix_get # core: alwyas on CFLAGS += -DPROVIDING_OES_point_size_array # required: OES_point_sprite required CFLAGS += -DPROVIDING_OES_point_sprite # required: CFLAGS += -DPROVIDING_OES_query_matrix # OES_fixed_point is required CFLAGS += -DPROVIDING_OES_single_precision # core: always on CFLAGS += -DPROVIDING_OES_stencil_wrap CFLAGS += -DPROVIDING_OES_texture_cube_map CFLAGS += -DPROVIDING_OES_texture_env_crossbar CFLAGS += -DPROVIDING_OES_texture_mirrored_repeat CFLAGS += -DPROVIDING_OES_element_index_uint # never CFLAGS += -DPROVIDING_OES_texture_3D # only for ES 2.0 # never CFLAGS += -DPROVIDING_OES_texture_npot # only for ES 2.0 LIBBASE = libGLESv1_CM.so LIBVER = 1.0 LIB = $(LIBBASE).$(LIBVER) END = SRCS = \ 25Error.c \ 25enable.c \ 27state.c \ 28array.c \ 29buffer.c \ 2Axform.c \ 2Bclip.c \ 2Ccolor.c \ 2PdrawArray.c \ 2QdrawElements.c \ 33point.c \ 34line.c \ 35polygon.c \ 36pixel.c \ 37texture.c \ 38fog.c \ 3Btexpal.c \ 41frag.c \ 42frame.c \ 43read.c \ 50flush.c \ 60get.c \ 80ext.c \ gl_real.c \ gl_context.c \ EGLImage.c \ $(END) OBJS = $(SRCS:.c=.o) default: __touch__ $(LIB) __touch__: touch 60get.c $(LIB): $(OBJS) $(CC) -shared -Wl,-soname,$(LIBBASE).1 -o $@ $(OBJS) -ldl install: $(LIB) cp $(LIB) ../lib/host-gl/ # supports clean: $(RM) $(RMFLAGS) $(OBJS) clobber: clean $(RM) $(RMFLAGS) $(LIB) core a.out wc: wc $(SRCS) *.inl *.h #$(OBJS): GLES/gl.h gl_imp.h gl_context.h 60get.o: 6ZgetCore.inl