mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 14:43:01 +02:00
feat: Added compilation flags
This commit is contained in:
parent
a9a94b8f43
commit
87fa613263
Binary file not shown.
@ -99,6 +99,8 @@ void Game::processEvents()
|
||||
case sf::Event::Closed:
|
||||
mWindow.close();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
@ -1,5 +1,8 @@
|
||||
CXXFLAGS = -Wextra -Wall -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wstrict-overflow=5 -Wwrite-strings -Wcast-qual -Wunreachable-code -pedantic -Wswitch-default
|
||||
# https://stackoverflow.com/a/3376483
|
||||
|
||||
compile:./game.cpp
|
||||
g++ -c ./game.cpp
|
||||
g++ $(CXXFLAGS) -c ./game.cpp
|
||||
g++ game.o -o app -lsfml-graphics -lsfml-window -lsfml-system
|
||||
|
||||
run:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user