1*86ee1395Slinfengifeq ($(ARCH), x86_64) 2*86ee1395Slinfeng CROSS_COMPILE=x86_64-linux-musl- 3*86ee1395Slinfengelse ifeq ($(ARCH), riscv64) 4*86ee1395Slinfeng CROSS_COMPILE=riscv64-linux-musl- 5*86ee1395Slinfengendif 6*86ee1395Slinfeng 7*86ee1395SlinfengCC=$(CROSS_COMPILE)gcc 8*86ee1395Slinfeng 9*86ee1395Slinfeng.PHONY: all 10*86ee1395Slinfengall: main.c 11*86ee1395Slinfeng $(CC) -static -o test_eventfd main.c 12*86ee1395Slinfeng 13*86ee1395Slinfeng.PHONY: install clean 14*86ee1395Slinfenginstall: all 15*86ee1395Slinfeng mv test_eventfd $(DADK_CURRENT_BUILD_DIR)/test_eventfd 16*86ee1395Slinfeng 17*86ee1395Slinfengclean: 18*86ee1395Slinfeng rm test_eventfd *.o 19*86ee1395Slinfeng 20*86ee1395Slinfengfmt: 21