2018-07-24 04:04:07 +02:00
|
|
|
CC=gcc -O0 -g -nostdinc -ffreestanding -fno-builtin -fomit-frame-pointer -Wall -w -m32 -F pe-i386 -I ../include
|
|
|
|
LINK=ld -m elf_i386 -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
|
|
|
|
|