Merge pull request #23 from vanfanel/master

Add Rpi2 platform defines.
This commit is contained in:
Twinaphex 2016-02-25 20:10:53 +01:00
commit 1ce0cc74c1

View File

@ -180,6 +180,17 @@ else ifeq ($(platform), wii)
EXTRA_INCLUDES := -I$(DEVKITPRO)/libogc/include
FLAGS += -DHAVE_MKDIR
STATIC_LINKING = 1
else ifeq ($(platform), rpi2)
TARGET := $(TARGET_NAME).so
fpic := -fPIC
SHARED := -shared -Wl,--no-undefined -Wl,--version-script=link.T
CC = gcc
LDFLAGS += $(PTHREAD_FLAGS)
FLAGS += $(PTHREAD_FLAGS) -DHAVE_MKDIR
IS_X86 = 0
FLAGS += -DARM -marm -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -funsafe-math-optimizations
FLAGS += -fomit-frame-pointer -ffast-math
HAVE_NEON = 1
else ifneq (,$(findstring armv,$(platform)))
TARGET := $(TARGET_NAME).so
fpic := -fPIC