2018-12-10 17:03:52 +01:00
|
|
|
GCC=gcc -O0 -g -nostdinc -ffreestanding -fno-builtin -Wall -w -I ../include -m32 -fno-pie -no-pie -c -o
|
2018-09-27 17:12:12 +02:00
|
|
|
ASM=nasm
|
|
|
|
LINK=ld -m elf_i386 -T linker.lds -n -o
|
2007-04-02 14:52:01 +02:00
|
|
|
|
|
|
|
all: system.sys
|
|
|
|
sync
|
|
|
|
|
2018-09-27 17:12:12 +02:00
|
|
|
system.sys: multiboot.o system.o ../lib/libs.o
|
|
|
|
$(LINK) system.sys multiboot.o system.o ../lib/libs.o
|
|
|
|
|
|
|
|
system.o:
|
2018-08-17 16:46:56 +02:00
|
|
|
$(GCC) system.o system.c
|
2018-09-27 17:12:12 +02:00
|
|
|
|
|
|
|
multiboot.o:
|
2018-10-14 11:14:34 +02:00
|
|
|
$(ASM) -f elf -o multiboot.o multiboot.asm -dVESA=$(VESA)
|
2007-04-02 14:52:01 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o
|
2007-04-02 15:26:29 +02:00
|
|
|
rm -f *.out
|
2007-04-02 14:52:01 +02:00
|
|
|
rm -f *.bin
|
|
|
|
rm -f *.sys
|
2018-07-24 04:04:07 +02:00
|
|
|
rm -f *.s
|
2018-09-27 17:47:27 +02:00
|
|
|
rm -f *.c~
|
2007-04-02 14:52:01 +02:00
|
|
|
|
2018-09-27 17:12:12 +02:00
|
|
|
indent:
|
|
|
|
indent -linux -i8 -ts8 *.c
|