modify include lines and Makefiles

This commit is contained in:
Tomoki Shirasawa
2012-12-17 16:10:56 +09:00
parent 6ff27458f4
commit 0a808057eb
47 changed files with 139 additions and 135 deletions

View File

@@ -1,8 +1,8 @@
#BUILD_TARGET = mee knf
BUILD_TARGET = knf
#BUILD_TARGET = builtin-mic attached-mic
BUILD_TARGET = attached-mic
SRC = $(CURDIR)
AALBASE ?= $(SRC)/../../aal/manycore
IHKBASE ?= $(SRC)/../../ihk/cokernel
O ?= $(KBUILD_OUTPUT)
V ?= $(VERBOSE)
@@ -12,8 +12,8 @@ KERNELS = $(addsuffix /$(KERNEL),$(addprefix $(O)/,$(BUILD_TARGET)))
SUBCMD_OPTS = V='$(V)'
$(if $(O),,$(error Specify the compilation target directory))
$(if $(shell ls $(AALBASE)/Makefile),,\
$(error AAL is not found in $(AALBASE)))
#$(if $(shell ls $(IHKBASE)/Makefile),,\
# $(error IHK is not found in $(IHKBASE)))
.PHONY: all clean depend
@@ -26,8 +26,9 @@ all: $(KERNELS)
%/Makefile: Makefile.build FORCE
@mkdir -p $(dir $@)
@echo 'SRC = $(SRC)' > $@
@echo 'AALBASE = $(AALBASE)' >> $@
@echo 'IHKBASE = $(IHKBASE)' >> $@
@echo 'TARGET = $(notdir $(patsubst %/,%,$(dir $@)))' >> $@
@echo 'TARGETDIR = $$(shell echo $$(TARGET) | sed "s/-/\//")' >> $@
@cat Makefile.build >> $@
@rm -f $(dir $@)/Makefile.dep