TETRIS: fix compilation on linux
This commit is contained in:
parent
afc836902b
commit
5f40ffe4e1
@ -13,18 +13,16 @@ TETRIS_OBJECTS = tetris.o scenes.o config.o functions.o global_vars.o
|
|||||||
|
|
||||||
ifeq ($(UNAME_S),Linux)
|
ifeq ($(UNAME_S),Linux)
|
||||||
TETRIS_OBJECTS += libsdlpp.so
|
TETRIS_OBJECTS += libsdlpp.so
|
||||||
SDLLIB = libsdlpp
|
|
||||||
endif
|
endif
|
||||||
ifeq ($(UNAME_S),Darwin)
|
ifeq ($(UNAME_S),Darwin)
|
||||||
TETRIS_OBJECTS += libsdlpp.dylib
|
TETRIS_OBJECTS += libsdlpp.dylib
|
||||||
SDLLIB = sdlpp
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: default
|
.PHONY: default
|
||||||
default: tetris
|
default: tetris
|
||||||
|
|
||||||
tetris: ${TETRIS_OBJECTS}
|
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
|
tetris.o: tetris.cpp ../sdlpp/sdlpp.hpp config.hpp custom_classes.hpp scenes.hpp global_vars.hpp functions.hpp
|
||||||
$(CXX) $(CFLAGS) -c -o $@ $<
|
$(CXX) $(CFLAGS) -c -o $@ $<
|
||||||
|
Loading…
Reference in New Issue
Block a user