mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
- Kernel got pretty much deleted, will be rewriting in following days - Bootloader got rewritten, stage1 works, stage2 will be written in following days - Libc is still the same - User will contains userspace stuff - Rewrote makefiles again - Got rid of backup (see previous commits for that) - Image has 1 MBR partition for FAT32 which contains 'kern.bin' file - Remade info files to be more "big project" style (all caps plain text) - Added some dumb docs
19 lines
411 B
Makefile
19 lines
411 B
Makefile
# Tools
|
|
HOSTCC = cc
|
|
CC = i686-elf-gcc
|
|
LD = i686-elf-ld
|
|
AS = nasm
|
|
AR = i686-elf-ar
|
|
OBJCOPY = i686-elf-objcopy
|
|
MAKE = make
|
|
|
|
# Flags
|
|
HOSTCFLAGS = -Wall -Wextra -Wpedantic -O2 -std=c17 -g
|
|
CFLAGS = -Wall -Wextra -Wpedantic -Wno-pointer-arith\
|
|
-ffreestanding -fno-stack-protector -fno-builtin -fno-pie -fcommon\
|
|
-O2 -std=c17 -nostdinc -nostdlib -z notext -march=i386 -g
|
|
LDFLAGS = -melf_i386
|
|
ASFLAGS =
|
|
ARFLAGS =
|
|
|