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
|
2018-09-27 17:12:12 +02:00
|
|
|
SRCS= $(wildcard *.c)
|
|
|
|
OBJS= $(SRCS:.c=.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) $^
|
2018-09-27 17:12:12 +02:00
|
|
|
|
2007-04-02 14:52:01 +02:00
|
|
|
clean:
|
|
|
|
rm -f *.o
|
|
|
|
|
2018-09-27 17:12:12 +02:00
|
|
|
indent:
|
|
|
|
indent -linux -i8 -ts8 *.c
|
|
|
|
indent -linux -i8 -ts8 ./VGA/*.c
|