summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0023a99..9e5304e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
all : glslview glslwrite
glslview : glslview.c
- gcc -o glslview glslview.c -lSDL2 -lGL -lGLEW -Wall
+ $(CC) -o $@ $^ -lSDL2 -lGL -lGLEW -Wall
-glslwrite : glslwrite.c
- gcc -o glslwrite glslwrite.c -lSDL2 -lpng -lGL -lGLEW -Wall
+glslwrite : glslview.c
+ $(CC) -o $@ $^ -DGLSLWRITE -lSDL2 -lpng -lGL -lGLEW -Wall