2018-07-24 04:04:07 +02:00
|
|
|
FINALCC=gcc -O4 -nostdinc -ffreestanding -fno-builtin -fomit-frame-pointer -Wall -w -I ../include -m32 -c -o
|
|
|
|
GCC=gcc -O0 -g -nostdinc -ffreestanding -fno-builtin -fomit-frame-pointer -Wall -w -I ../include -m32 -c -o
|
2007-04-02 15:26:29 +02:00
|
|
|
|
2018-07-24 04:04:07 +02:00
|
|
|
LINK=ld -m elf_i386 -T linker.lds -e main -o
|
2007-04-02 14:52:01 +02:00
|
|
|
|
|
|
|
all: system.sys
|
|
|
|
sync
|
|
|
|
|
|
|
|
system.sys:
|
|
|
|
nasm -f elf -o system.o system.asm
|
2018-07-24 04:04:07 +02:00
|
|
|
$(GCC) systemc.o system.c
|
2007-04-02 16:21:18 +02:00
|
|
|
$(LINK) system.sys systemc.o system.o ../lib/libs.o
|
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
|
|
|
|
|
|
|
|