1
Hello people who like to program. I have a problem that so far searching on the father of donkeys (Google) I could not solve. I’m doing a little game as part of the evaluation of the programming language course 1. but I don’t know how to link (compile) correctly the game, with the SFML library inside the project folder. I installed SFML on linux (Elementary) and am compiling directly by codeblocks, only I want to make a Makefile to compile the project in order to also use the library within the project folder, so that even those who do not have the sfml installed on the computer can compile without problems. I know that when the 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 it only works if the library is installed in the system. Is there any way I can make a lib folder and put SFML there and compile it? I hope my doubt was clear. a hug to all.