add opengl-es-20 pkgconfig
authorMinsu Han <minsu81.han@samsung.com>
Wed, 9 May 2012 00:55:43 +0000 (09:55 +0900)
committerMinsu Han <minsu81.han@samsung.com>
Wed, 9 May 2012 00:55:43 +0000 (09:55 +0900)
Change-Id: I20f4555ec9991b6d708f4fd60203aebace5c5df4

Makefile

index cc57583..1a7240b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,9 @@
 CC = gcc
 
 CFLAGS = -g -O2 -fvisibility=hidden -fPIC -Wall -std=c99 \
-       -D_COREGL_EMBEDDED_GL \
+       -D_COREGL_EMBEDDED_GL `pkg-config --cflags opengl-es-20`\
 
-LDFLAGS = -g -O2 -fvisibility=hidden -Wall -std=c99 -lpthread
+LDFLAGS = -g -O2 -fvisibility=hidden -Wall -std=c99 -lpthread `pkg-config --libs opengl-es-20`
 
 SOURCES = \
                src/coregl.c \
@@ -17,11 +17,13 @@ SOURCES = \
                src/coregl_fastpath_egl.c \
                src/coregl_fastpath_gl.c
 
-BIN = libCOREGL.so
+BIN = libCOREGL.so.1.1
 
 OBJECTS = $(SOURCES:.c=.o)
 
 all : $(BIN)
+       ln -sf $(BIN) lib/libCOREGL.so
+       ln -sf $(BIN) lib/libCOREGL.so.1
        ln -sf $(BIN) lib/libEGL.so.1.4
        ln -sf $(BIN) lib/libGLESv2.so.2.0
        cp src/headers/egl.h include/EGL/def_egl.h