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