X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2FMakefile.am;h=1be24ea23ab2387a6d0de14237ec7b1fa32c1005;hb=d1a16ce9d61cbcf3a56cb578da62370632aa923a;hp=e3adaad843ecddcfbedd0a1112c61ef65fa26daa;hpb=e7c611deeac63e585eb61d6c4cdb54d078c2c579;p=openocd.git diff --git a/src/Makefile.am b/src/Makefile.am index e3adaad843..1be24ea23a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -45,10 +45,11 @@ libopenocd_la_CPPFLAGS = -DPKGBLDDATE=\"`date +%F-%R`\" # guess-rev.sh returns either a repository version ID or "-snapshot" if RELEASE libopenocd_la_CPPFLAGS += -DRELSTR=\"\" +libopenocd_la_CPPFLAGS += -DGITVERSION=\"\" else libopenocd_la_CPPFLAGS += -DRELSTR=\"`$(top_srcdir)/guess-rev.sh $(top_srcdir)`\" -endif libopenocd_la_CPPFLAGS += -DGITVERSION=\"`cd $(top_srcdir) && git describe`\" +endif # add default CPPFLAGS libopenocd_la_CPPFLAGS += $(AM_CPPFLAGS) $(CPPFLAGS) @@ -85,6 +86,9 @@ else if RLINK LIBUSB = -lusb else +if ULINK +LIBUSB = -lusb +else if VSLLINK LIBUSB = -lusb else @@ -93,6 +97,7 @@ endif endif endif endif +endif libopenocd_la_LIBADD = \ $(top_builddir)/src/xsvf/libxsvf.la \