2007-04-02 16:21:18 +02:00
|
|
|
CC=gcc -O1 -nostdinc -ffreestanding -fno-builtin -fomit-frame-pointer -Wall -I ../Include -c -o
|
2007-04-02 15:26:29 +02:00
|
|
|
|
|
|
|
|
2007-04-02 16:21:18 +02:00
|
|
|
LINK=ld -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
|
|
|
|
|
2007-04-02 16:21:18 +02:00
|
|
|
$(CC) systemc.o system.c
|
|
|
|
$(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
|
|
|
|
|
|
|
|
|