7.4 -> 7.5

This commit is contained in:
Sergey Lyubka 2021-09-30 13:34:55 +01:00
parent 61070d136d
commit 6fbb749431
3 changed files with 7 additions and 7 deletions

View File

@ -13,7 +13,7 @@ IPV6 ?= 1
ASAN_OPTIONS ?= ASAN_OPTIONS ?=
EXAMPLES := $(wildcard examples/*) EXAMPLES := $(wildcard examples/*)
PREFIX ?= /usr/local PREFIX ?= /usr/local
SOVERSION = 7.4 VERSION ?= $(shell cut -d'"' -f2 src/version.h)
.PHONY: examples test .PHONY: examples test
ifeq "$(SSL)" "MBEDTLS" ifeq "$(SSL)" "MBEDTLS"
@ -110,16 +110,16 @@ linux++: linux
linux-libs: CFLAGS += -fPIC linux-libs: CFLAGS += -fPIC
linux-libs: mongoose.o 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 $(AR) rcs libmongoose.a mongoose.o
install: linux-libs install: linux-libs
install -Dm644 libmongoose.a libmongoose.so.$(SOVERSION) $(DESTDIR)$(PREFIX)/lib install -Dm644 libmongoose.a libmongoose.so.$(VERSION) $(DESTDIR)$(PREFIX)/lib
ln -s libmongoose.so.$(SOVERSION) $(DESTDIR)$(PREFIX)/lib/libmongoose.so ln -s libmongoose.so.$(VERSION) $(DESTDIR)$(PREFIX)/lib/libmongoose.so
install -Dm644 mongoose.h $(DESTDIR)$(PREFIX)/include/mongoose.h install -Dm644 mongoose.h $(DESTDIR)$(PREFIX)/include/mongoose.h
uninstall: 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/*) 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))> $@ (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))> $@

View File

@ -18,7 +18,7 @@
#ifndef MONGOOSE_H #ifndef MONGOOSE_H
#define MONGOOSE_H #define MONGOOSE_H
#define MG_VERSION "7.4" #define MG_VERSION "7.5"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View File

@ -1 +1 @@
#define MG_VERSION "7.4" #define MG_VERSION "7.5"