no-thread option, coalesced tunnel lut, more accurate fps counter
[fbgfx] / Makefile
1 src = $(wildcard src/*.c)
2 obj = $(src:.c=.o)
3 bin = fbgfx
4
5 CFLAGS = -pedantic -Wall -g -O3
6 LDFLAGS = -limago -lm $(ldflags_pthread)
7
8 ifeq ($(NOTHREADS), 1)
9         CFLAGS += -DNO_THREADS
10 else
11         ldflags_pthread = -lpthread
12 endif
13
14 $(bin): $(obj)
15         $(CC) -o $@ $(obj) $(LDFLAGS)
16
17 .PHONY: clean
18 clean:
19         rm -f $(obj) $(bin)