From 3050565531af2b3a09f2213893f10c64cf9fe43f Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 24 Feb 2021 19:50:20 +0100 Subject: added test app with voice, wifi/cellular data connectivity examples --- fw/fe310/test/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'fw/fe310/test/Makefile') diff --git a/fw/fe310/test/Makefile b/fw/fe310/test/Makefile index 24efa2f..53e6f2d 100644 --- a/fw/fe310/test/Makefile +++ b/fw/fe310/test/Makefile @@ -3,18 +3,20 @@ include ../common.mk CFLAGS += -I../eos -I../bsp/include -I../bsp/drivers LDFLAGS = $(CFLAGS) -L.. -Wl,--gc-sections -nostartfiles -nostdlib -Wl,--start-group -lc -lm -lgcc -leos -Wl,--end-group -T../bsp/default.lds -TARGET = modem +DEPS = main.o status.o phone.o wifi.o cell_data.o modem.o +TARGET = phone all: $(TARGET) %.o: %.c $(CC) $(CFLAGS) -c $< -$(TARGET): $(TARGET).o - $(CC) $< $(LDFLAGS) -o $@ +$(TARGET): $(DEPS) + $(CC) $(DEPS) $(LDFLAGS) -o $@ clean: rm -f *.o *.a $(TARGET) upload: $(TARGET) ../bsp/upload --elf ./$(TARGET) --openocd $(RISCV_OPENOCD_HOME)/bin/openocd --gdb $(RISCV_HOME)/bin/riscv64-unknown-elf-gdb --openocd-config ../bsp/openocd.cfg + -- cgit v1.2.3