From: Alan Cox Date: Thu, 8 Oct 2015 14:34:41 +0000 (+0100) Subject: libs: Add explicit rules for tools Makefile X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=0e0d4ede7f2debc00647720320526924f7c8d974;p=FUZIX.git libs: Add explicit rules for tools Makefile Otherwise we pass the .h file to the compiler as an argument. GNU C compilers understand what is desired but clang not unreasonably errors it. --- diff --git a/Library/Makefile b/Library/Makefile index ebbdbf09..a28dcbed 100644 --- a/Library/Makefile +++ b/Library/Makefile @@ -10,13 +10,19 @@ clean: rm -f tools/syscall-z88dk tools/syscall_6502 tools/syscall_6809 tools/syscall: tools/syscall.c ../Kernel/include/syscall_name.h + $(CC) $(CFLAGS) -o $@ $< tools/syscall-z88dk: tools/syscall-z88dk.c ../Kernel/include/syscall_name.h + $(CC) $(CFLAGS) -o $@ $< tools/syscall_6502: tools/syscall_6502.c ../Kernel/include/syscall_name.h + $(CC) $(CFLAGS) -o $@ $< tools/syscall_6809: tools/syscall_6809.c ../Kernel/include/syscall_name.h + $(CC) $(CFLAGS) -o $@ $< tools/binman: tools/binman.c + $(CC) $(CFLAGS) -o $@ $< tools/liberror: tools/liberror.c + $(CC) $(CFLAGS) -o $@ $<