diff --git a/kern/include.mk b/kern/include.mk new file mode 100644 index 0000000..8496555 --- /dev/null +++ b/kern/include.mk @@ -0,0 +1,9 @@ +KERN_SRC := $(wildcard kern/*.c) +KERN_SRC += $(wildcard kern/*.S) + +KERN_OBJ := $(KERN_SRC:.c=.o) +KERN_OBJ := $(KERN_OBJ:.S=.o) + +include kern/libkern/include.mk + +KERN_OBJ += $(LIBKERN_OBJ) diff --git a/kern/libkern/include.mk b/kern/libkern/include.mk new file mode 100644 index 0000000..491b247 --- /dev/null +++ b/kern/libkern/include.mk @@ -0,0 +1,5 @@ +LIBKERN_SRC := $(wildcard kern/libkern/*.c) +LIBKERN_SRC += $(wildcard kern/libkern/*.S) + +LIBKERN_OBJ := $(LIBKERN_SRC:.c=.o) +LIBKERN_OBJ := $(LIBKERN_OBJ:.S=.o)