basekernel/Makefile.config

24 lines
592 B
Makefile

KERNEL_CCFLAGS=-Wall -c -ffreestanding -fno-pie -g -std=gnu99
# These settings select the native compiler,
# which is likely to work on native linux-x86.
#
CC=gcc -m32
LD=ld -melf_i386
#LD=ld -arch i386
AR=ar
OBJCOPY=objcopy -R .note.gnu.property
ISOGEN=genisoimage
# If you are compiling from another platform,
# then use the script build-cross-compiler.sh
# add cross/bin to your path, and uncomment these lines:
#CC=i686-elf-gcc
#LD=i686-elf-ld
#AR=i686-elf-ar
#OBJCOPY=i686-elf-objcopy
# If building on OSX, then install mkisofs via ports or brew
# and uncomment this:
#ISOGEN=mkisofs