X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2FMakefile.am;h=1be24ea23ab2387a6d0de14237ec7b1fa32c1005;hb=6446dbaacbf7c0607ea571ed7f5a4f32745544eb;hp=60d1189bff65c8197bec43fc9f3364831f1d6c2a;hpb=c8b57198025c414f8d19577e6846021843c2a751;p=openocd.git diff --git a/src/Makefile.am b/src/Makefile.am index 60d1189bff..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 \ @@ -130,7 +135,10 @@ startup_tcl.c: startup.tcl $(BIN2C) # add startup_tcl.c to make clean list CLEANFILES = startup.tcl startup_tcl.c - +# we do not want generated file in the dist +dist-hook: + rm -f $(distdir)/startup_tcl.c + MAINTAINERCLEANFILES = $(srcdir)/Makefile.in # The "quick" target builds executables & reinstalls the executables