aboutsummaryrefslogtreecommitdiffstats
path: root/tools/Makefile
diff options
context:
space:
mode:
authorhpa <hpa@trantor.hos.anvin.org>2008-12-22 11:14:06 -0800
committerhpa <hpa@trantor.hos.anvin.org>2008-12-22 11:14:06 -0800
commit67a4ad53997e71b7aa2282f699a7d481fe11eb31 (patch)
tree5dbdec8a598920c4fc2c2a590c40e71b7f7dbf69 /tools/Makefile
parent641ce313678f8237a6e33f994367a46f662a0833 (diff)
downloadabc80-67a4ad53997e71b7aa2282f699a7d481fe11eb31.tar.gz
abc80-67a4ad53997e71b7aa2282f699a7d481fe11eb31.tar.xz
abc80-67a4ad53997e71b7aa2282f699a7d481fe11eb31.zip
tools: add Z80 disassembler
A Z80 disassembler is really handy sometimes...
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/tools/Makefile b/tools/Makefile
index cf48d5f..57a8d4a 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -1,10 +1,20 @@
CC = gcc
CFLAGS = -O -g -W -Wall
LDFLAGS =
+ifneq (,$(findstring _NT,$(shell uname -s)))
+O = obj
+X = .exe
+else
+O = o
+X =
+endif
-all : abcprintd z80asm
+all : abcprintd$(X) z80asm z80dis$(X)
-abcprintd : abcprintd.c
+abcprintd$(X) : abcprintd.c
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
+
+z80dis$(X) : z80dis.c
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
.PHONY: z80asm
@@ -12,6 +22,6 @@ z80asm :
$(MAKE) -C $@ all
clean :
- rm -f abcprintd *.o
+ rm -f abcprintd$(X) z80dis$(X) *.o
$(MAKE) -C z80asm clean