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:
11
Makefile
11
Makefile
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user