diff --git a/examples/bootloader-multiboot2-grub/Makefile b/examples/bootloader-multiboot2-grub/Makefile index 339c014..562d020 100644 --- a/examples/bootloader-multiboot2-grub/Makefile +++ b/examples/bootloader-multiboot2-grub/Makefile @@ -5,6 +5,7 @@ CCPREFIX = ../../vendor/cross/root/bin/i386-elf- AS = $(CCPREFIX)as CC = $(CCPREFIX)gcc +LIBKERNAUX_SRC = ../.. LIBKERNAUX_BUILD = ../../build/dev-cross-i386 LIBKERNAUX_DEST = ../../dest/dev-cross-i386 @@ -23,15 +24,16 @@ GRUBCFG = $(ROOTFS)/boot/grub/grub.cfg KERNEL = $(ROOTFS)/boot/kernel CFLAGS = \ - -std=c99 \ - -pedantic \ - -Wall \ - -Wextra \ - -Werror \ - -ffreestanding \ - -fno-builtin \ - -fno-stack-protector \ - -I../../include + -std=c99 \ + -pedantic \ + -Wall \ + -Wextra \ + -Werror \ + -ffreestanding \ + -fno-builtin \ + -fno-stack-protector \ + -I$(LIBKERNAUX_SRC)/include \ + -I$(LIBKERNAUX_BUILD)/include OBJS = main.c.o multiboot2.c.o start.S.o diff --git a/examples/bootloader-multiboot2-limine/Makefile b/examples/bootloader-multiboot2-limine/Makefile index 370b2c1..28e901b 100644 --- a/examples/bootloader-multiboot2-limine/Makefile +++ b/examples/bootloader-multiboot2-limine/Makefile @@ -5,6 +5,7 @@ CCPREFIX = ../../vendor/cross/root/bin/i386-elf- AS = $(CCPREFIX)as CC = $(CCPREFIX)gcc +LIBKERNAUX_SRC = ../.. LIBKERNAUX_BUILD = ../../build/dev-cross-i386 LIBKERNAUX_DEST = ../../dest/dev-cross-i386 @@ -38,15 +39,16 @@ FULL_LIMINE_ELTORITO = $(ROOTFS)/$(REL_LIMINE_ELTORITO) FULL_LIMINE_SYS = $(ROOTFS)/$(REL_LIMINE_SYS) CFLAGS = \ - -std=c99 \ - -pedantic \ - -Wall \ - -Wextra \ - -Werror \ - -ffreestanding \ - -fno-builtin \ - -fno-stack-protector \ - -I../../include + -std=c99 \ + -pedantic \ + -Wall \ + -Wextra \ + -Werror \ + -ffreestanding \ + -fno-builtin \ + -fno-stack-protector \ + -I$(LIBKERNAUX_SRC)/include \ + -I$(LIBKERNAUX_BUILD)/include OBJS = main.c.o multiboot2.c.o start.S.o diff --git a/examples/bootloader-stivale2-limine/Makefile b/examples/bootloader-stivale2-limine/Makefile index bfa6779..ba88bd4 100644 --- a/examples/bootloader-stivale2-limine/Makefile +++ b/examples/bootloader-stivale2-limine/Makefile @@ -5,6 +5,7 @@ CCPREFIX = ../../vendor/cross/root/bin/x86_64-elf- AS = $(CCPREFIX)as CC = $(CCPREFIX)gcc +LIBKERNAUX_SRC = ../.. LIBKERNAUX_BUILD = ../../build/dev-cross-x86_64 LIBKERNAUX_DEST = ../../dest/dev-cross-x86_64 @@ -37,21 +38,22 @@ FULL_LIMINE_ELTORITO = $(ROOTFS)/$(REL_LIMINE_ELTORITO) FULL_LIMINE_SYS = $(ROOTFS)/$(REL_LIMINE_SYS) CFLAGS = \ - -std=c99 \ - -Wall \ - -Wextra \ - -Werror \ - -ffreestanding \ - -fno-builtin \ - -fno-stack-protector \ - -fno-pic \ - -I../../include \ - -mabi=sysv \ - -mcmodel=kernel \ - -mno-80387 \ - -mno-red-zone \ + -std=c99 \ + -Wall \ + -Wextra \ + -Werror \ + -ffreestanding \ + -fno-builtin \ + -fno-stack-protector \ + -fno-pic \ + -I$(LIBKERNAUX_SRC)/include \ + -I$(LIBKERNAUX_BUILD)/include \ + -mabi=sysv \ + -mcmodel=kernel \ + -mno-80387 \ + -mno-red-zone \ -MMD - # -pedantic \ + # -pedantic \ OBJS = main.c.o stivale2.c.o