summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-10-06 17:08:59 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-10-06 17:08:59 +0100
commitf5d443c7995415e9dec7757ca4640e3b23f12790 (patch)
tree0eb15f720fc7271a50d486bdfe2414a97db8f68e /Makefile
parent06073b9f63c9032a2dcf712fb40bfe913f4653ae (diff)
downloadsqueeze-f5d443c7995415e9dec7757ca4640e3b23f12790.tar.gz
squeeze-f5d443c7995415e9dec7757ca4640e3b23f12790.tar.bz2
Working (at least it works with NS)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 10ea41f..5b79ada 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,10 @@ export PERL
MAKEHEADER = $(PERL) makeheader.pl
+CC := gcc
+
+CFLAGS := $(CFLAGS) -g -O0
+
clean:
$(RM) squeeze squeeze.o unsqueeze.o unsqrm.o
$(RM) unsqueeze1.h unsqrm1.h unsqueeze.bin unsqrm.bin
@@ -19,8 +23,10 @@ distclean: clean
squeeze: squeeze.o
+ $(CC) $(CFLAGS) -o $@ $^
squeeze.o: squeeze.c unsqueeze1.h unsqrm1.h
+ $(CC) $(CFLAGS) -o $@ -c $<
unsqrm1.h: unsqrm.bin
$(MAKEHEADER) unsqueeze_base unsqueeze_limit unsqueeze_end $< $@
@@ -29,10 +35,10 @@ unsqueeze1.h: unsqueeze.bin
$(MAKEHEADER) UnSqueeze_UnSqueezeBase '' UnSqueeze_UnSqueezeLimit $< $@
unsqueeze.bin: unsqueeze.o
- arm-unknown-riscos-objcopy -O binary -j 'M2$$$$Code' $< $@
+ $(SDK_PATH)arm-unknown-riscos-objcopy -O binary -j 'M2$$$$Code' $< $@
unsqrm.bin: unsqrm.o
- arm-unknown-riscos-objcopy -O binary -j unsqueeze $< $@
+ $(SDK_PATH)arm-unknown-riscos-objcopy -O binary -j unsqueeze $< $@
%.o:%.s
$(SDK_PATH)asasm -o $@ -elf -32 $<