xref: /DragonOS/user/apps/test_statfs/Makefile (revision 597ecc08c2444dcc8f527eb021932718b69c9cc5)
1ifeq ($(ARCH), x86_64)
2	CROSS_COMPILE=x86_64-linux-musl-
3else ifeq ($(ARCH), riscv64)
4	CROSS_COMPILE=riscv64-linux-musl-
5endif
6
7CC=$(CROSS_COMPILE)gcc
8
9.PHONY: all
10all: main.c
11	$(CC) -static -o test_statfs main.c
12
13.PHONY: install clean
14install: all
15	mv test_statfs $(DADK_CURRENT_BUILD_DIR)/test_statfs
16
17clean:
18	rm test_statfs *.o
19
20fmt:
21