1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-12-22 04:02:04 +03:00

added soname,real name and linker name outputs

This commit is contained in:
cbishop
2015-04-01 17:40:21 +01:00
committed by bel
parent 8fa073daf3
commit 08dec35eb7

View File

@@ -224,6 +224,11 @@ slib: lib$(CPROG).$(SHARED_LIB)
clean:
$(RMRF) $(BUILD_DIR)
$(eval version=$(shell grep "define CIVETWEB_VERSION" include/civetweb.h | sed 's|.*VERSION "\(.*\)"|\1|g'))
$(eval major=$(shell echo $(version) | cut -d'.' -f1))
$(RMRF) lib$(CPROG).so
$(RMRF) lib$(CPROG).so.$(major)
$(RMRF) lib$(CPROG).so.$(version).0
distclean: clean
@$(RMRF) VS2012/Debug VS2012/*/Debug VS2012/*/*/Debug
@@ -237,7 +242,11 @@ lib$(CPROG).a: $(LIB_OBJECTS)
lib$(CPROG).so: CFLAGS += -fPIC
lib$(CPROG).so: $(LIB_OBJECTS)
$(LCC) -shared -o $@ $(CFLAGS) $(LDFLAGS) $(LIB_OBJECTS)
$(eval version=$(shell grep "define CIVETWEB_VERSION" include/civetweb.h | sed 's|.*VERSION "\(.*\)"|\1|g'))
$(eval major=$(shell echo $(version) | cut -d'.' -f1))
$(LCC) -shared -Wl,-soname,$@.$(major) -o $@.$(version).0 $(CFLAGS) $(LDFLAGS) $(LIB_OBJECTS)
ln -s -f $@.$(major) $@
ln -s -f $@.$(version).0 $@.$(major)
lib$(CPROG).dll: CFLAGS += -fPIC
lib$(CPROG).dll: $(LIB_OBJECTS)