2019-05-24 11:52:13 -05:00
|
|
|
C_SOURCES = $(wildcard *.c)
|
2019-05-25 10:25:15 -05:00
|
|
|
OBJ = $(C_SOURCES:.c=.o)
|
2019-05-24 11:52:13 -05:00
|
|
|
CFLAGS = -I../sysroot/usr/include -Wall -g -ffreestanding
|
|
|
|
CC = i386-elf-gcc
|
|
|
|
|
|
|
|
vfs: $(OBJ)
|
2019-05-25 10:25:15 -05:00
|
|
|
@i386-elf-ld -o $@ $^ ../kernel/start.o ../libc/libc.a
|
2019-05-24 11:52:13 -05:00
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
@$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
|
|
|
|
clean:
|
2019-06-22 10:31:33 -05:00
|
|
|
@rm -rf *.o vfs
|