mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-18 08:06:32 +00:00
🆕 加载elf文件
This commit is contained in:
12
kernel/common/Makefile
Normal file
12
kernel/common/Makefile
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
CFLAGS += -I .
|
||||
|
||||
kernel_common_subdirs:=libELF
|
||||
|
||||
all:
|
||||
@list='$(kernel_common_subdirs)'; for subdir in $$list; do \
|
||||
echo "make all in $$subdir";\
|
||||
cd $$subdir;\
|
||||
$(MAKE) all CFLAGS="$(CFLAGS) -I";\
|
||||
cd ..;\
|
||||
done
|
8
kernel/common/libELF/Makefile
Normal file
8
kernel/common/libELF/Makefile
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
all: elf.o
|
||||
|
||||
CFLAGS += -I .
|
||||
|
||||
|
||||
elf.o: elf.c
|
||||
gcc $(CFLAGS) -c elf.c -o elf.o
|
Reference in New Issue
Block a user