projects
/
gltest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for OpenGL 3 contexts
[gltest.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index d9c3030e00eaba39f569752ea9670bfe19a252db..c69fff735100438408997aa797725410ca9bfa49 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-4,13
+4,13
@@
COMMON_SRC = gltest.cpp glwindow.cpp
COMMON_HDR = glwindow.h glutil.h
COMMON_LD = -lX11 -lboost_program_options
COMMON_HDR = glwindow.h glutil.h
COMMON_LD = -lX11 -lboost_program_options
-BINARIES := glxtest egltest glx2test egl2test gl
es
test eglinfo
+BINARIES := glxtest egltest glx2test egl2test gl
x3test gles2
test eglinfo
all: $(BINARIES)
# choices (not all combinations are valid)
# windowing system: WIN_{GLX,EGL}
all: $(BINARIES)
# choices (not all combinations are valid)
# windowing system: WIN_{GLX,EGL}
-# the kind of context: CON_{GL1,GLES2}
+# the kind of context: CON_{GL1,GL
3,GL
ES2}
# the API used to draw: compile in glutil_gl1.cpp or glutil_gl2.cpp
glxtest: $(COMMON_SRC) $(COMMON_HDR) glutil_gl1.cpp glxbackend.cpp glxbackend.h
# the API used to draw: compile in glutil_gl1.cpp or glutil_gl2.cpp
glxtest: $(COMMON_SRC) $(COMMON_HDR) glutil_gl1.cpp glxbackend.cpp glxbackend.h
@@
-25,7
+25,10
@@
glx2test: $(COMMON_SRC) $(COMMON_HDR) glutil_gl2.cpp glxbackend.cpp glxbackend.h
egl2test: $(COMMON_SRC) $(COMMON_HDR) glutil_gl2.cpp eglbackend.cpp eglbackend.h
g++ $(CFLAGS) -DWIN_EGL -DCON_GL1 $^ -lEGL -lGL $(COMMON_LD) -o $@
egl2test: $(COMMON_SRC) $(COMMON_HDR) glutil_gl2.cpp eglbackend.cpp eglbackend.h
g++ $(CFLAGS) -DWIN_EGL -DCON_GL1 $^ -lEGL -lGL $(COMMON_LD) -o $@
-glestest: $(COMMON_SRC) $(COMMON_HDR) glutil_gl2.cpp eglbackend.cpp eglbackend.h
+glx3test: $(COMMON_SRC) $(COMMON_HDR) glutil_gl2.cpp glxbackend.cpp glxbackend.h
+ g++ $(CFLAGS) -DWIN_GLX -DCON_GL3 $^ -lGL $(COMMON_LD) -o $@
+
+gles2test: $(COMMON_SRC) $(COMMON_HDR) glutil_gl2.cpp eglbackend.cpp eglbackend.h
g++ $(CFLAGS) -DWIN_EGL -DCON_GLES2 $^ -lEGL -lGLESv2 $(COMMON_LD) -o $@
eglinfo: eglinfo.c
g++ $(CFLAGS) -DWIN_EGL -DCON_GLES2 $^ -lEGL -lGLESv2 $(COMMON_LD) -o $@
eglinfo: eglinfo.c