From 984b02a874d77d9b79a80cc09f6b9b56dd12ca31 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 1 Feb 2016 14:39:58 +0100 Subject: Unify glwlview and glslwrite code --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0023a99..9e5304e 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ all : glslview glslwrite glslview : glslview.c - gcc -o glslview glslview.c -lSDL2 -lGL -lGLEW -Wall + $(CC) -o $@ $^ -lSDL2 -lGL -lGLEW -Wall -glslwrite : glslwrite.c - gcc -o glslwrite glslwrite.c -lSDL2 -lpng -lGL -lGLEW -Wall +glslwrite : glslview.c + $(CC) -o $@ $^ -DGLSLWRITE -lSDL2 -lpng -lGL -lGLEW -Wall -- cgit v1.2.3