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