From d8f7e731e19f006b3c29ef8b5d023fd2c6c1e3c7 Mon Sep 17 00:00:00 2001 From: josh Date: Thu, 25 Jun 2009 21:57:50 +0000 Subject: [PATCH] moved boot.asm into kernel/boot, added kernel/boot/Makefile using new subdir.mak git-svn-id: svn://anubis/hos/trunk@20 5b3e749e-e535-0410-8002-a9bb6afbdfca --- kernel/Makefile | 3 ++- kernel/boot/Makefile | 2 ++ kernel/{ => boot}/boot.asm | 0 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 kernel/boot/Makefile rename kernel/{ => boot}/boot.asm (100%) diff --git a/kernel/Makefile b/kernel/Makefile index ba0eed7..d8d33bb 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -17,6 +17,7 @@ endif export NASM := nasm WD := $(shell pwd) +export HOS_TOPLEVEL := $(WD) LDSCRIPT := link.ld KERNEL := hos export CPPFLAGS := -I$(WD)/include @@ -34,7 +35,7 @@ $(KERNEL).gz: $(KERNEL) gzip -c $< > $@ $(KERNEL): $(SUBDIRS) - $(LD) $(LDFLAGS) -o $@ $(SUBDIRS:%=%/%.o) + $(LD) $(LDFLAGS) -o $@ $(foreach subdir,$(SUBDIRS),$(subdir)/$(subdir).o) .PHONY: $(SUBDIRS) $(SUBDIRS): diff --git a/kernel/boot/Makefile b/kernel/boot/Makefile new file mode 100644 index 0000000..cae81d7 --- /dev/null +++ b/kernel/boot/Makefile @@ -0,0 +1,2 @@ + +include $(HOS_TOPLEVEL)/subdir.mak diff --git a/kernel/boot.asm b/kernel/boot/boot.asm similarity index 100% rename from kernel/boot.asm rename to kernel/boot/boot.asm