1
2CFLAGS += -I .
3
4
5kernel_fs_objs:= $(shell find ./*.c)
6kernel_fs_subdirs:= devfs VFS fat32 rootfs procfs
7
8ECHO:
9	@echo "$@"
10
11
12$(kernel_fs_objs): ECHO
13	$(CC) $(CFLAGS) -c $@ -o $@.o
14
15$(kernel_fs_subdirs): ECHO
16	$(MAKE) -C $@ all CFLAGS="$(CFLAGS)" ASFLAGS="$(ASFLAGS)" PIC="$(PIC)"
17
18
19all: $(kernel_fs_objs) $(kernel_fs_subdirs)
20
21