mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-22 11:13:22 +00:00
🆕 运行文件系统中的二进制程序
This commit is contained in:
16
Makefile
16
Makefile
@ -1,8 +1,22 @@
|
||||
SUBDIRS = kernel
|
||||
SUBDIRS = kernel user
|
||||
|
||||
|
||||
|
||||
|
||||
export ARCH=x86_64
|
||||
export ROOT_PATH=$(shell pwd)
|
||||
|
||||
export DEBUG=DEBUG
|
||||
export GLOBAL_CFLAGS := -mcmodel=large -fno-builtin -m64 -O0 -fno-stack-protector -D $(ARCH)
|
||||
|
||||
ifeq ($(DEBUG), DEBUG)
|
||||
GLOBAL_CFLAGS += -g
|
||||
endif
|
||||
|
||||
.PHONY: all
|
||||
all:
|
||||
mkdir -p bin/kernel/
|
||||
mkdir -p bin/user/
|
||||
@list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
echo "make all in $$subdir";\
|
||||
cd $$subdir;\
|
||||
|
Reference in New Issue
Block a user