diff options
Diffstat (limited to 'fw/fe310/test/Makefile')
-rw-r--r-- | fw/fe310/test/Makefile | 8 |
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 + |