Hello, people who like to program. I'm having a problem that until now researching in the donkey dad (Google) I could not solve. I am doing a little game as part of the evaluation of programming language 1. I do not know how to properly link (compile) the game, with the SFML library inside the project folder. I have installed SFML on linux (elementary) and am compiling directly for codeblocks, but I want to do a makefile to compile the project so that I can also use the library inside the project folder so that even those who do not have sfml installed on your computer can compile without problems. I know that when sfml is installed we compile more or less like this.
g++ -Wall src/main.cpp src/game.cpp -I include -o bin/app -lsfml-system -lsfml-window -lsfml-graphics
but of this geito only works if the library is installed in the system. Is there a way to make a lib folder and put SFML there and compile it? I hope my doubt has been clear. A hug to everyone.