summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2016-02-06 11:07:16 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2016-02-06 11:07:16 +0100
commitb65b7424030628a73c79999fc7c331a3032dbc96 (patch)
tree6f6cad031446aa5e53c197d6b2057ef592d086f3
parentd521cc0e83b279f4cd7a10a1704b8f36827a118d (diff)
downloadglslview-b65b7424030628a73c79999fc7c331a3032dbc96.tar
glslview-b65b7424030628a73c79999fc7c331a3032dbc96.zip
Makefile improvements
-rw-r--r--Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 3826d3e..1b40d7c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,17 @@
all : glslview glslwrite
-USE_INOTIFY = -DUSE_INOTIFY
+ifeq ($(shell uname -s),Linux)
+USE_INOTIFY ?= -DUSE_INOTIFY
+endif
-CFLAGS = -O3 -Wall $(USE_INOTIFY)
-LIBS = -lSDL2 -lGL -lGLEW -lm
+CFLAGS ?= -O3 -Wall
+LIBS := -lSDL2 -lGL -lGLEW -lm
glslview : glslview.c common.c common.h
- $(CC) $(CFLAGS) -o $@ glslview.c common.c $(LIBS)
+ $(CC) $(CFLAGS) $(USE_INOTIFY) -o $@ glslview.c common.c $(LIBS)
glslwrite : glslwrite.c common.c common.h
$(CC) $(CFLAGS) -o $@ glslwrite.c common.c $(LIBS) -lpng
+
+clean :
+ rm -f glslview glslwrite