-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
19 lines (17 loc) · 754 Bytes
/
Copy pathMakefile
File metadata and controls
19 lines (17 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
run:
g++ -I src/include -L src/lib -o main.exe *.cpp *.h scenes/*.cpp scenes/*.h entities/*.cpp entities/*.h -lmingw32 -lSDL2main -lSDL2 -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread -Wl,-Bdynamic
./main.exe
#OLD:
debug:
g++ -g -I src/include -L src/lib -o main.exe *.cpp *.h scenes/*.cpp scenes/*.h -lmingw32 -lSDL2main -lSDL2
gdb main.exe
push message=none:
@if [$(message) = "none"]; then\
echo "Uh oh!";\
fi
echo message is $(message)
run-ubuntu:
g++ -I src/include -L src/lib -o main.o main.cpp Renderer.cpp Renderer.h InputHandler.cpp InputHandler.h -lSDL2main -lSDL2
./main.o
run-valgrind:
g++ -I src/include -L src/lib -o main.o main.cpp Renderer.cpp Renderer.h InputHandler.cpp InputHandler.h -lSDL2main -lSDL2