mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
420b7913d4
2820ab0b51 Merge pull request #1076 from KhronosGroup/bitcast-pre-330-glsl 63bcbd511e GLSL: Need extension to use bitcast on GLSL < 330. 9f3bebe3d0 Merge pull request #1075 from lifpan/master b11c20fc1d Remove unreasonable assertion for OpTypeImage Sampled parameter. 1a592b7c0f Merge pull request #1067 from cdavis5e/msl-scalar-block-layout 28454facbb MSL: Handle packed matrices. ea5c0ed82f MSL: Fix alignment of packed types. 44f688bf0b Merge pull request #1070 from KhronosGroup/fix-1066 25c74b324e Forget loop variable enables after emitting block chain. 6b010e0cbc Merge pull request #1069 from KhronosGroup/fix-1053 f6f849397e MSL: Re-roll array expressions in initializers. e5fa7edfd6 MSL: Support scalar block layout. git-subtree-dir: deps/SPIRV-Cross git-subtree-split: 2820ab0b51bf5e4187435d904b34e762b988f48b
47 lines
1.3 KiB
Makefile
47 lines
1.3 KiB
Makefile
include version.all
|
|
|
|
DEBUG = 0
|
|
|
|
CC = $(PNDSDK)/bin/arm-none-linux-gnueabi-gcc
|
|
LD = $(PNDSDK)/bin/arm-none-linux-gnueabi-gcc -o
|
|
|
|
TARGET := retroarch-pandora
|
|
|
|
LDDIRS = -L. -L$(PNDSDK)/usr/lib
|
|
INCDIRS = -I. -I$(PNDSDK)/usr/include
|
|
|
|
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
|
|
|
|
LIBS = -lGLESv2 -lEGL -ldl -lm -lpthread -lrt -lasound
|
|
DEFINES = -std=gnu99 -DHAVE_THREADS -DHAVE_GETOPT_LONG=1 -DHAVE_GRIFFIN -DRARCH_INTERNAL
|
|
DEFINES += -D__ARM_ARCH_6__ -DHAVE_OPENGL -DHAVE_OPENGLES -DHAVE_OPENGLES2 -DHAVE_GLSL -DHAVE_DYNAMIC -DHAVE_RPNG -DHAVE_RJPEG -DWANT_ZLIB -DHAVE_OVERLAY -DHAVE_VIDEO_LAYOUT -DHAVE_ALSA -DHAVE_ZLIB -D__linux__
|
|
DEFINES += $(INCDIRS)
|
|
DEFINES += -D__OPENPANDORA__ -DPANDORA
|
|
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
|