I have the following source files:
main.cpp game.cpp TextureManager.cpp GameObject.cpp Map.cpp
and each of them (apart from main.cpp
) has a header file with the same name:
game.h TextureManager.h GameObject.h Map.h
I can now compile my source files through the terminal using the following command:
g++ -std=gnu++11 -o executable main.cpp game.cpp TextureManager.cpp GameObject.cpp Map.cpp -lGL -lSDL2 -lSDL
What the make file should look like to compile the aforementioned source files and also incorporating the libraries and the g++ -std=gnu+11
?