xref: /DragonOS/user/apps/test_pty/Makefile (revision dfe53cf087ef4c7b6db63d992906b062dc63e93f)
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
10all:
11	$(CC) -static -o test_pty test_pty.c
12
13.PHONY: install clean
14install: all
15	mv test_pty $(DADK_CURRENT_BUILD_DIR)/test_pty
16
17clean:
18	rm test_pty *.o
19
20fmt:
21