BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / commit / 18495cfe1cf5f7fc6f6b0c8c12d7f34dfded1be0 / Makefile

// Related

Nucleus

Barry System headers (remove libc dependency) 18495cf (3 years, 2 months ago)
diff --git a/Makefile b/Makefile
index 2461903..5ec91e5 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ OBJS = $(sort $(subst ./,build/,$(subst .S,.o,$(AS_SRC))))
 C_SRC := $(shell find . -name '*.c')
 OBJS += $(sort $(subst ./,build/,$(subst .c,.o,$(C_SRC))))
 
-.PHONY: clean all install
+.PHONY: install-headers clean all install
 
 all: $(PRODUCT)
 
@@ -26,6 +26,11 @@ clean:
 	@touch $(PRODUCT)
 	@rm $(PRODUCT)
 
+install-headers:
+	$(info INSTALL KERNEL HEADERS)
+	@mkdir -p ${SYSROOT}/usr/include/
+	@cp -r include/* ${SYSROOT}/usr/include/
+
 install: $(PRODUCT)
 	$(info INSTALL $^)
 	@install -Dm 755 $(PRODUCT) -t ${SYSROOT}/boot/