From 5f40ffe4e1c86e1c77d7fc1029434fd9d2e30e2c Mon Sep 17 00:00:00 2001 From: zvon Date: Sun, 22 Nov 2020 22:01:20 +0100 Subject: [PATCH] TETRIS: fix compilation on linux --- tetris/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 $@ $<