mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-08 18:26:48 +00:00
* 初步实现Cred * 添加seteuid和setegid * 添加cred测试程序 * 修改Cred::fscmp返回结果为CredFsCmp枚举 * 完善root用户相关信息
21 lines
329 B
Makefile
21 lines
329 B
Makefile
ifeq ($(ARCH), x86_64)
|
|
CROSS_COMPILE=x86_64-linux-musl-
|
|
else ifeq ($(ARCH), riscv64)
|
|
CROSS_COMPILE=riscv64-linux-musl-
|
|
endif
|
|
|
|
CC=$(CROSS_COMPILE)gcc
|
|
|
|
.PHONY: all
|
|
all: main.c
|
|
$(CC) -static -o test_cred main.c
|
|
|
|
.PHONY: install clean
|
|
install: all
|
|
mv test_cred $(DADK_CURRENT_BUILD_DIR)/test_cred
|
|
|
|
clean:
|
|
rm test_cred *.o
|
|
|
|
fmt:
|