projects
/
gltest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rename window system and context choice variables
[gltest.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index 52a6495d67aa3a1fc1876fc81fb14e0afdb39637..c84863935c3c5c9c53110e88f995a301ecee1205 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-7,14
+7,18
@@
BINARIES := glxtest egltest glestest eglinfo
all: $(BINARIES)
all: $(BINARIES)
+# choices (not all combinations are valid)
+# windowing system WIN_{GLX,EGL}
+# the kind of context CON_{GL1,GLES2}
+
glxtest: $(COMMON_SRC) $(COMMON_HDR) glutil_gl1.cpp glxbackend.cpp glxbackend.h
glxtest: $(COMMON_SRC) $(COMMON_HDR) glutil_gl1.cpp glxbackend.cpp glxbackend.h
- g++ $(FLAGS) -D
USE_GLX
$(COMMON_SRC) glutil_gl1.cpp glxbackend.cpp -lGL -lX11 -lboost_program_options -o glxtest
+ g++ $(FLAGS) -D
WIN_GLX -DCON_GL1
$(COMMON_SRC) glutil_gl1.cpp glxbackend.cpp -lGL -lX11 -lboost_program_options -o glxtest
egltest: $(COMMON_SRC) $(COMMON_HDR) glutil_gl1.cpp eglbackend.cpp eglbackend.h
egltest: $(COMMON_SRC) $(COMMON_HDR) glutil_gl1.cpp eglbackend.cpp eglbackend.h
- g++ $(FLAGS) -D
USE_EGL
$(COMMON_SRC) glutil_gl1.cpp eglbackend.cpp -lEGL -lGL -lX11 -lboost_program_options -o egltest
+ g++ $(FLAGS) -D
WIN_EGL -DCON_GL1
$(COMMON_SRC) glutil_gl1.cpp eglbackend.cpp -lEGL -lGL -lX11 -lboost_program_options -o egltest
glestest: $(COMMON_SRC) $(COMMON_HDR) glutil_gl2.cpp eglbackend.cpp eglbackend.h
glestest: $(COMMON_SRC) $(COMMON_HDR) glutil_gl2.cpp eglbackend.cpp eglbackend.h
- g++ $(FLAGS) -D
USE_EGL -DUSE_GLES
$(COMMON_SRC) glutil_gl2.cpp eglbackend.cpp -lEGL -lGLESv2 -lX11 -lboost_program_options -o glestest
+ g++ $(FLAGS) -D
WIN_EGL -DCON_GLES2
$(COMMON_SRC) glutil_gl2.cpp eglbackend.cpp -lEGL -lGLESv2 -lX11 -lboost_program_options -o glestest
eglinfo: eglinfo.c
gcc $(FLAGS) eglinfo.c -lEGL -lGL -lX11 -o eglinfo
eglinfo: eglinfo.c
gcc $(FLAGS) eglinfo.c -lEGL -lGL -lX11 -o eglinfo