summaryrefslogtreecommitdiff
path: root/fw/fe310/test/Makefile
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2021-02-24 19:50:20 +0100
committerUros Majstorovic <majstor@majstor.org>2021-02-24 19:50:20 +0100
commit3050565531af2b3a09f2213893f10c64cf9fe43f (patch)
tree689d10ca064dba4480a85b6ec14a4eb8305d5c89 /fw/fe310/test/Makefile
parentd0a0fee0571be63f023f8f6a49a0b76b89871e56 (diff)
added test app with voice, wifi/cellular data connectivity examples
Diffstat (limited to 'fw/fe310/test/Makefile')
-rw-r--r--fw/fe310/test/Makefile8
1 files changed, 5 insertions, 3 deletions
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
+