Add conditional compilation for nginx and redis

master
Jiajie Chen 6 years ago
parent 7bf5f7cf64
commit 586e682f06

@ -71,19 +71,23 @@ endif
busybox: $(busybox) busybox: $(busybox)
nginx: nginx:
ifneq ($(arch), riscv32)
ifneq ($(shell uname), Darwin) ifneq ($(shell uname), Darwin)
mkdir -p $(out_dir) mkdir -p $(out_dir)
@cd nginx && make arch=$(arch) all @cd nginx && make arch=$(arch) all
@cp nginx/build/$(arch)/nginx $(out_dir)/nginx @cp nginx/build/$(arch)/nginx $(out_dir)/nginx
endif endif
endif
redis: redis:
ifneq ($(arch), riscv64)
ifneq ($(shell uname), Darwin) ifneq ($(shell uname), Darwin)
mkdir -p $(out_dir) mkdir -p $(out_dir)
@cd redis && make arch=$(arch) all @cd redis && make arch=$(arch) all
@cp redis/build/$(arch)/redis-server $(out_dir)/redis-server @cp redis/build/$(arch)/redis-server $(out_dir)/redis-server
@cp redis/build/$(arch)/redis-cli $(out_dir)/redis-cli @cp redis/build/$(arch)/redis-cli $(out_dir)/redis-cli
endif endif
endif
build: rust ucore biscuit $(busybox) nginx redis build: rust ucore biscuit $(busybox) nginx redis

Loading…
Cancel
Save