From: Joel Holdsworth Date: Mon, 12 Mar 2012 22:07:33 +0000 (+0000) Subject: Added rules to Makefile to convert firmware to binary X-Git-Tag: sigrok-firmware-fx2lafw-0.1.0~43 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=75fd9ca5eeb560caa092d88c04f5b7da7dddfdb0;p=sigrok-firmware-fx2lafw.git Added rules to Makefile to convert firmware to binary --- diff --git a/Makefile.include b/Makefile.include index 213b6698..5c01a958 100644 --- a/Makefile.include +++ b/Makefile.include @@ -19,7 +19,10 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## +OBJCOPY ?= objcopy + FX2LIBDIR ?= ../../fx2lib +BUILDDIR ?= build DEBUG ?= 0 ifeq ($(DEBUG), 1) @@ -30,5 +33,7 @@ endif SDCCFLAGS += -I../../include/ -include $(FX2LIBDIR)/lib/fx2.mk +$(BUILDDIR)/$(BASENAME).fw: $(BUILDDIR)/$(BASENAME).ihx + $(OBJCOPY) -Iihex $< -Obinary $@ +include $(FX2LIBDIR)/lib/fx2.mk