summaryrefslogtreecommitdiff
path: root/Makefile
blob: 0c7e48165c0a64c788caca57886e193c24a57b8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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 $<