aboutsummaryrefslogtreecommitdiffstats
path: root/tools/Makefile
diff options
context:
space:
mode:
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