diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2024-05-22 13:00:41 -0400 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2024-05-22 13:00:41 -0400 |
commit | ace65b453151845bc361f21f3e5b651c35f9f126 (patch) | |
tree | 262ebd29b0ca1d8584f0b6f1efa7a00d9f4f3e43 /Makefile | |
parent | f004c1ade8d617a82cea2fe249434cccb47a2358 (diff) | |
download | jove-kernel-master.tar.gz jove-kernel-master.tar.bz2 jove-kernel-master.zip |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 7 insertions, 12 deletions
@@ -1,24 +1,19 @@ include config.mk +CDIRS := boot device initrd klib memory task syscall +CDIRS += memory/alloc +CDIRS += boot/$(TARGET_BOOTLOADER) +CDIRS += arch/$(TARGET_MACHINE) + CFILES := $(wildcard *.c) -CFILES += $(wildcard */*.c) -CFILES += $(wildcard boot/$(TARGET_BOOTLOADER)/*.c) -CFILES += $(wildcard arch/$(TARGET_MACHINE)/*.c) -CFILES += $(wildcard arch/$(TARGET_MACHINE)/*/*.c) +CFILES += $(foreach dir, $(CDIRS), $(wildcard $(dir)/*.c)) SFILES := $(wildcard *.S) -SFILES += $(wildcard */*.S) -SFILES += $(wildcard arch/$(TARGET_MACHINE)/*.S) -SFILES += $(wildcard arch/$(TARGET_MACHINE)/*/*.S) +SFILES += $(foreach dir, $(CDIRS), $(wildcard $(dir)/*.S)) OBJFILES := $(patsubst %.c,%.o,$(CFILES)) OBJFILES += $(patsubst %.S,%.o,$(SFILES)) -DFILES := $(wildcard *.d) -DFILES += $(wildcard */*.d) -DFILES += $(wildcard arch/$(TARGET_MACHINE)/*.d) -DFILES += $(wildcard arch/$(TARGET_MACHINE)/*/*.d) - BIN := jove.elf all: $(BIN) |