blob: 2ca61b99f599a56257341c93459031cfcf31442b (
plain) (
tree)
|
|
TEST = cli-test
OBJS = crc32.o mgmt-cli.o test_sdram.o mgmt-dfu.o mgmt-fpga.o
CFLAGS += -I$(LIBCLI_DIR)
LIBS += $(LIBCLI_DIR)/libcli.a
all: $(TEST:=.elf)
%.elf: %.o $(BOARD_OBJS) $(OBJS) $(LIBS)
$(CC) $(CFLAGS) $^ -o $@ -T$(LDSCRIPT) -g -Wl,-Map=$*.map
$(OBJCOPY) -O binary $*.elf $*.bin
$(SIZE) $*.elf
clean:
rm -f *.o
rm -f *.elf
rm -f *.bin
rm -f *.map
|