summaryrefslogtreecommitdiff
path: root/es_1_1/makefile-dynamic
blob: de5adb60d0a7beb136b3da13d7d3c7e3b3a9f88d (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
#!/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