ref: 63c625229ddae2be9785f8c9a0e4e5c5d2a6cb6c
parent: c34552e1586a5d7069296b343444ac29c2507e66
author: Quentin Rameau <quinq@fifth.space>
date: Wed Mar 8 11:34:16 EST 2017
[libc] Fix sys Makefiles
--- a/libc/src/Makefile
+++ b/libc/src/Makefile
@@ -19,7 +19,7 @@
all: libc.a
-$(SYSOJB):
+$(SYSOBJ):
cd sys/$(ARCH)-$(SYS) && make all
libc.a: $(OBJ)
--- a/libc/src/sys/amd64-sysv-linux/Makefile
+++ b/libc/src/sys/amd64-sysv-linux/Makefile
@@ -12,10 +12,11 @@
all: $(OBJ) system.mk
system.mk: Makefile
- echo '$$(SYSOBJ)' = $(OBJ) > system.mk
+ echo SYSOBJ = $(OBJ) > system.mk
$(ASM_GEN): syscall.lst
awk -f syscall.awk < syscall.lst
clean:
- rm -f *.s *.o
+ rm -f *.o
+ rm -f $(ASM_GEN)
--- a/libc/src/sys/qbe-linux/Makefile
+++ b/libc/src/sys/qbe-linux/Makefile
@@ -12,7 +12,7 @@
all: $(OBJ) system.mk
system.mk: Makefile
- echo '$$(SYSOBJ)' = $(OBJ) > system.mk
+ echo SYSOBJ = $(OBJ) > system.mk
$(ASM_GEN): syscall.lst
awk -f syscall.awk < syscall.lst