2018-07-24 04:04:07 +02:00
|
|
|
GCC=gcc -O0 -g -nostdinc -ffreestanding -fno-builtin -fomit-frame-pointer -Wall -w -I ../include -m32 -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:
|
|
|
|
$(ASM) -f elf -o multiboot.o multiboot.asm -dARCH=$(ARCH)
|
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
|
2007-04-02 14:52:01 +02:00
|
|
|
|
2018-09-27 17:12:12 +02:00
|
|
|
indent:
|
|
|
|
indent -linux -i8 -ts8 *.c
|