1ifeq ($(ARCH), x86_64) 2 CROSS_COMPILE=x86_64-linux-musl- 3else ifeq ($(ARCH), riscv64) 4 CROSS_COMPILE=riscv64-linux-musl- 5endif 6 7CC=$(CROSS_COMPILE)gcc 8 9NAME_PREFIX=test_shm_ 10 11all: sender.c receiver.c test_info.c 12 $(CC) -static -o $(NAME_PREFIX)sender sender.c 13 $(CC) -static -o $(NAME_PREFIX)receiver receiver.c 14 $(CC) -static -o $(NAME_PREFIX)info test_info.c 15 16.PHONY: install clean 17install: all 18 mv $(NAME_PREFIX)sender $(DADK_CURRENT_BUILD_DIR)/ 19 mv $(NAME_PREFIX)receiver $(DADK_CURRENT_BUILD_DIR)/ 20 mv $(NAME_PREFIX)info $(DADK_CURRENT_BUILD_DIR)/ 21 22clean: 23 rm $(NAME_PREFIX)receiver $(NAME_PREFIX)sender $(NAME_PREFIX)info *.o 24 25fmt: 26