From d28929a69b80f2efa0d0c957761ce81cf0e50f51 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 2 Feb 2016 08:20:15 +0100 Subject: Add reload support (using inotify) --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3