blob: 1b40d7c827813be78430d9f0319db17500f7215f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
all : glslview glslwrite
ifeq ($(shell uname -s),Linux)
USE_INOTIFY ?= -DUSE_INOTIFY
endif
CFLAGS ?= -O3 -Wall
LIBS := -lSDL2 -lGL -lGLEW -lm
glslview : glslview.c common.c common.h
$(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
|