1234567891011121314151617181920 |
- ifeq ($(ARCH), x86_64)
- CROSS_COMPILE=x86_64-linux-musl-
- else ifeq ($(ARCH), riscv64)
- CROSS_COMPILE=riscv64-linux-musl-
- endif
- CC=$(CROSS_COMPILE)gcc
- .PHONY: all
- all: main.c
- $(CC) -static -o test_fifo_write main.c
- .PHONY: install clean
- install: all
- mv test_fifo_write $(DADK_CURRENT_BUILD_DIR)/test_fifo_write
- clean:
- rm test_fifo_write *.o
- fmt:
|