mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-23 03:53:26 +00:00
wrench: 更新Makefile
This commit is contained in:
17
kernel/arch/Makefile
Normal file
17
kernel/arch/Makefile
Normal 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."
|
7
kernel/arch/x86_64/Makefile
Normal file
7
kernel/arch/x86_64/Makefile
Normal 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
|
||||
|
Reference in New Issue
Block a user