summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2006-08-28 00:19:04 +0000
committerIan C <ianc@noddybox.co.uk>2006-08-28 00:19:04 +0000
commit8092443b5ed2d33b076749387577f4e1466735fe (patch)
tree0246c56a9ff8801a4a1975574e6b2608e9fb9ffc /Makefile
parent02a2bade0cb37c52397474400d05bed8edc85791 (diff)
Changes so that labels for zexdoc and zexall are loaded into EMMA
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 25f659c..e83b30d 100644
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@
#
# -------------------------------------------------------------------------
#
-# $Id: Makefile,v 1.6 2006-08-27 23:55:05 ianc Exp $
+# $Id: Makefile,v 1.7 2006-08-28 00:19:04 ianc Exp $
#
# This CFLAGS assumes that gcc is being used.
@@ -55,13 +55,17 @@ emucpm.hex: emucpm.z80
tpasm -P Z80 -o intel emucpm.hex emucpm.z80
zexdoc.hex: zexdoc.z80
- tpasm -P Z80 -o intel zexdoc.hex zexdoc.z80
+ tpasm -P Z80 -o text _tmp -o intel zexdoc.hex zexdoc.z80
+ tail +4 _tmp | awk '{printf("%s 0x%s\n",$$2,$$1);}' > zexdoc.lbl
+ rm -f _tmp
zexall.hex: zexall.z80
- tpasm -P Z80 -o intel zexall.hex zexall.z80
+ tpasm -P Z80 -o text _tmp -o intel zexall.hex zexall.z80
+ tail +4 _tmp | awk '{printf("%s 0x%s\n",$$2,$$1);}' > zexall.lbl
+ rm -f _tmp
clean:
- rm -f $(TARGET) $(OBJECTS) core $(TARGET).exe *.hex
+ rm -f $(TARGET) $(OBJECTS) core $(TARGET).exe *.hex *.lbl
depend:
makedepend -- $(CFLAGS) -- $(SOURCE)