libs: Add explicit rules for tools Makefile
authorAlan Cox <alan@linux.intel.com>
Thu, 8 Oct 2015 14:34:41 +0000 (15:34 +0100)
committerAlan Cox <alan@linux.intel.com>
Thu, 8 Oct 2015 14:34:41 +0000 (15:34 +0100)
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

index ebbdbf0..a28dcbe 100644 (file)
@@ -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 $@ $<