diff --git a/tetris/Makefile b/tetris/Makefile index 4f6ae24..09117e5 100644 --- a/tetris/Makefile +++ b/tetris/Makefile @@ -13,18 +13,16 @@ TETRIS_OBJECTS = tetris.o scenes.o config.o functions.o global_vars.o ifeq ($(UNAME_S),Linux) TETRIS_OBJECTS += libsdlpp.so -SDLLIB = libsdlpp endif ifeq ($(UNAME_S),Darwin) TETRIS_OBJECTS += libsdlpp.dylib -SDLLIB = sdlpp endif .PHONY: default default: tetris tetris: ${TETRIS_OBJECTS} - $(CXX) $(CFLAGS) -o $@ $^ ${LDFLAGS} -L $(shell pwd) -l${SDLLIB} + $(CXX) $(CFLAGS) -o $@ $^ ${LDFLAGS} -L $(shell pwd) -lsdlpp tetris.o: tetris.cpp ../sdlpp/sdlpp.hpp config.hpp custom_classes.hpp scenes.hpp global_vars.hpp functions.hpp $(CXX) $(CFLAGS) -c -o $@ $<