fix: defines per a compilar en raspberry pi
This commit is contained in:
5
Makefile
5
Makefile
@@ -32,7 +32,7 @@ ifeq ($(OS),Windows_NT)
|
||||
else
|
||||
FixPath = $1
|
||||
SOURCES := $(shell find $(DIR_SOURCES) -name '*.cpp')
|
||||
CXXFLAGS:= -std=c++11 -Wall -Os -ffunction-sections -fdata-sections -Wno-deprecated
|
||||
CXXFLAGS:= -std=c++11 -Wall -Os -ffunction-sections -fdata-sections
|
||||
LDFLAGS := -lSDL2
|
||||
RM = rm -f
|
||||
MKD:= mkdir -p
|
||||
@@ -41,6 +41,7 @@ else
|
||||
LDFLAGS += -lGL
|
||||
endif
|
||||
ifeq ($(UNAME_S),Darwin)
|
||||
CXXFLAGS += -Wno-deprecated
|
||||
LDFLAGS += -framework OpenGL
|
||||
endif
|
||||
endif
|
||||
@@ -117,7 +118,7 @@ print-variables:
|
||||
@echo RM: $(RM)
|
||||
|
||||
raspi:
|
||||
$(CXX) $(SOURCES) -D RASPI $(CXXFLAGS) lSDL2 -o "$(TARGET_FILE)
|
||||
$(CXX) $(SOURCES) -D RASPI $(CXXFLAGS) -lSDL2 -o $(TARGET_FILE)
|
||||
strip -s -R .comment -R .gnu.version "$(TARGET_FILE)_debug" --strip-unneeded
|
||||
|
||||
windows:
|
||||
|
||||
Reference in New Issue
Block a user