aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorneonloop2021-08-12 15:29:39 +0000
committerneonloop2021-08-12 15:29:39 +0000
commit4f6bbfe3a4e16b3d322f9cd86a5f9ea1b8535d51 (patch)
tree88bf75a3ffac4017fe5124f935fe5e5f67dd6e48 /Makefile
parentc17d20ab28e0ac7dd527ff840559d96e98931a80 (diff)
downloadpicoarch-4f6bbfe3a4e16b3d322f9cd86a5f9ea1b8535d51.tar.gz
picoarch-4f6bbfe3a4e16b3d322f9cd86a5f9ea1b8535d51.tar.bz2
picoarch-4f6bbfe3a4e16b3d322f9cd86a5f9ea1b8535d51.zip
Adds combo key support to libpicofe
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
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