mirror of
https://github.com/tailix/libkernaux.git
synced 2025-02-24 15:55:41 -05:00
Main: fix kernel examples
This commit is contained in:
parent
15ea973a16
commit
1f1675ec2d
3 changed files with 38 additions and 32 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue