no-thread option, coalesced tunnel lut, more accurate fps counter
[fbgfx] / Makefile
index cf6bb9d..7ead672 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,8 +2,14 @@ src = $(wildcard src/*.c)
 obj = $(src:.c=.o)
 bin = fbgfx
 
-CFLAGS = -pedantic -Wall -g
-LDFLAGS = -limago -lm
+CFLAGS = -pedantic -Wall -g -O3
+LDFLAGS = -limago -lm $(ldflags_pthread)
+
+ifeq ($(NOTHREADS), 1)
+       CFLAGS += -DNO_THREADS
+else
+       ldflags_pthread = -lpthread
+endif
 
 $(bin): $(obj)
        $(CC) -o $@ $(obj) $(LDFLAGS)