1
2CFLAGS += -I .
3
4kernel_arch_x86_64_subdirs:= asm
5
6kernel_arch_x86_64_objs:= $(shell find ./*.c)
7
8ECHO:
9	@echo "$@"
10
11
12$(kernel_arch_x86_64_objs): ECHO
13	$(CC) $(CFLAGS) -c $@ -o $@.o
14
15$(kernel_arch_x86_64_subdirs): ECHO
16	$(MAKE) -C $@ all CFLAGS="$(CFLAGS)" ASFLAGS="$(ASFLAGS)" PIC="$(PIC)"
17
18all: $(kernel_arch_x86_64_objs) $(kernel_arch_x86_64_subdirs)
19
20
21clean:
22	echo "Done."