X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=Makefile.include;h=626c5cda8d2d4176af713477c7e27b27a71cc36c;hb=e323c15dc4d27d452602e147102e6cdfd4c7d0c3;hp=5c01a958019fb4b8b2a2c20332b2c4e0a6458764;hpb=75fd9ca5eeb560caa092d88c04f5b7da7dddfdb0;p=sigrok-firmware-fx2lafw.git diff --git a/Makefile.include b/Makefile.include index 5c01a958..626c5cda 100644 --- a/Makefile.include +++ b/Makefile.include @@ -20,18 +20,9 @@ ## OBJCOPY ?= objcopy - FX2LIBDIR ?= ../../fx2lib BUILDDIR ?= build - -DEBUG ?= 0 -ifeq ($(DEBUG), 1) - SDCCFLAGS += -DDEBUG -else - SDCCFLAGS += -DNDEBUG -endif - -SDCCFLAGS += -I../../include/ +SDCCFLAGS += -I../../include $(BUILDDIR)/$(BASENAME).fw: $(BUILDDIR)/$(BASENAME).ihx $(OBJCOPY) -Iihex $< -Obinary $@