3 CFLAGS = -g -O2 -fvisibility=hidden -fPIC -Wall -std=c99
6 LDFLAGS = -g -O2 -fvisibility=hidden -Wall -std=c99 -ldl -lpthread
11 src/coregl_thread_pthread.c \
14 src/coregl_export_egl.c \
15 src/coregl_export_gl.c \
16 src/modules/coregl_module.c \
18 src/modules/tracepath/coregl_tracepath.c \
19 src/modules/tracepath/coregl_tracepath_egl.c \
20 src/modules/tracepath/coregl_tracepath_gl.c \
22 src/modules/fastpath/coregl_fastpath.c \
23 src/modules/fastpath/coregl_fastpath_egl.c \
24 src/modules/fastpath/coregl_fastpath_gl.c \
26 src/modules/appopt/coregl_appopt.c \
27 src/modules/appopt/coregl_appopt_egl.c \
28 src/modules/appopt/coregl_appopt_gl.c
30 BIN = libCOREGL.so.1.1
32 OBJECTS = $(SOURCES:.c=.o)
35 ln -sf $(BIN) lib/libEGL.so.1.4
36 ln -sf $(BIN) lib/libGLESv2.so.2.0
37 cp src/headers/egl.h include/EGL/def_egl.h
38 cp src/headers/gl.h include/GLES2/def_gl.h
39 cp src/headers/sym_egl.h include/EGL/sym_egl.h
40 cp src/headers/sym_gl.h include/GLES2/sym_gl.h
41 # ln -sf `readlink -f /usr/lib/libEGL.so` lib/libEGL_drv.so
42 # ln -sf `readlink -f /usr/lib/libGLESv2.so` lib/libGLESv2_drv.so
46 $(CC) -shared -o lib/$(BIN) $(OBJECTS) $(LDFLAGS)
49 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
52 rm -f $(OBJECTS) lib/$(BIN)