Use config_ver.h in Makefiles
parent
2308ca264f
commit
432580c53a
|
|
@ -999,7 +999,7 @@ ifeq ($(findstring lean,$(MAKECMDGOALS)),lean)
|
||||||
endif # Dead code stripping
|
endif # Dead code stripping
|
||||||
|
|
||||||
# For Shared Objects, Diff, Dist/Zip rules
|
# For Shared Objects, Diff, Dist/Zip rules
|
||||||
LIB_VER := $(shell $(GREP) "define CRYPTOPP_VERSION" config.h | cut -d" " -f 3)
|
LIB_VER := $(shell $(GREP) "define CRYPTOPP_VERSION" config_ver.h | cut -d" " -f 3)
|
||||||
LIB_MAJOR := $(shell echo $(LIB_VER) | cut -c 1)
|
LIB_MAJOR := $(shell echo $(LIB_VER) | cut -c 1)
|
||||||
LIB_MINOR := $(shell echo $(LIB_VER) | cut -c 2)
|
LIB_MINOR := $(shell echo $(LIB_VER) | cut -c 2)
|
||||||
LIB_PATCH := $(shell echo $(LIB_VER) | cut -c 3)
|
LIB_PATCH := $(shell echo $(LIB_VER) | cut -c 3)
|
||||||
|
|
|
||||||
|
|
@ -613,7 +613,7 @@ TESTOBJS := $(TESTSRCS:.cpp=.o)
|
||||||
LIBOBJS := $(filter-out $(TESTOBJS),$(OBJS))
|
LIBOBJS := $(filter-out $(TESTOBJS),$(OBJS))
|
||||||
|
|
||||||
# For Shared Objects, Diff, Dist/Zip rules
|
# For Shared Objects, Diff, Dist/Zip rules
|
||||||
LIB_VER := $(shell $(EGREP) "define CRYPTOPP_VERSION" config.h | cut -d" " -f 3)
|
LIB_VER := $(shell $(EGREP) "define CRYPTOPP_VERSION" config_ver.h | cut -d" " -f 3)
|
||||||
LIB_MAJOR := $(shell echo $(LIB_VER) | cut -c 1)
|
LIB_MAJOR := $(shell echo $(LIB_VER) | cut -c 1)
|
||||||
LIB_MINOR := $(shell echo $(LIB_VER) | cut -c 2)
|
LIB_MINOR := $(shell echo $(LIB_VER) | cut -c 2)
|
||||||
LIB_PATCH := $(shell echo $(LIB_VER) | cut -c 3)
|
LIB_PATCH := $(shell echo $(LIB_VER) | cut -c 3)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue