From 0e0d4ede7f2debc00647720320526924f7c8d974 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Thu, 8 Oct 2015 15:34:41 +0100 Subject: [PATCH] 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. --- Library/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) 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 $@ $< -- 2.34.1