commit ec0e3ddd118d44a0a2c0fc64be5d15f8105075db
parent 84499d25dd3891629b737b7ac497dd4eca26c89c
Author: Quentin Rameau <quinq@fifth.space>
Date: Sun, 2 May 2021 14:41:33 +0200
libc: Fix object list dependencies
The dependency wasn't robust, as the list file
would not be part of the dependency chain.
Diffstat:
5 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/src/libc/arch/amd64/Makefile b/src/libc/arch/amd64/Makefile
@@ -21,7 +21,9 @@ DIRS =\
all: $(LIBC) $(SYS)
-$(LIBC): $(OBJS)
+$(LIBC): $(LIBCLST)
+
+$(LIBCLST): $(OBJS)
$(MKLST)
$(SYS): FORCE
diff --git a/src/libc/arch/arm/Makefile b/src/libc/arch/arm/Makefile
@@ -16,7 +16,9 @@ DIRS = linux
all: $(LIBC) $(SYS)
-$(LIBC): $(OBJS)
+$(LIBC): $(LIBCLST)
+
+$(LIBCLST): $(OBJS)
$(MKLST)
$(SYS): FORCE
diff --git a/src/libc/arch/arm64/Makefile b/src/libc/arch/arm64/Makefile
@@ -16,7 +16,9 @@ DIRS = linux
all: $(LIBC) $(SYS)
-$(LIBC): $(OBJS)
+$(LIBC): $(LIBCLST)
+
+$(LIBCLST): $(OBJS)
$(MKLST)
$(SYS): FORCE
diff --git a/src/libc/arch/i386/Makefile b/src/libc/arch/i386/Makefile
@@ -16,7 +16,9 @@ DIRS = linux
all: $(LIBC) $(SYS)
-$(LIBC): $(OBJS)
+$(LIBC): $(LIBCLST)
+
+$(LIBCLST): $(OBJS)
$(MKLST)
$(SYS): FORCE
diff --git a/src/libc/arch/ppc/Makefile b/src/libc/arch/ppc/Makefile
@@ -16,7 +16,9 @@ DIRS = linux
all: $(LIBC) $(SYS)
-$(LIBC): $(OBJS)
+$(LIBC): $(LIBCLST)
+
+$(LIBCLST): $(OBJS)
$(MKLST)
$(SYS): FORCE