]> sigrok.org Git - sigrok-firmware-fx2lafw.git/blobdiff - Makefile.include
NEWS: Add today's date as release date for 0.1.0.
[sigrok-firmware-fx2lafw.git] / Makefile.include
index 213b6698e34f936e8fc4fe9cac472bf655131d43..626c5cda8d2d4176af713477c7e27b27a71cc36c 100644 (file)
 ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 ##
 
+OBJCOPY ?= objcopy
 FX2LIBDIR ?= ../../fx2lib
+BUILDDIR ?= build
+SDCCFLAGS += -I../../include
 
-DEBUG ?= 0
-ifeq ($(DEBUG), 1)
-       SDCCFLAGS += -DDEBUG
-else
-       SDCCFLAGS += -DNDEBUG
-endif
-
-SDCCFLAGS += -I../../include/
+$(BUILDDIR)/$(BASENAME).fw: $(BUILDDIR)/$(BASENAME).ihx
+       $(OBJCOPY) -Iihex $< -Obinary $@
 
 include $(FX2LIBDIR)/lib/fx2.mk
-