[makefile] suffix, not prefix

Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
R4SAS 2021-08-06 20:51:25 +03:00 committed by R4SAS
parent 9396827379
commit dc9e5dc2f1

View File

@ -1,20 +1,20 @@
SYS := $(shell $(CXX) -dumpmachine) SYS := $(shell $(CXX) -dumpmachine)
ifneq (, $(findstring darwin, $(SYS))) ifneq (, $(findstring darwin, $(SYS)))
SHARED_PREFIX = dylib SHARED_SUFFIX = dylib
else ifneq (, $(findstring mingw, $(SYS))$(findstring cygwin, $(SYS))) else ifneq (, $(findstring mingw, $(SYS))$(findstring cygwin, $(SYS)))
SHARED_PREFIX = dll SHARED_SUFFIX = dll
else else
SHARED_PREFIX = so SHARED_SUFFIX = so
endif endif
SHLIB := libi2pd.$(SHARED_PREFIX) SHLIB := libi2pd.$(SHARED_SUFFIX)
ARLIB := libi2pd.a ARLIB := libi2pd.a
SHLIB_LANG := libi2pdlang.$(SHARED_PREFIX) SHLIB_LANG := libi2pdlang.$(SHARED_SUFFIX)
ARLIB_LANG := libi2pdlang.a ARLIB_LANG := libi2pdlang.a
SHLIB_CLIENT := libi2pdclient.$(SHARED_PREFIX) SHLIB_CLIENT := libi2pdclient.$(SHARED_SUFFIX)
ARLIB_CLIENT := libi2pdclient.a ARLIB_CLIENT := libi2pdclient.a
SHLIB_WRAP := libi2pdwrapper.$(SHARED_PREFIX) SHLIB_WRAP := libi2pdwrapper.$(SHARED_SUFFIX)
ARLIB_WRAP := libi2pdwrapper.a ARLIB_WRAP := libi2pdwrapper.a
I2PD := i2pd I2PD := i2pd