1*dfe53cf0SGnoCiYeHifeq ($(ARCH), x86_64) 2*dfe53cf0SGnoCiYeH CROSS_COMPILE=x86_64-linux-musl- 3*dfe53cf0SGnoCiYeHelse ifeq ($(ARCH), riscv64) 4*dfe53cf0SGnoCiYeH CROSS_COMPILE=riscv64-linux-musl- 5*dfe53cf0SGnoCiYeHendif 6*dfe53cf0SGnoCiYeH 7*dfe53cf0SGnoCiYeHCC=$(CROSS_COMPILE)gcc 8*dfe53cf0SGnoCiYeH 9*dfe53cf0SGnoCiYeH 10*dfe53cf0SGnoCiYeHall: 11*dfe53cf0SGnoCiYeH $(CC) -static -o test_pty test_pty.c 12*dfe53cf0SGnoCiYeH 13*dfe53cf0SGnoCiYeH.PHONY: install clean 14*dfe53cf0SGnoCiYeHinstall: all 15*dfe53cf0SGnoCiYeH mv test_pty $(DADK_CURRENT_BUILD_DIR)/test_pty 16*dfe53cf0SGnoCiYeH 17*dfe53cf0SGnoCiYeHclean: 18*dfe53cf0SGnoCiYeH rm test_pty *.o 19*dfe53cf0SGnoCiYeH 20*dfe53cf0SGnoCiYeHfmt: 21