From b6ee9e637bbb885c29291f3fcc632b05375f6b28 Mon Sep 17 00:00:00 2001 From: Jasper Orschulko Date: Wed, 2 Jun 2021 02:09:55 +0200 Subject: [PATCH 1/3] Makefile: add static and dynamic lib targets --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Makefile b/Makefile index 51602975..e03696c1 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,8 @@ IPV6 ?= 1 ASAN_OPTIONS ?= EXAMPLES := $(wildcard examples/*) EXAMPLE_TARGET ?= example +PREFIX ?= /usr/local +SOVERSION = 7.2 .PHONY: ex test ifeq "$(SSL)" "MBEDTLS" @@ -101,6 +103,19 @@ linux++: CC = g++ linux++: WARN += -Wno-shadow # Ignore "hides constructor for 'struct mg_str'" linux++: linux +linux-libs: CFLAGS += -fPIC +linux-libs: mongoose.o + $(CC) mongoose.o $(LDFLAGS) -shared -o libmongoose.so.$(SOVERSION) + $(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 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 + arm: Makefile mongoose.c mongoose.h test/unit_test.c $(ARM) arm-none-eabi-gcc mongoose.c -c -Itest -DMG_ARCH=MG_ARCH_CUSTOM $(OPTS) $(WARN) $(INCS) -DMG_MAX_HTTP_HEADERS=5 -DMG_ENABLE_LINES -DMG_ENABLE_DIRECTORY_LISTING=0 -DMG_ENABLE_SSI=1 From e69ee90acf656c08b6d3f966b0de1e0c0f496a22 Mon Sep 17 00:00:00 2001 From: Jasper Orschulko Date: Wed, 30 Jun 2021 21:46:58 +0200 Subject: [PATCH 2/3] Makefile: change curly brackets to round brackets Esthetic change which replaces the curly brackets introduced by me in commit b6ee9e637bbb885c29291f3fcc632b05375f6b28 with round brackets. --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index e03696c1..4fa9d9f0 100644 --- a/Makefile +++ b/Makefile @@ -109,12 +109,12 @@ linux-libs: mongoose.o $(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 mongoose.h $(DESTDIR)${PREFIX}/include/mongoose.h + install -Dm644 libmongoose.a libmongoose.so.$(SOVERSION) $(DESTDIR)$(PREFIX)/lib + ln -s libmongoose.so.$(SOVERSION) $(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.$(SOVERSION) $(DESTDIR)$(PREFIX)/include/mongoose.h $(DESTDIR)$(PREFIX)/lib/libmongoose.so arm: Makefile mongoose.c mongoose.h test/unit_test.c $(ARM) arm-none-eabi-gcc mongoose.c -c -Itest -DMG_ARCH=MG_ARCH_CUSTOM $(OPTS) $(WARN) $(INCS) -DMG_MAX_HTTP_HEADERS=5 -DMG_ENABLE_LINES -DMG_ENABLE_DIRECTORY_LISTING=0 -DMG_ENABLE_SSI=1 From 6611348ebf5792505f6d8ee5c3142208d3dd518f Mon Sep 17 00:00:00 2001 From: novlean Date: Thu, 1 Jul 2021 15:02:51 +0100 Subject: [PATCH 3/3] added customers references --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 792f4265..d478523b 100644 --- a/README.md +++ b/README.md @@ -26,13 +26,13 @@ robust, and easy. Features include: # Commercial use - Mongoose is used by hundreds of businesses, from Fortune500 giants like - Siemens, Bosch, Google, Samsung, Qualcomm, Caterpillar to the small businesses + Siemens, Schneider Electric, Broadcom, Bosch, Google, Samsung, Qualcomm, Caterpillar to the small businesses - Used to solve a wide range of business needs, like implementing Web UI interface on devices, RESTful API services, telemetry data exchange, remote control for a product, remote software updates, remote monitoring, and others - Deployed to hundreds of millions devices in production environment worldwide - See [Case Studies](https://cesanta.com/case-studies.html) from our respected - customers like Schneider Electric (industrial automation), Schenck Process + customers like Schneider Electric (industrial automation), Broadcom (semiconductors), Schenck Process (industrial engineering), and others - See [Testimonials](https://cesanta.com/testimonials.html) from engineers that integrated Mongoose in their commercial products