CXX=g++ CXXFLAGS=-Wall -g -std=c++11 -I/opt/sfml2/include SFML_LIBS=-L/opt/sfml2/lib -lsfml-graphics -lsfml-window -lsfml-system -lsfml-audio all: zombie_shooter zombie_shooter: src/main.o src/core.o $(CXX) $(CXXFLAGS) -o $@ $^ $(SFML_LIBS) %.o: %.cpp %.hpp $(CXX) $(CXXFLAGS) -c $< -o $@ clean: rm -f zombie_shooter *.o