mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-21 10:42:17 +01: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:
|
case sf::Event::Closed:
|
||||||
mWindow.close();
|
mWindow.close();
|
||||||
break;
|
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
|
compile:./game.cpp
|
||||||
g++ -c ./game.cpp
|
g++ $(CXXFLAGS) -c ./game.cpp
|
||||||
g++ game.o -o app -lsfml-graphics -lsfml-window -lsfml-system
|
g++ game.o -o app -lsfml-graphics -lsfml-window -lsfml-system
|
||||||
|
|
||||||
run:
|
run:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user