3 COMMON_SRC = gltest.cpp glwindow.cpp
4 COMMON_HDR = glwindow.h
6 all: glxtest egltest eglinfo
8 glxtest: $(COMMON_SRC) $(COMMON_HDR) glxbackend.cpp glxbackend.h
9 g++ $(FLAGS) -DUSE_GLX $(COMMON_SRC) glxbackend.cpp -lGL -lX11 -lboost_program_options -o glxtest
11 egltest: $(COMMON_SRC) $(COMMON_HDR) eglbackend.cpp eglbackend.h
12 g++ $(FLAGS) -DUSE_EGL $(COMMON_SRC) eglbackend.cpp -lEGL -lGL -lX11 -lboost_program_options -o egltest
15 gcc $(FLAGS) eglinfo.c -lEGL -lGL -lX11 -o eglinfo
18 rm -f glxtest egltest eglinfo