mirror of https://github.com/tailix/libkernaux.git
Main: fix kernel examples
This commit is contained in:
parent
15ea973a16
commit
1f1675ec2d
|
@ -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
|
||||
|
||||
|
@ -31,7 +32,8 @@ CFLAGS = \
|
|||
-ffreestanding \
|
||||
-fno-builtin \
|
||||
-fno-stack-protector \
|
||||
-I../../include
|
||||
-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
|
||||
|
||||
|
@ -46,7 +47,8 @@ CFLAGS = \
|
|||
-ffreestanding \
|
||||
-fno-builtin \
|
||||
-fno-stack-protector \
|
||||
-I../../include
|
||||
-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
|
||||
|
||||
|
@ -45,7 +46,8 @@ CFLAGS = \
|
|||
-fno-builtin \
|
||||
-fno-stack-protector \
|
||||
-fno-pic \
|
||||
-I../../include \
|
||||
-I$(LIBKERNAUX_SRC)/include \
|
||||
-I$(LIBKERNAUX_BUILD)/include \
|
||||
-mabi=sysv \
|
||||
-mcmodel=kernel \
|
||||
-mno-80387 \
|
||||
|
|
Loading…
Reference in New Issue