1*40348dd8Szwb0x00ifeq ($(ARCH), x86_64) 2*40348dd8Szwb0x00 CROSS_COMPILE=x86_64-linux-musl- 3*40348dd8Szwb0x00else ifeq ($(ARCH), riscv64) 4*40348dd8Szwb0x00 CROSS_COMPILE=riscv64-linux-musl- 5*40348dd8Szwb0x00endif 6*40348dd8Szwb0x00 7*40348dd8Szwb0x00CC=$(CROSS_COMPILE)gcc 8*40348dd8Szwb0x00 9*40348dd8Szwb0x00.PHONY: all 10*40348dd8Szwb0x00all: main.c 11*40348dd8Szwb0x00 $(CC) -static -o test_dup3 main.c 12*40348dd8Szwb0x00 13*40348dd8Szwb0x00.PHONY: install clean 14*40348dd8Szwb0x00install: all 15*40348dd8Szwb0x00 mv test_dup3 $(DADK_CURRENT_BUILD_DIR)/test_dup3 16*40348dd8Szwb0x00 17*40348dd8Szwb0x00clean: 18*40348dd8Szwb0x00 rm test_dup3 *.o 19*40348dd8Szwb0x00 20*40348dd8Szwb0x00fmt: