git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
All of the SDL2 graphics stuff.
[ipdf/code.git]
/
src
/
Makefile
diff --git
a/src/Makefile
b/src/Makefile
index
6ab41c8
..
59e111b
100644
(file)
--- a/
src/Makefile
+++ b/
src/Makefile
@@
-1,9
+1,10
@@
#Makefile
CXX = g++ -std=gnu++0x -Wall -Werror -Wshadow -pedantic -g
#Makefile
CXX = g++ -std=gnu++0x -Wall -Werror -Wshadow -pedantic -g
-OBJ = log.o main.o document.o view.o
-LIB =
#-lSDL2
+OBJ = log.o main.o document.o view.o
screen.o
+LIB =
`sdl2-config --libs` -lGL
OBJPATHS = $(OBJ:%=../obj/%)
DEPS := $(OBJPATHS:%.o=%.d)
OBJPATHS = $(OBJ:%=../obj/%)
DEPS := $(OBJPATHS:%.o=%.d)
+CFLAGS += `sdl2-config --cflags`
LINKOBJ = $(OBJPATHS)
LINKOBJ = $(OBJPATHS)
@@
-19,7
+20,7
@@
$(BIN) : $(LINKOBJ)
../obj/%.o : %.cpp
@mkdir -p $(dir $@)
../obj/%.o : %.cpp
@mkdir -p $(dir $@)
- $(CXX) -c -MMD -o $@ $<
+ $(CXX)
$(CFLAGS)
-c -MMD -o $@ $<
-include $(DEPS)
-include $(DEPS)
UCC
git Repository :: git.ucc.asn.au