diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2021-09-25 12:24:24 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2021-09-25 12:24:24 +0300 |
| commit | 13fe461374c0716404e2ee7726781b9cd12dbaa7 (patch) | |
| tree | 8081e42fbebe8561d87f4e685e0f2c38b40fc0c4 /Makefile | |
| parent | 68fcd6d027b88581992b4fb10ee1edc301e30678 (diff) | |
| download | kmi-13fe461374c0716404e2ee7726781b9cd12dbaa7.tar.gz kmi-13fe461374c0716404e2ee7726781b9cd12dbaa7.zip | |
Added default stack location
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -2,7 +2,7 @@ DO != echo > deps.mk # this could be done better DEBUGFLAGS != [ $(DEBUG) ] && echo "-O0 -ggdb3 -DDEBUG" || echo "-flto -O2" -CFLAGS = -fno-pie -ffreestanding -nostdlib -std=c11 -Wall -Wextra +CFLAGS = -fno-pie -ffreestanding -nostdlib -std=c17 -Wall -Wextra DEPFLAGS = -MT $@ -MMD -MP -MF $@.d all: apos.bin @@ -57,7 +57,9 @@ apos.bin: kernel.bin init.bin kernel.elf: $(KERNEL_OBJECTS) $(KERNEL_LD) $(GENELF) -T $(KERNEL_LD) $(KERNEL_OBJECTS) -o $@ -init.elf: kernel.bin $(INIT_OBJECTS) $(INIT_LD) +$(INIT_LD): kernel.bin + +init.elf: $(INIT_OBJECTS) $(INIT_LD) $(GENELF) -T $(INIT_LD) $(INIT_OBJECTS) -o $@ kernel.bin: kernel.elf |
