Merge "[Trace] Add 'MAX elapsed time' at API tracing module"
[platform/core/uifw/coregl.git] / Makefile
1 CC = gcc
2
3 CFLAGS = -g -O2 -fvisibility=hidden -fPIC -Wall -std=c99
4
5
6 LDFLAGS = -g -O2 -fvisibility=hidden -Wall -std=c99 -ldl -lpthread
7
8
9 SOURCES = \
10                 src/coregl.c \
11                 src/coregl_thread_pthread.c \
12                 src/coregl_trace.c \
13                 src/coregl_export.c \
14                 src/coregl_export_egl.c \
15                 src/coregl_export_gl.c \
16                 src/modules/coregl_module.c \
17                 \
18                 src/modules/tracepath/coregl_tracepath.c \
19                 src/modules/tracepath/coregl_tracepath_egl.c \
20                 src/modules/tracepath/coregl_tracepath_gl.c \
21                 \
22                 src/modules/fastpath/coregl_fastpath.c \
23                 src/modules/fastpath/coregl_fastpath_egl.c \
24                 src/modules/fastpath/coregl_fastpath_gl.c \
25                 \
26                 src/modules/appopt/coregl_appopt.c \
27                 src/modules/appopt/coregl_appopt_egl.c \
28                 src/modules/appopt/coregl_appopt_gl.c
29
30 BIN = libCOREGL.so.1.1
31
32 OBJECTS = $(SOURCES:.c=.o)
33
34 all : $(BIN)
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
43
44 $(BIN) : $(OBJECTS)
45         @mkdir -p lib
46         $(CC) -shared -o lib/$(BIN) $(OBJECTS) $(LDFLAGS)
47
48 %.o : %.c
49         $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
50
51 clean:
52         rm -f $(OBJECTS) lib/$(BIN)
53