2017-09-25 23:05:43 +00:00
|
|
|
include version.all
|
2013-07-07 17:22:54 +00:00
|
|
|
|
2021-10-14 13:57:28 +00:00
|
|
|
DEBUG = 0
|
2013-07-07 17:22:54 +00:00
|
|
|
|
2021-10-14 13:57:28 +00:00
|
|
|
CC = $(PNDSDK)/bin/arm-none-linux-gnueabi-gcc
|
|
|
|
LD = $(PNDSDK)/bin/arm-none-linux-gnueabi-gcc -o
|
2013-07-07 17:22:54 +00:00
|
|
|
|
2021-10-14 13:57:28 +00:00
|
|
|
TARGET := retroarch-pandora
|
2013-07-07 17:22:54 +00:00
|
|
|
|
2021-10-14 13:57:28 +00:00
|
|
|
LDDIRS = -L. -L$(PNDSDK)/usr/lib
|
|
|
|
INCDIRS = -I. -I$(PNDSDK)/usr/include
|
2013-07-07 17:22:54 +00:00
|
|
|
|
2021-10-14 13:57:28 +00:00
|
|
|
OBJ = griffin/griffin.o audio/resamplers/sinc_resampler_neon.o libretro-common/conversion/s16_to_float_neon.o libretro-common/conversion/float_to_s16_neon.o
|
|
|
|
LDFLAGS = -L$(PNDSDK)/usr/lib -Wl,-rpath,$(PNDSDK)/usr/lib
|
2013-07-07 17:22:54 +00:00
|
|
|
|
2021-10-14 13:57:28 +00:00
|
|
|
LIBS = -lGLESv2 -lEGL -ldl -lm -lpthread -lrt -lasound
|
|
|
|
DEFINES = -std=gnu99
|
|
|
|
DEFINES += -DHAVE_THREADS \
|
|
|
|
-DHAVE_GETOPT_LONG=1 \
|
|
|
|
-DHAVE_GRIFFIN \
|
|
|
|
-DRARCH_INTERNAL \
|
|
|
|
-DHAVE_CONFIGFILE \
|
|
|
|
-DHAVE_PATCH \
|
|
|
|
-DHAVE_SCREENSHOTS \
|
|
|
|
-DHAVE_REWIND \
|
|
|
|
-D__ARM_ARCH_6__ \
|
|
|
|
-DHAVE_OPENGL \
|
|
|
|
-DHAVE_OPENGLES \
|
|
|
|
-DHAVE_OPENGLES2 \
|
|
|
|
-DHAVE_GLSL \
|
|
|
|
-DHAVE_DYNAMIC \
|
|
|
|
-DHAVE_RPNG \
|
|
|
|
-DHAVE_RJPEG \
|
|
|
|
-DHAVE_OVERLAY \
|
|
|
|
-DHAVE_ALSA \
|
|
|
|
-DHAVE_ZLIB \
|
|
|
|
-D__linux__ \
|
|
|
|
-DHAVE_DSP_FILTER \
|
|
|
|
-DHAVE_VIDEO_FILTER \
|
|
|
|
-D__OPENPANDORA__ \
|
|
|
|
-DPANDORA
|
2013-07-07 17:22:54 +00:00
|
|
|
DEFINES += $(INCDIRS)
|
|
|
|
DEFINES += -marm -march=armv7-a -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -ftree-vectorize
|
|
|
|
|
|
|
|
ifeq ($(DEBUG), 1)
|
|
|
|
OPTIMIZE_LV := -O0 -g
|
|
|
|
else
|
|
|
|
OPTIMIZE_LV := -O3
|
|
|
|
endif
|
|
|
|
|
|
|
|
all: $(TARGET)
|
|
|
|
|
|
|
|
CFLAGS := $(OPTIMIZE_LV) $(DEFINES)
|
|
|
|
|
|
|
|
$(TARGET): $(OBJ)
|
|
|
|
$(CC) -o $@ $(OBJ) $(LDFLAGS) $(LDDIRS) $(LIBS)
|
|
|
|
|
|
|
|
%.o: %.S
|
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
|
|
|
|
%.o: %.c config.h
|
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(TARGET)
|
|
|
|
rm -f $(OBJ)
|
|
|
|
|
|
|
|
.PHONY: clean
|