1*1074eb34SSamuel Daiifeq ($(ARCH), x86_64) 2*1074eb34SSamuel Dai CROSS_COMPILE=x86_64-linux-musl- 3*1074eb34SSamuel Daielse ifeq ($(ARCH), riscv64) 4*1074eb34SSamuel Dai CROSS_COMPILE=riscv64-linux-musl- 5*1074eb34SSamuel Daiendif 6*1074eb34SSamuel Dai 7*1074eb34SSamuel DaiCC=$(CROSS_COMPILE)gcc 8*1074eb34SSamuel Dai 9*1074eb34SSamuel Dai.PHONY: all 10*1074eb34SSamuel Daiall: main.c 11*1074eb34SSamuel Dai $(CC) -static -o test_ramfs main.c 12*1074eb34SSamuel Dai 13*1074eb34SSamuel Dai.PHONY: install clean 14*1074eb34SSamuel Daiinstall: all 15*1074eb34SSamuel Dai mv test_ramfs $(DADK_CURRENT_BUILD_DIR)/test_ramfs 16*1074eb34SSamuel Dai 17*1074eb34SSamuel Daiclean: 18*1074eb34SSamuel Dai rm test_ramfs *.o 19*1074eb34SSamuel Dai 20*1074eb34SSamuel Daifmt: 21