summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2016-02-01 14:39:58 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2016-02-01 14:39:58 +0100
commit984b02a874d77d9b79a80cc09f6b9b56dd12ca31 (patch)
tree7ff6acfc61bc18ce258ca0fae2121a30fec3641d /Makefile
parent9d3cdc7f5ee96c3b2a9342e44b62102f5b05be3b (diff)
downloadglslview-984b02a874d77d9b79a80cc09f6b9b56dd12ca31.tar
glslview-984b02a874d77d9b79a80cc09f6b9b56dd12ca31.zip
Unify glwlview and glslwrite code
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