2007-04-02 16:35:35 +02:00
|
|
|
CC=gcc -O0 -nostdinc -ffreestanding -fno-builtin -fomit-frame-pointer -Wall -I ../Include
|
2007-04-02 16:14:40 +02:00
|
|
|
LINK=ld -r -o
|
|
|
|
OBJS= memory.o vga.o port.o video.o mouse.o idt.o timer.o keyboard.o types.o string.o graph.o 3d.o math.o cpu.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)
|
2007-04-02 16:14:40 +02:00
|
|
|
$(LINK) libs.o $(OBJS)
|
2007-04-02 15:21:56 +02:00
|
|
|
|
2007-04-02 16:14:40 +02:00
|
|
|
.o: .c
|
|
|
|
$(CC) $^
|
2007-04-02 14:52:01 +02:00
|
|
|
clean:
|
|
|
|
rm -f *.o
|
|
|
|
|