From: Paolo Pisati
Date: Thu, 31 May 2018 07:17:31 +0000 (+0200)
Subject: Makefile: z80: fix the 'clean' target and make it work again
X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=0ef2fd7cbb87fc960c4f6b1930603ae619cae39a;p=FUZIX.git
Makefile: z80: fix the 'clean' target and make it work again
Signed-off-by: Paolo Pisati
---
diff --git a/Library/Makefile b/Library/Makefile
index ba54c5db..9c017bf8 100644
--- a/Library/Makefile
+++ b/Library/Makefile
@@ -9,7 +9,7 @@ all: tools/syscall tools/binman tools/fcc tools/syscall_6502 \
clean:
rm -f tools/syscall tools/binman tools/fcc tools/fsize tools/liberror
- rm -f tools/syscall-z88dk tools/syscall_6502 tools/syscall_6809
+ rm -f tools/syscall-z88dk tools/syscall_6502 tools/syscall_6809 tools/syscall_68000 tools/syscall-scc6809
tools/syscall: tools/syscall.c ../Kernel/include/syscall_name.h
$(CC) $(CFLAGS) -o $@ $<
diff --git a/Library/libs/Makefile.z80 b/Library/libs/Makefile.z80
index 4a9fe18e..334982fa 100644
--- a/Library/libs/Makefile.z80
+++ b/Library/libs/Makefile.z80
@@ -179,7 +179,7 @@ $(OBJ_HARD):%.rel: %.c
clean:
rm -rf *.rel *.asm *.sym *.lst *.lib *~ syscall.l libc.l syslib.l liberror.txt *.o
(cd curses; rm -rf *.rel *.asm *.sym *.lst *~ *.o)
- (cd fuzix; $(MAKE) clean)
+ (cd fuzixz80; $(MAKE) clean; rm -f Makefile)
install:
cp crt0$(PLATFORM).rel crt0nostdio$(PLATFORM).rel c$(PLATFORM).lib /opt/fcc/lib/