diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2009-10-02 15:33:55 +0800 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-11-05 20:04:21 -0700 |
commit | 5b85cada603ff0325dcf852f159837086a5bda14 (patch) | |
tree | 4083fc89d53537e105d0d017f4f4655417feced4 /progs/es2/xegl/Makefile | |
parent | d14ac1073cda7ea4f623f312eb469554c3041315 (diff) |
progs/es: OpenGL ES 1.x and 2.X demo programs.
The demo programs are written by Brian Paul, and cherry-picked from
opengl-es branch. Several minor issues such as a linking problem are
fixed.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Diffstat (limited to 'progs/es2/xegl/Makefile')
-rw-r--r-- | progs/es2/xegl/Makefile | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/progs/es2/xegl/Makefile b/progs/es2/xegl/Makefile new file mode 100644 index 0000000000..88bb0127f8 --- /dev/null +++ b/progs/es2/xegl/Makefile @@ -0,0 +1,51 @@ +# progs/es2/xegl/Makefile + +TOP = ../../.. +include $(TOP)/configs/current + + +INCLUDE_DIRS = \ + -I$(TOP)/include \ + +HEADERS = $(TOP)/include/GLES/egl.h + + +ES2_LIB_DEPS = \ + $(TOP)/$(LIB_DIR)/libEGL.so \ + $(TOP)/$(LIB_DIR)/libGLESv2.so + + +ES2_LIBS = \ + -L$(TOP)/$(LIB_DIR) -lEGL \ + -L$(TOP)/$(LIB_DIR) -lGLESv2 $(LIBDRM_LIB) -lX11 + +PROGRAMS = \ + es2_info \ + tri + + +.c.o: + $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@ + + + +default: $(PROGRAMS) + + + +es2_info.c: + cp ../../es1/xegl/es1_info.c es2_info.c + +es2_info: es2_info.o $(ES2_LIB_DEPS) + $(CC) $(CFLAGS) es2_info.o $(ES2_LIBS) -o $@ + +tri: tri.o $(ES2_LIB_DEPS) + $(CC) $(CFLAGS) tri.o $(ES2_LIBS) -o $@ + + + +clean: + rm -f *.o *~ + rm -f $(PROGRAMS) + rm -f es2_info.c + |