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