wrench: 更新Makefile

This commit is contained in:
fslongjin
2022-07-25 11:05:30 +08:00
parent 9dfd4d9d6e
commit a3b5102a36
23 changed files with 427 additions and 351 deletions

17
kernel/arch/Makefile Normal file
View File

@ -0,0 +1,17 @@
CFLAGS += -I .
ifeq ($(ARCH), __x86_64__)
kernel_arch_subdirs:=x86_64
endif
all:
@list='$(kernel_arch_subdirs)'; for subdir in $$list; do \
echo "make all in $$subdir";\
cd $$subdir;\
$(MAKE) all CFLAGS="$(CFLAGS)" PIC="$(PIC)";\
cd ..;\
done
clean:
echo "Done."

View File

@ -0,0 +1,7 @@
CFLAGS += -I .
all: x86_64_ipi.o
x86_64_ipi.o: x86_64_ipi.c
gcc $(CFLAGS) -c x86_64_ipi.c -o x86_64_ipi.o