os/vfs/Makefile

14 lines
349 B
Makefile
Raw Normal View History

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