projects
/
fbgfx
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
no-thread option, coalesced tunnel lut, more accurate fps counter
[fbgfx]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
7882958
..
7ead672
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-2,7
+2,14
@@
src = $(wildcard src/*.c)
obj = $(src:.c=.o)
bin = fbgfx
obj = $(src:.c=.o)
bin = fbgfx
-CFLAGS = -pedantic -Wall -g
+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)
$(bin): $(obj)
$(CC) -o $@ $(obj) $(LDFLAGS)