X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=Makefile.include;h=81c4915a83bc6a4d7e839b7cae0b7eb90cdf8786;hb=5a95b634a88e49ac269a731a2e8596931506b63a;hp=213b6698e34f936e8fc4fe9cac472bf655131d43;hpb=d2c3ea5ab6229485500ffa0cb50c61677193ed9f;p=sigrok-firmware-fx2lafw.git diff --git a/Makefile.include b/Makefile.include index 213b6698..81c4915a 100644 --- a/Makefile.include +++ b/Makefile.include @@ -19,16 +19,14 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -FX2LIBDIR ?= ../../fx2lib +OBJCOPY ?= objcopy -DEBUG ?= 0 -ifeq ($(DEBUG), 1) - SDCCFLAGS += -DDEBUG -else - SDCCFLAGS += -DNDEBUG -endif +FX2LIBDIR ?= ../../fx2lib +BUILDDIR ?= build SDCCFLAGS += -I../../include/ -include $(FX2LIBDIR)/lib/fx2.mk +$(BUILDDIR)/$(BASENAME).fw: $(BUILDDIR)/$(BASENAME).ihx + $(OBJCOPY) -Iihex $< -Obinary $@ +include $(FX2LIBDIR)/lib/fx2.mk