summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2016-02-02 08:20:15 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2016-02-02 08:21:24 +0100
commitd28929a69b80f2efa0d0c957761ce81cf0e50f51 (patch)
treefbffd4f1248c45fb123c1b6df78838e8fcb59de3 /Makefile
parentbf44fa581082fe59f165ad55e2545d06eb2310bf (diff)
downloadglslview-d28929a69b80f2efa0d0c957761ce81cf0e50f51.tar
glslview-d28929a69b80f2efa0d0c957761ce81cf0e50f51.zip
Add reload support (using inotify)
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