summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c79d1a5..11a990e 100644
--- a/Makefile
+++ b/Makefile
@@ -3,9 +3,10 @@ all : glslview glslwrite
USE_INOTIFY = -DUSE_INOTIFY
CFLAGS = -O3 -Wall $(USE_INOTIFY)
+LIBS = -lSDL2 -lGL -lGLEW -lm
glslview : glslview.c
- $(CC) $(CFLAGS) -o $@ $^ -lSDL2 -lGL -lGLEW
+ $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
glslwrite : glslview.c
- $(CC) $(CFLAGS) -o $@ $^ -DGLSLWRITE -lSDL2 -lpng -lGL -lGLEW
+ $(CC) $(CFLAGS) -DGLSLWRITE -o $@ $^ $(LIBS) -lpng