projects
/
winnie
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed focus: get_window_at_pos now searches back to front in root_window
[winnie]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
3ced08b
..
4242187
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,16
+1,24
@@
-src = $(wildcard src/*.cc)
+src = $(wildcard src/*.cc) $(wildcard src/fbdev/*.cc) $(wildcard src/sdl/*.cc)
obj = $(src:.cc=.o)
dep = $(obj:.o=.d)
bin = winnie
obj = $(src:.cc=.o)
dep = $(obj:.o=.d)
bin = winnie
-
dbg = -g
opt = -O0
dbg = -g
opt = -O0
-inc = -Isrc -Isrc/shaders -Isrc/math
+inc = -Isrc
+
+backend = SDL
+
+ifeq ($(backend), SDL)
+ def = -DWINNIE_SDL
+ libs = -lSDL
+else
+ def = -DWINNIE_FBDEV
+endif
CXX = g++
CXX = g++
-CXXFLAGS = -pedantic -Wall $(dbg) $(opt) $(inc)
-#LDFLAGS =
+CXXFLAGS = -pedantic -Wall $(dbg) $(opt) $(inc) $(def) `freetype-config --cflags`
+LDFLAGS = $(libs) `freetype-config --libs`
$(bin): $(obj)
$(CXX) -o $@ $(obj) $(LDFLAGS)
$(bin): $(obj)
$(CXX) -o $@ $(obj) $(LDFLAGS)