From 4f6bbfe3a4e16b3d322f9cd86a5f9ea1b8535d51 Mon Sep 17 00:00:00 2001 From: neonloop Date: Thu, 12 Aug 2021 15:29:39 +0000 Subject: Adds combo key support to libpicofe --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index db30344..dda2537 100644 --- a/Makefile +++ b/Makefile @@ -78,10 +78,16 @@ print-%: all: $(BIN) cores +libpicofe/.patched: + cd libpicofe && patch -p1 < ../patches/libpicofe/0001-key-combos.patch && touch .patched + +clean-libpicofe: + test ! -f libpicofe/.patched || (cd libpicofe && patch -p1 -R < ../patches/libpicofe/0001-key-combos.patch && rm .patched) + plat_trimui.o: plat_sdl.c plat_linux.o: plat_sdl.c -$(BIN): $(OBJS) +$(BIN): libpicofe/.patched $(OBJS) $(CC) $(OBJS) $(LDFLAGS) -o $(BIN) define CORE_template = @@ -110,7 +116,7 @@ $(foreach core,$(CORES),$(eval $(call CORE_template,$(core)))) cores: $(SOFILES) -clean: +clean: clean-libpicofe rm -f $(OBJS) $(BIN) $(SOFILES) rm -rf pkg -- cgit v1.2.3