os/vfs/Makefile

14 lines
337 B
Makefile
Raw Normal View History

C_SOURCES = $(wildcard *.c)
OBJ = $(C_SOURCES:.c=.o)
CFLAGS = -Wall -g --sysroot=../sysroot -isystem=/usr/include -nostdlib
CC = i386-elf-gcc
vfs: $(OBJ) ../libc/*
@$(CC) -z max-page-size=4096 -Xlinker -n -o $@ $(CFLAGS) $(OBJ) ../kernel/start.o ../libc/libc.a -lgcc
%.o: %.c
@$(CC) $(CFLAGS) -c $< -o $@
clean:
2019-06-22 10:31:33 -05:00
@rm -rf *.o vfs