Download and upload code and query the status of a Cypress FX3 in USB bootloader mode.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
fx3tool/Makefile

18 lines
320 B

default: all
CFLAGS += -g -Og
CXXFLAGS += $(CFLAGS)
all: fx3tool cyimg2elf
fx3tool: download_fx3.cpp libcyusb.cpp cyusb.h
$(CXX) $(CXXFLAGS) -o "$@" download_fx3.cpp libcyusb.cpp -lusb-1.0
cyimg2elf: cyimg2elf.c cyimg.h
$(CC) $(CFLAGS) -o "$@" "$<"
clean:
@$(RM) -v fx3tool cyimg2elf
.PHONY: all default clean