cos2000v2/lib/makefile

22 lines
382 B
Makefile
Raw Normal View History

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
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
indent:
indent -linux -i8 -ts8 *.c
indent -linux -i8 -ts8 ./VGA/*.c