diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-03-30 22:49:06 +0300 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-03-30 22:49:06 +0300 |
commit | 6eefbd0e736c3334e9b1b8141feb0430a5f247c1 (patch) | |
tree | 8866b0cc2b555016e23fabaa869ddc54036a1c0e /common.mk | |
parent | Move MemoryAllocator to libk (diff) | |
download | kernel.cpp-6eefbd0e736c3334e9b1b8141feb0430a5f247c1.tar.xz |
Diffstat (limited to 'common.mk')
-rw-r--r-- | common.mk | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/common.mk b/common.mk new file mode 100644 index 0000000..a07e718 --- /dev/null +++ b/common.mk @@ -0,0 +1,15 @@ +# directory of the current makefile +prefix := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) + +include $(prefix)/.config +OBJ_DIR != echo $(prefix)/$(CONFIG_OBJ_DIR) +CONFIG_BUILD_DEST != echo $(prefix)/$(CONFIG_OBJ_DIR) +CONFIG_ARCH != echo $(CONFIG_ARCH) + +include $(prefix)/arch/$(CONFIG_ARCH)/toolchain.mk + +export AR AR_FLAGS AS AS_FLAGS NM SED \ + CXX CXX_FLAGS CXX_INCLUDE TARGET \ + TEST_CXX TEST_CXX_FLAGS \ + LD LD_FLAGS + |