1*f5b20388Scodeironmanifeq ($(ARCH), x86_64) 2*f5b20388Scodeironman CROSS_COMPILE=x86_64-linux-musl- 3*f5b20388Scodeironmanelse ifeq ($(ARCH), riscv64) 4*f5b20388Scodeironman CROSS_COMPILE=riscv64-linux-musl- 5*f5b20388Scodeironmanendif 6*f5b20388Scodeironman 7*f5b20388ScodeironmanCC=$(CROSS_COMPILE)gcc 8*f5b20388Scodeironman 9*f5b20388Scodeironman.PHONY: all 10*f5b20388Scodeironmanall: main.c 11*f5b20388Scodeironman $(CC) -static -o test_overlayfs main.c 12*f5b20388Scodeironman 13*f5b20388Scodeironman.PHONY: install clean 14*f5b20388Scodeironmaninstall: all 15*f5b20388Scodeironman mv test_overlayfs $(DADK_CURRENT_BUILD_DIR)/test_overlayfs 16*f5b20388Scodeironman 17*f5b20388Scodeironmanclean: 18*f5b20388Scodeironman rm test_overlayfs *.o 19*f5b20388Scodeironman 20*f5b20388Scodeironmanfmt: 21