aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorneonloop2021-08-07 20:28:34 +0000
committerneonloop2021-08-07 20:28:34 +0000
commit8ad26356f5e92bd396e58290217da55858345a4e (patch)
tree8c08b9e62f36170e36514a4d1f397990e881104e /Makefile
parentb148bcce05254c7ebe0ad855e5f1e958968a0bb9 (diff)
downloadpicoarch-8ad26356f5e92bd396e58290217da55858345a4e.tar.gz
picoarch-8ad26356f5e92bd396e58290217da55858345a4e.tar.bz2
picoarch-8ad26356f5e92bd396e58290217da55858345a4e.zip
Adds generic nearest and smooth scalers
Smooth is slower (10-15%) than a scaler built for a specific resolution. Works well for downscaling and for odd screen ratios until a custom scaler is built. Replaces the snes smooth scaler (outperforms it) and the gba smooth scaler (looks better)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 993b570..785682c 100644
--- a/Makefile
+++ b/Makefile
@@ -9,16 +9,17 @@ OBJS = libpicofe/input.o libpicofe/in_sdl.o libpicofe/linux/in_evdev.o libp
BIN = picoarch
CFLAGS += -Wall
-CFLAGS += -fdata-sections -ffunction-sections -DPICO_HOME_DIR='"/.picoarch/"' -flto -fno-PIC
+CFLAGS += -fdata-sections -ffunction-sections -DPICO_HOME_DIR='"/.picoarch/"' -flto
CFLAGS += -I./ $(shell $(SYSROOT)/usr/bin/sdl-config --cflags)
-LDFLAGS = -lc -ldl -lgcc -lSDL -lasound -lpng -lz -Wl,--gc-sections -flto -fno-PIC
+LDFLAGS = -lc -ldl -lgcc -lm -lSDL -lasound -lpng -lz -Wl,--gc-sections -flto
CORES = gpsp snes9x2002 snes9x2005
ifeq ($(platform), trimui)
OBJS += plat_trimui.o
- CFLAGS += -mcpu=arm926ej-s -mtune=arm926ej-s
+ CFLAGS += -mcpu=arm926ej-s -mtune=arm926ej-s -fno-PIC
+ LDFLAGS += -fno-PIC
else ifeq ($(platform), unix)
OBJS += plat_linux.o