summaryrefslogtreecommitdiff
path: root/lib/libc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/Makefile')
-rw-r--r--lib/libc/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libc/Makefile b/lib/libc/Makefile
index af91a87..7ae6bd9 100644
--- a/lib/libc/Makefile
+++ b/lib/libc/Makefile
@@ -5,11 +5,9 @@ LIBC_ASMFILES = $(shell find src/ -name "*.S")
LIBC_OBJ = $(LIBC_CFILES:.c=.o)
LIBC_ASMOBJ = $(LIBC_ASMFILES:.S=.S.o)
-all: $(LIBC_ASMOBJ) $(LIBC_OBJ) build/libc.a
+all: headers $(LIBC_ASMOBJ) $(LIBC_OBJ) build/libc.a
build/libc.a: build/
- mkdir -p include/sys/
- cp -f $(USRDIR)/include/sys/*.h include/sys
ar rcs build/libc.a $(LIBC_OBJ) $(LIBC_ASMOBJ)
%.o: %.c
@@ -18,6 +16,12 @@ build/libc.a: build/
%.S.o: %.S
$(CC) $(CFLAGS) -Iinclude/ $< -o $@
+.PHONY: headers
+headers:
+ mkdir -p include/sys/
+ cp -f $(USRDIR)/include/sys/*.h include/sys
+ cp -f include/*.h $(USRDIR)/include/
+
.PHONY:
build/:
mkdir -p build/