summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2021-08-02 21:08:45 +0100
committerJohn-Mark Bell <jmb@netsurf-browser.org>2021-08-02 21:08:45 +0100
commitb269eab4b8159241c0a335cbd76c184e420c38e3 (patch)
tree148888c89c2e8af04406dc01499c17c418426ded
parent29ca302e4f395a18568e65d03dbc60914590be6b (diff)
downloadttf2f-b269eab4b8159241c0a335cbd76c184e420c38e3.tar.gz
ttf2f-b269eab4b8159241c0a335cbd76c184e420c38e3.tar.bz2
Convert RISC OS binary to AIF and squeeze it
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 77f8e2a..4aea8f0 100644
--- a/Makefile
+++ b/Makefile
@@ -45,5 +45,24 @@ endif
include $(NSBUILD)/Makefile.top
+ifeq ($(HOST),arm-unknown-riscos)
+ realoutput := $(OUTPUT)
+ e1f := ,e1f
+ ifeq ($(EXEEXT),$(e1f))
+ ff8 := ,ff8
+ realoutput := $(subst $(EXEEXT),$(ff8),$(OUTPUT))
+
+ POST_TARGETS := $(realoutput) $(POST_TARGETS)
+
+$(realoutput): $(OUTPUT)
+ $(Q)echo " ELF2AIF: $@"
+ $(Q)$(dir $(CC))elf2aif $(OUTPUT) $@
+ $(Q)echo " SQUEEZE: $@"
+ $(Q)$(dir $(CC))squeeze $@
+ endif
+endif
+
+all: $(PRE_TARGETS) $(OUTPUT) $(POST_TARGETS)
+
# Extra installation rules