]> sigrok.org Git - sigrok-firmware-fx2lafw.git/blobdiff - Makefile.include
README: Add status, update URL, add more info.
[sigrok-firmware-fx2lafw.git] / Makefile.include
index c4af71dffe1251a4abe835423634ec70c60e0f47..626c5cda8d2d4176af713477c7e27b27a71cc36c 100644 (file)
 ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 ##
 
-FX2LIBDIR ?= ../fx2lib
+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
-