XX = g++ SDL_LIB = -L/usr/local/lib -lSDL2 -Wl,-rpath=/usr/local/lib SDL_INCLUDE = -I/usr/include CXXFLAGS = -Wall -c -std=c++11 $(SDL_INCLUDE) LDFLAGS = $(SDL_LIB) EXE = fungi all: $(EXE) $(EXE): fungi.o $(CXX) $< $(LDFLAGS) -o $@ main.o: fungi.cpp $(CXX) $(CXXFLAGS) $< -o $@ clean: rm *.o && rm $(EXE)