summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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