diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2017-03-05 21:43:19 +0100 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2017-03-05 21:43:19 +0100 |
commit | d42b629d983de336ddd3c22782caa2791ab78897 (patch) | |
tree | ac3a3052c154ca88803df5754eb6c8459e246b2f /config.mk | |
download | garmos-d42b629d983de336ddd3c22782caa2791ab78897.tar.gz garmos-d42b629d983de336ddd3c22782caa2791ab78897.tar.bz2 |
initial commit
Diffstat (limited to 'config.mk')
-rw-r--r-- | config.mk | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/config.mk b/config.mk new file mode 100644 index 0000000..a1c6379 --- /dev/null +++ b/config.mk @@ -0,0 +1,30 @@ +ARCH ?= $(shell uname -m) + +include arch/$(ARCH)/config.mk + +AS ?= $(CROSS_COMPILER)as +CC ?= $(CROSS_COMPILER)cc +LD ?= $(CROSS_COMPILER)ld +RM ?= rm -f +CP ?= cp -v + +CFLAGS += -m32 -nostdlib -fno-builtin -fno-leading-underscore -MMD -MP -Iinclude +ASFLAGS += --32 +LDFLAGS += -melf_i386 + +QEMU ?= qemu-system-$(ARCH) + +INSTALL_DIR ?= /boot + +QUIET ?= @ + +kernel ?= kernel.img +kernel_iso ?= kernel.iso + +dirs := core arch/$(ARCH) +csources := $(foreach dir,$(dirs),$(wildcard $(dir)/*.c)) +ssources := $(foreach dir,$(dirs),$(wildcard $(dir)/*.s)) +objects := $(csources:.c=.o) $(ssources:.s=.o) +memmap := arch/$(ARCH)/memmap + +dependencies := $(csources:.c=.d) |