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