summaryrefslogtreecommitdiff
path: root/Makefile.trimui
diff options
context:
space:
mode:
authorneonloop2021-03-21 16:41:44 +0000
committerneonloop2021-03-21 16:41:44 +0000
commit4c26780f101a12d455ffe900e6a0d5238d1c9552 (patch)
tree8913a7229c15e1ed597b5a128a08aa554150f674 /Makefile.trimui
parent5ef784ab8af08b9629b573b3cfd25f21384771af (diff)
downloadpicogpsp-4c26780f101a12d455ffe900e6a0d5238d1c9552.tar.gz
picogpsp-4c26780f101a12d455ffe900e6a0d5238d1c9552.tar.bz2
picogpsp-4c26780f101a12d455ffe900e6a0d5238d1c9552.zip
Adds a libpicofe frontend and menus
Implements: - fast-forward (toggle) - audio-buffer-based frameskip and frame limiting - color-correction (using the libretro code) - lcd ghosting (using the libretro code) - FPS display - input rebinding - emulator key rebinding - scaling (with the old gpsp filters and drowsnug's scaled-nofilter) - saving and savestates - game-specific configuration Not yet implemented: - cheats - fast-forward (hold)
Diffstat (limited to 'Makefile.trimui')
-rw-r--r--Makefile.trimui52
1 files changed, 52 insertions, 0 deletions
diff --git a/Makefile.trimui b/Makefile.trimui
new file mode 100644
index 0000000..d765d15
--- /dev/null
+++ b/Makefile.trimui
@@ -0,0 +1,52 @@
+# gpSP makefile
+# Gilead Kutnick - Exophase
+# pandora port - notaz
+# respberry pi - DPR
+
+# Global definitions
+
+CC = $(CROSS_COMPILE)gcc
+SYSROOT = $(shell $(CC) --print-sysroot)
+
+OBJS = main.o cpu.o gba_memory.o video.o input.o sound.o gba_cc_lut.o \
+ cheats.o arm/arm_stub.o cpu_threaded.o arm/video_blend.o \
+ frontend/libpicofe/input.o frontend/libpicofe/in_sdl.o \
+ frontend/libpicofe/linux/in_evdev.o frontend/libpicofe/linux/plat.o \
+ frontend/libpicofe/fonts.o frontend/libpicofe/readpng.o frontend/libpicofe/config_file.o \
+ frontend/config.o frontend/menu.o frontend/plat_trimui.o frontend/main.o frontend/scale.o
+
+BIN = picogpsp
+
+# Platform specific definitions
+
+VPATH += .. ../arm
+CFLAGS += -DARM_ARCH -DARM_ARCH_BLENDING_OPTS -DPC_BUILD -Wall -DHAVE_DYNAREC
+CFLAGS += -Ofast -fdata-sections -ffunction-sections -flto -fno-PIC -DPICO_HOME_DIR='"/.picogpsp/"'
+CFLAGS += -I./ $(shell $(SYSROOT)/usr/bin/sdl-config --cflags)
+
+# expecting to have PATH set up to get correct sdl-config first
+
+LIBS = -lc -lgcc -lSDL -lasound -lpng -lz -Wl,--as-needed -Wl,--gc-sections -flto -s
+
+ifeq ($(PROFILE), YES)
+CFLAGS += -fprofile-generate=./profile
+LIBS += -lgcov
+else ifeq ($(PROFILE), APPLY)
+CFLAGS += -fprofile-use -fprofile-dir=./profile -fbranch-probabilities
+endif
+
+# Compilation:
+
+all: $(BIN)
+
+%.o: %.S
+ $(CC) $(CFLAGS) -c -o $@ $<
+
+
+cpu.o cpu_threaded.o: CFLAGS += -Wno-unused-variable -Wno-unused-label
+
+$(BIN): $(OBJS)
+ $(CC) $(OBJS) $(LIBS) -o $(BIN)
+
+clean:
+ rm -f $(OBJS) $(BIN)