diff options
author | dzwdz | 2021-11-14 17:46:20 +0100 |
---|---|---|
committer | dzwdz | 2021-11-14 17:46:20 +0100 |
commit | 7acf810e81491b08410df1b7bb886bd11b44cd98 (patch) | |
tree | d05378fea8e7e11a6db90369c165988752a18557 /Makefile | |
parent | 714b3dce9016f699f8842d792075555077fd4d31 (diff) |
shared: use a single implementation of mem* functions everywhere
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3,7 +3,7 @@ PATH := $(shell pwd)/toolchain/bin/:$(PATH) AS = i686-elf-as CC = i686-elf-gcc CHECK = sparse -CFLAGS = -std=gnu99 -ffreestanding -O2 -Wall -Wextra -Wold-style-definition +CFLAGS = -std=gnu99 -ffreestanding -O2 -Wall -Wextra -Wold-style-definition -Werror=implicit-function-declaration CFLAGS += -mgeneral-regs-only CFLAGS += -Isrc/ LFLAGS = -ffreestanding -O2 -nostdlib -lgcc @@ -52,12 +52,12 @@ clean: out/boot.iso: out/fs/boot/kernel.bin out/fs/boot/grub/grub.cfg out/fs/boot/init @grub-mkrescue -o $@ out/fs/ > /dev/null 2>&1 -out/fs/boot/kernel.bin: src/kernel/linker.ld $(call from_sources, src/kernel/) +out/fs/boot/kernel.bin: src/kernel/linker.ld $(call from_sources, src/kernel/) $(call from_sources, src/shared/) @mkdir -p $(@D) @$(CC) $(LFLAGS) -T $^ -o $@ grub-file --is-x86-multiboot $@ -out/raw_init: src/init/linker.ld $(call from_sources, src/init/) +out/raw_init: src/init/linker.ld $(call from_sources, src/init/) $(call from_sources, src/shared/) @mkdir -p $(@D) @$(CC) $(LFLAGS) -T $^ -o $@ |