diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2016-02-06 11:07:16 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2016-02-06 11:07:16 +0100 |
commit | b65b7424030628a73c79999fc7c331a3032dbc96 (patch) | |
tree | 6f6cad031446aa5e53c197d6b2057ef592d086f3 /Makefile | |
parent | d521cc0e83b279f4cd7a10a1704b8f36827a118d (diff) | |
download | glslview-b65b7424030628a73c79999fc7c331a3032dbc96.tar glslview-b65b7424030628a73c79999fc7c331a3032dbc96.zip |
Makefile improvements
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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 |