X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=Makefile;h=dee427041a8fc2a73c66b9c74f1063f3a4e673df;hb=c430e296be053c17d4d5f40c53378d401ab07a17;hp=7a9f29453577bff81e1ee872d830d653e501f306;hpb=d5f5ea7394647699061f7185c884328defff9b7d;p=sigrok-firmware-fx2lafw.git diff --git a/Makefile b/Makefile index 7a9f2945..dee42704 100644 --- a/Makefile +++ b/Makefile @@ -18,9 +18,18 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -SOURCES = fx2lafw.c +SOURCES = fx2lafw.c debug.c A51_SOURCES = dscr.a51 BASENAME = fx2lafw -include fx2lib/lib/fx2.mk +FX2LIBDIR ?= fx2lib + +DEBUG ?= 0 +ifeq ($(DEBUG), 1) + SDCCFLAGS += -DDEBUG +else + SDCCFLAGS += -DNDEBUG +endif + +include $(FX2LIBDIR)/lib/fx2.mk