summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-10-06 15:08:28 (GMT)
committer Daniel Silverstone <dsilvers@digital-scurf.org>2012-10-06 15:08:28 (GMT)
commit957b9613284a0e1bf799f98490f85dbcf240bdb3 (patch)
tree86fb74fd99248f87afee8c38005f7b182a4db035
parente962168ecfe389000d07ed20203e8aa558827e9f (diff)
downloadsqueeze-957b9613284a0e1bf799f98490f85dbcf240bdb3.tar.gz
squeeze-957b9613284a0e1bf799f98490f85dbcf240bdb3.tar.bz2
Initial makefile wibbling
-rw-r--r--.gitignore5
-rw-r--r--Makefile27
2 files changed, 32 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..6415d22
--- a/dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+*~
+*.o
+squeeze
+unsqueeze1.h
+unsqrm1.h
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..0c7e481
--- a/dev/null
+++ b/Makefile
@@ -0,0 +1,27 @@
+# This makefile attempts to build a squeeze executable which can be used
+# on Linux to compress RISC OS binaries.
+
+all: squeeze
+
+SDK_PATH = /opt/netsurf/arm-unknown-riscos/cross/bin/
+
+PERL ?= perl
+
+MAKEHEADER = $(PERL) makeheader.pl
+
+clean:
+ $(RM) squeeze squeeze.o unsqueeze.o unsqrm.o
+ $(RM) unsqueeze1.h unsqrm1.h
+
+squeeze: squeeze.o
+
+squeeze.o: squeeze.c unsqueeze1.h unsqrm1.h
+
+unsqrm1.h: unsqrm.o
+ $(MAKEHEADER) $< $@
+
+unsqueeze1.h: unsqueeze.o
+ $(MAKEHEADER) $< $@
+
+%.o:%.s
+ $(SDK_PATH)asasm -o $@ -elf -32 $<