-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
27 lines (19 loc) · 820 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
CC=gcc
#NODEBUG=-DNDEBUG
CFLAGS += -g -I/usr/local/include -Wall -std=gnu99 $(shell pkg-config --cflags glfw3) ${NODEBUG}
LDFLAGS += -lm -L/usr/local/lib -llo -lpthread $(shell pkg-config --libs glfw3)
ifeq ($(shell uname -s), Darwin)
LDFLAGS += -framework OpenGL -framework Cocoa
CFLAGS += -DMAC_OSX
else
LDFLAGS += -lGL -ldl -lX11 -lXxf86vm -lXcursor -lXinerama -lXrandr -lXi -lepoxy -lm
endif
SOURCES=weltfrieden.c queue.c server.c layers.c thpool.c jobqueue.c
OBJECTS=$(SOURCES:.c=.o)
all: weltfrieden
clean:
rm -f *.o *~ weltfrieden
weltfrieden: $(OBJECTS) Makefile
$(CC) $(OBJECTS) $(CFLAGS) $(LDFLAGS) -o $@
test:
valgrind --suppressions=valgrind-opengl-10-11-manual.supp --suppressions=valgrind-opengl-10-11.supp --leak-check=full --gen-suppressions=all -v -d ./weltfrieden -w 256 -h 256 --cache