X-Git-Url: https://git.ralfj.de/gltest.git/blobdiff_plain/aa4575e1aa768daff8ca10c7a8a06aa0603e998f..06ad8dcac2fac86d1f6715a51b50356a68ffe362:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index 3fc8800..52a6495 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,23 @@ -FLAGS := -Wall +FLAGS := -Wall -g -O1 COMMON_SRC = gltest.cpp glwindow.cpp -COMMON_HDR = glwindow.h +COMMON_HDR = glwindow.h glutil.h -all: glxtest egltest +BINARIES := glxtest egltest glestest eglinfo -glxtest: $(COMMON_SRC) $(COMMON_HDR) glxbackend.cpp glxbackend.h - g++ $(FLAGS) -DUSE_GLX $(COMMON_SRC) glxbackend.cpp -lGL -lX11 -o glxtest +all: $(BINARIES) -egltest: $(COMMON_SRC) $(COMMON_HDR) eglbackend.cpp eglbackend.h - g++ $(FLAGS) -DUSE_EGL $(COMMON_SRC) eglbackend.cpp -lEGL -lGL -lX11 -o egltest +glxtest: $(COMMON_SRC) $(COMMON_HDR) glutil_gl1.cpp glxbackend.cpp glxbackend.h + g++ $(FLAGS) -DUSE_GLX $(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 + g++ $(FLAGS) -DUSE_EGL $(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 + g++ $(FLAGS) -DUSE_EGL -DUSE_GLES $(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 clean: - rm -f glxtest egltest + rm -f $(BINARIES)