2018-12-04 21:57:44 +01:00
|
|
|
CC=gcc -O0 -g -nostdinc -ffreestanding -fno-builtin -Wall -w -m32 -F pe-i386 -I ../include
|
2018-07-24 04:04:07 +02:00
|
|
|
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:47:27 +02:00
|
|
|
rm -f *.c~
|
|
|
|
rm -f ./VGA/*.c~
|
2007-04-02 14:52:01 +02:00
|
|
|
|
2018-09-27 17:12:12 +02:00
|
|
|
indent:
|
|
|
|
indent -linux -i8 -ts8 *.c
|
|
|
|
indent -linux -i8 -ts8 ./VGA/*.c
|