mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-07-24 17:51:47 +02:00
bin
module
vendor
ConcurrentQueue
Fmt
JSMN
MaxmindDB
POCO
ApacheConnector
CppParser
CppUnit
Crypto
Data
Encodings
Foundation
JSON
JWT
MongoDB
Net
NetSSL_OpenSSL
NetSSL_Win
PDF
PageCompiler
PocoDoc
ProGen
Redis
SevenZip
Util
XML
Zip
appveyor
build
config
rules
compile
dylib
exec
global
lib
sample
script
cmake
contrib
doc
packaging
patches
release
travis
.gitattributes
.gitignore
.gitmodules
.travis.yml
CHANGELOG
CMakeLists.txt
CODE_OF_CONDUCT.md
CONTRIBUTING.md
CONTRIBUTORS
LICENSE
Makefile
NEWS
README
README.md
VERSION
appveyor.yml
build_cmake.cmd
build_cmake.sh
build_vs140.cmd
build_vs150.cmd
build_vs160.cmd
buildwin.cmd
buildwin.ps1
components
configure
cppignore.lnx
cppignore.win
env.bat
env.sh
libversion
SimpleIni
Squirrel
TinyDir
ZMQ
CMakeLists.txt
.gitignore
.gitmodules
CMakeLists.txt
LICENSE
README.md
Switched to POCO library for unified platform/library interface. Deprecated the external module API. It was creating more problems than solving. Removed most built-in libraries in favor of system libraries for easier maintenance. Cleaned and secured code with help from static analyzers.
77 lines
2.5 KiB
Plaintext
77 lines
2.5 KiB
Plaintext
#
|
|
# dylib
|
|
#
|
|
# Rule definitions for building dynamically loadable shared libraries
|
|
#
|
|
|
|
#
|
|
# Target names
|
|
#
|
|
SHL_EXT = $(SHAREDLIBLINKEXT)
|
|
|
|
# Some systems (e.g. Mac OS X) make a difference between
|
|
# shared libraries (as used by the linker/loader) and
|
|
# dynamic libraries, as used for dynamically loadable modules.
|
|
# If no specific instructions for making dynamic libraries
|
|
# are given, use the instructions for making shared libraries.
|
|
|
|
ifndef DYLIB
|
|
DYLIB = $(SHLIB)
|
|
DYLIBFLAGS = $(SHLIBFLAGS)
|
|
endif
|
|
|
|
DYLIB_DEBUG = $(BINPATH)/$(target)d$(OSARCH_POSTFIX)$(SHL_EXT)
|
|
DYLIB_RELEASE = $(BINPATH)/$(target)$(OSARCH_POSTFIX)$(SHL_EXT)
|
|
DYLIB_S_DEBUG = $(BINPATH)/static/$(target)d$(OSARCH_POSTFIX)$(SHL_EXT)
|
|
DYLIB_S_RELEASE = $(BINPATH)/static/$(target)$(OSARCH_POSTFIX)$(SHL_EXT)
|
|
|
|
TARGET_LIBS_DEBUG = $(foreach l,$(target_libs),-l$(l)d$(OSARCH_POSTFIX))
|
|
TARGET_LIBS_RELEASE = $(foreach l,$(target_libs),-l$(l)$(OSARCH_POSTFIX))
|
|
TARGET_LIBS_EXT = $(foreach l,$(target_extlibs),-l$(l)$(OSARCH_POSTFIX))
|
|
|
|
#
|
|
# Include the compile rules
|
|
#
|
|
include $(POCO_BASE)/build/rules/compile
|
|
|
|
#
|
|
# Rules for creating a dynamically loadable shared library
|
|
#
|
|
clean:
|
|
$(RM) $(OBJPATH)
|
|
$(RM) $(DYLIB_DEBUG) $(DYLIB_RELEASE) $(DYLIB_S_DEBUG) $(DYLIB_S_RELEASE)
|
|
|
|
distclean: clean
|
|
$(RM) obj
|
|
$(RM) .dep
|
|
|
|
static_debug: static_bindirs $(DYLIB_S_DEBUG)
|
|
static_release: static_bindirs $(DYLIB_S_RELEASE)
|
|
shared_debug: bindirs $(DYLIB_DEBUG)
|
|
shared_release: bindirs $(DYLIB_RELEASE)
|
|
|
|
$(DYLIB_DEBUG): $(foreach o,$(objects),$(OBJPATH_DEBUG_SHARED)/$(o).o)
|
|
@echo "** Building dynamic library (debug, shared)" $@
|
|
$(DYLIB) $(DYLIBFLAGS) $^ $(LIBRARY) $(TARGET_LIBS_DEBUG) $(TARGET_LIBS_EXT) $(SYSLIBS)
|
|
$(postbuild)
|
|
|
|
$(DYLIB_RELEASE): $(foreach o,$(objects),$(OBJPATH_RELEASE_SHARED)/$(o).o)
|
|
@echo "** Building dynamic library (release, shared)" $@
|
|
$(DYLIB) $(DYLIBFLAGS) $^ $(LIBRARY) $(TARGET_LIBS_RELEASE) $(TARGET_LIBS_EXT) $(SYSLIBS)
|
|
$(postbuild)
|
|
|
|
$(DYLIB_S_DEBUG): $(foreach o,$(objects),$(OBJPATH_DEBUG_SHARED)/$(o).o)
|
|
@echo "** Building dynamic library (debug, static)" $@
|
|
$(DYLIB) $(DYLIBFLAGS) $^ $(LIBRARY) $(TARGET_LIBS_DEBUG) $(TARGET_LIBS_EXT) $(SYSLIBS)
|
|
$(postbuild)
|
|
|
|
$(DYLIB_S_RELEASE): $(foreach o,$(objects),$(OBJPATH_RELEASE_SHARED)/$(o).o)
|
|
@echo "** Building dynamic library (release, static)" $@
|
|
$(DYLIB) $(DYLIBFLAGS) $^ $(LIBRARY) $(TARGET_LIBS_RELEASE) $(TARGET_LIBS_EXT) $(SYSLIBS)
|
|
$(postbuild)
|
|
|
|
#
|
|
# Include the automatically generated dependency files
|
|
#
|
|
sinclude $(addprefix $(DEPPATH)/,$(addsuffix .d,$(objects)))
|