diff options
author | Ian Moffett <ian@osmora.org> | 2025-04-18 22:34:43 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-04-18 22:39:35 -0400 |
commit | 2bbc5efc7bbf57b21f93d616dbc87ba0cadee56f (patch) | |
tree | 75ec8ebd98ae1d70bc9f7125b04e400799604bca /lib/libc/Makefile | |
parent | 26b08f90c46b46849d8820c9ed922bbe2ccda51c (diff) |
usr: libc: Add machdep headers
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/libc/Makefile')
-rw-r--r-- | lib/libc/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libc/Makefile b/lib/libc/Makefile index c750d34..43c823e 100644 --- a/lib/libc/Makefile +++ b/lib/libc/Makefile @@ -5,7 +5,7 @@ LIBC_ASMFILES = $(shell find src/ -name "*.S") LIBC_OBJ = $(LIBC_CFILES:.c=.o) LIBC_ASMOBJ = $(LIBC_ASMFILES:.S=.S.o) -all: headers $(LIBC_ASMOBJ) $(LIBC_OBJ) build/libc.a +all: sys/include/machine headers $(LIBC_ASMOBJ) $(LIBC_OBJ) build/libc.a build/libc.a: build/ ar rcs build/libc.a $(LIBC_OBJ) $(LIBC_ASMOBJ) @@ -16,8 +16,12 @@ build/libc.a: build/ %.S.o: %.S $(CC) $(CFLAGS) -Iinclude/ $< -o $@ +sys/include/machine: + mkdir -p include/machine/ + cp include/arch/$(ARCH)/*.h include/machine/ + .PHONY: headers -headers: +headers: sys/include/machine mkdir -p include/sys/ cp -f $(USRDIR)/include/sys/*.h include/sys cp -f include/*.h $(USRDIR)/include/ @@ -31,4 +35,5 @@ build/: .PHONY: clean clean: rm -f $(LIBC_OBJ) $(LIBC_ASMOBJ) + rm -rf include/machine/ rm -rf build/ |