From 6fbb749431631b46f31a0b9e5a92b5452b982ed6 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Thu, 30 Sep 2021 13:34:55 +0100 Subject: [PATCH] 7.4 -> 7.5 --- Makefile | 10 +++++----- mongoose.h | 2 +- src/version.h | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index c6f56ac6..b17030e5 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ IPV6 ?= 1 ASAN_OPTIONS ?= EXAMPLES := $(wildcard examples/*) PREFIX ?= /usr/local -SOVERSION = 7.4 +VERSION ?= $(shell cut -d'"' -f2 src/version.h) .PHONY: examples test ifeq "$(SSL)" "MBEDTLS" @@ -110,16 +110,16 @@ linux++: linux linux-libs: CFLAGS += -fPIC linux-libs: mongoose.o - $(CC) mongoose.o $(LDFLAGS) -shared -o libmongoose.so.$(SOVERSION) + $(CC) mongoose.o $(LDFLAGS) -shared -o libmongoose.so.$(VERSION) $(AR) rcs libmongoose.a mongoose.o install: linux-libs - install -Dm644 libmongoose.a libmongoose.so.$(SOVERSION) $(DESTDIR)$(PREFIX)/lib - ln -s libmongoose.so.$(SOVERSION) $(DESTDIR)$(PREFIX)/lib/libmongoose.so + install -Dm644 libmongoose.a libmongoose.so.$(VERSION) $(DESTDIR)$(PREFIX)/lib + ln -s libmongoose.so.$(VERSION) $(DESTDIR)$(PREFIX)/lib/libmongoose.so install -Dm644 mongoose.h $(DESTDIR)$(PREFIX)/include/mongoose.h uninstall: - rm -rf $(DESTDIR)$(PREFIX)/lib/libmongoose.a $(DESTDIR)$(PREFIX)/lib/libmongoose.so.$(SOVERSION) $(DESTDIR)$(PREFIX)/include/mongoose.h $(DESTDIR)$(PREFIX)/lib/libmongoose.so + rm -rf $(DESTDIR)$(PREFIX)/lib/libmongoose.a $(DESTDIR)$(PREFIX)/lib/libmongoose.so.$(VERSION) $(DESTDIR)$(PREFIX)/include/mongoose.h $(DESTDIR)$(PREFIX)/lib/libmongoose.so mongoose.c: Makefile $(wildcard src/*) (cat src/license.h; echo; echo '#include "mongoose.h"' ; (for F in src/private.h src/*.c ; do echo; echo '#ifdef MG_ENABLE_LINES'; echo "#line 1 \"$$F\""; echo '#endif'; cat $$F | sed -e 's,#include ".*,,'; done))> $@ diff --git a/mongoose.h b/mongoose.h index 55a828c5..8dca8175 100644 --- a/mongoose.h +++ b/mongoose.h @@ -18,7 +18,7 @@ #ifndef MONGOOSE_H #define MONGOOSE_H -#define MG_VERSION "7.4" +#define MG_VERSION "7.5" #ifdef __cplusplus extern "C" { diff --git a/src/version.h b/src/version.h index cb7ac1a1..9a8624d1 100644 --- a/src/version.h +++ b/src/version.h @@ -1 +1 @@ -#define MG_VERSION "7.4" +#define MG_VERSION "7.5"