aboutsummaryrefslogtreecommitdiff
path: root/samples/OpenGL/x11argb_opengl_glsl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'samples/OpenGL/x11argb_opengl_glsl/Makefile')
-rw-r--r--samples/OpenGL/x11argb_opengl_glsl/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/samples/OpenGL/x11argb_opengl_glsl/Makefile b/samples/OpenGL/x11argb_opengl_glsl/Makefile
index b59feea..62e3496 100644
--- a/samples/OpenGL/x11argb_opengl_glsl/Makefile
+++ b/samples/OpenGL/x11argb_opengl_glsl/Makefile
@@ -1,3 +1,10 @@
+.PHONY: all
+
+all: x11argb_opengl_glsl x11argb_opengl_glsl3
+
x11argb_opengl_glsl: x11argb_opengl_glsl.c Makefile
- clang -std=c99 -g3 -o x11argb_opengl_glsl x11argb_opengl_glsl.c -lX11 -lXrender -lGLEW -lm
+ cc -std=c99 -g3 -o x11argb_opengl_glsl x11argb_opengl_glsl.c -lX11 -lXrender -lGLEW -lm
+
+x11argb_opengl_glsl3: x11argb_opengl_glsl.c Makefile
+ cc -std=c99 -g3 -o x11argb_opengl_glsl3 -D USE_GLX_CREATE_CONTEXT_ATTRIB x11argb_opengl_glsl.c -lX11 -lXrender -lGLEW -lm