X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2FMakefile.am;h=1be24ea23ab2387a6d0de14237ec7b1fa32c1005;hb=6446dbaacbf7c0607ea571ed7f5a4f32745544eb;hp=1e7af9c760dae0ab7b01a39d8c904d09d7fa9e42;hpb=29f6f6ae5f5cd83cb1cdff04a98bd6232e87a36b;p=openocd.git diff --git a/src/Makefile.am b/src/Makefile.am index 1e7af9c760..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)