cos2000v2/lib/makefile

24 lines
393 B
Makefile
Executable File

CC=gcc -O0 -g -nostdinc -ffreestanding -fno-builtin -Wall -w -m32 -F pe-i386 -I ../include
LINK=ld -m elf_i386 -r -o
SRCS= $(wildcard *.c)
OBJS= $(SRCS:.c=.o)
all: makeall
makeall: libs.o
libs.o:$(OBJS)
$(LINK) libs.o $(OBJS)
.o: .c
$(CC) $^
clean:
rm -f *.o
rm -f *.c~
rm -f ./VGA/*.c~
indent:
indent -linux -i8 -ts8 *.c
indent -linux -i8 -ts8 ./VGA/*.c