summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c53a551..cd8e128 100644
--- a/Makefile
+++ b/Makefile
@@ -20,9 +20,17 @@ OBJFILES += $(patsubst %.s,%.o,$(SFILES))
DEPFILES := $(patsubst %.c,%.d,$(CFILES))
BIN := jove.elf
+INCDIR := $(OUT)/usr/include/kernel
all: $(BIN)
+headers:
+ mkdir -p $(INCDIR)
+ -$(foreach dir,$(CDIRS),$$(mkdir -p $(INCDIR)/$(dir) $(INCDIR)/arch/$(dir)/))
+ -cp *.h $(INCDIR)/
+ -$(foreach dir,$(CDIRS),$$(cp $(dir)/*.h $(INCDIR)/$(dir)/))
+ -$(foreach dir,$(CDIRS),$$(cp arch/$(TARGET_MACHINE)/$(dir)/*.h $(INCDIR)/arch/$(dir)/))
+
.PHONY: clean
clean:
-rm $(OBJFILES)