2007-04-02 14:52:01 +02:00
|
|
|
FREEC=gcc -O2 -nostdinc -ffreestanding -fno-builtin -fomit-frame-pointer -Wall -I ../Include -c
|
2007-04-02 15:21:56 +02:00
|
|
|
PARTIAL=ld -r -o
|
2007-04-02 15:44:25 +02:00
|
|
|
OBJS= memory.o vga.o port.o video.o idt.o timer.o keyboard.o types.o
|
2007-04-02 14:52:01 +02:00
|
|
|
|
|
|
|
all: makeall
|
|
|
|
|
2007-04-02 15:21:56 +02:00
|
|
|
makeall: libs.o
|
2007-04-02 14:52:01 +02:00
|
|
|
|
2007-04-02 15:21:56 +02:00
|
|
|
libs.o:$(OBJS)
|
|
|
|
$(PARTIAL) libs.o $(OBJS)
|
|
|
|
|
|
|
|
vga.o:vga.c
|
2007-04-02 14:52:01 +02:00
|
|
|
$(FREEC) $^
|
2007-04-02 15:44:25 +02:00
|
|
|
|
|
|
|
types.o:types.c
|
|
|
|
$(FREEC) $^
|
|
|
|
|
|
|
|
idt.o:idt.c
|
|
|
|
$(FREEC) $^
|
|
|
|
|
|
|
|
keyboard.o:keyboard.c
|
|
|
|
$(FREEC) $^
|
|
|
|
|
|
|
|
timer.o:timer.c
|
|
|
|
$(FREEC) $^
|
2007-04-02 14:52:01 +02:00
|
|
|
|
2007-04-02 15:21:56 +02:00
|
|
|
video.o:video.c
|
2007-04-02 15:04:21 +02:00
|
|
|
$(FREEC) $^
|
|
|
|
|
2007-04-02 15:21:56 +02:00
|
|
|
port.o:port.c
|
|
|
|
$(FREEC) $^
|
|
|
|
|
|
|
|
memory.o:memory.c
|
2007-04-02 14:52:01 +02:00
|
|
|
$(FREEC) $^
|
|
|
|
clean:
|
|
|
|
rm -f *.o
|
|
|
|
|