mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-21 17:47:13 +02:00
.github
bin
module
vendor
CPR
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
AIX
ARM-Linux
Alpine
Android
Angstrom
AppleTV
AppleTVSimulator
BeagleBoard
CEGCCARM
CygLinux
Cygwin
Darwin
Darwin-clang
Darwin-clang-libc++
Darwin32
Darwin32-clang
Darwin32-clang-libc++
Darwin64
Darwin64-clang
Darwin64-clang-libc++
DigiEL
ELDK
FreeBSD
FreeBSD-Linux-compat
GCCEMBEDLINUX
HP-UX
Linux
Linux-SolarisStudio
Linux-clang
MinGW
MinGW-CrossEnv
NIOS2-Linux
OSF1
OpenPandora
PPC-Linux
QNX
SH-Linux
SSV-LINUX
SmartOS-gcc
SunOS
SunOS-GCC
SunOS-SunForte
SunOS-SunStudio
SunOS-SunStudio11
SunOS-stdcxx-x86_64
WatchOS
WatchSimulator
Yocto
iPhone
iPhone-clang
iPhone-clang-libc++
iPhoneSimulator
iPhoneSimulator-clang
iPhoneSimulator-clang-libc++
rules
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.
82 lines
2.2 KiB
Plaintext
82 lines
2.2 KiB
Plaintext
#
|
|
# Darwin-clang-libc++
|
|
#
|
|
# Build settings for Mac OS X 10.9 (clang, libc++, x86_64)
|
|
# The build settings defined in this file are compatible
|
|
# with XCode C++ projects.
|
|
#
|
|
# NOTE: This build configuration will build 64-bit binaries.
|
|
# Use the Darwin32-clang-libc++ build configuration to build 32-bit binaries.
|
|
#
|
|
|
|
#
|
|
# General Settings
|
|
#
|
|
LINKMODE ?= SHARED
|
|
|
|
POCO_TARGET_OSARCH ?= x86_64
|
|
POCO_HOST_OSARCH := $(POCO_TARGET_OSARCH)
|
|
ARCHFLAGS ?= -arch $(POCO_TARGET_OSARCH)
|
|
OSFLAGS ?= -mmacosx-version-min=10.9 -isysroot $(shell xcrun --show-sdk-path)
|
|
|
|
OPENSSL_DIR ?= /usr/local/opt/openssl
|
|
|
|
ifeq ($(POCO_TARGET_OSARCH),i386)
|
|
RORELOCS = -read_only_relocs suppress
|
|
endif
|
|
|
|
#
|
|
# Tools
|
|
#
|
|
CC = $(shell xcrun -find clang)
|
|
CXX = $(shell xcrun -find clang++)
|
|
LINK = $(CXX) -bind_at_load
|
|
LIB = libtool -static -o
|
|
RANLIB = ranlib
|
|
SHLIB = $(CXX) -dynamiclib -Wl,-install_name,$(POCO_LIB_INSTALLDIR)/$(notdir \$@) -o $@
|
|
DYLIB = $(CXX) -dynamic -bundle $(RORELOCS) -Wl,-bind_at_load -o $@
|
|
SHLIBLN = $(POCO_BASE)/build/script/shlibln
|
|
STRIP =
|
|
DEP = $(POCO_BASE)/build/script/makedepend.clang
|
|
SHELL = sh
|
|
RM = rm -rf
|
|
CP = cp
|
|
MKDIR = mkdir -p
|
|
|
|
#
|
|
# Extension for Shared Libraries
|
|
#
|
|
SHAREDLIBEXT = .$(target_version).dylib
|
|
SHAREDLIBLINKEXT = .dylib
|
|
|
|
#
|
|
# Compiler and Linker Flags
|
|
#
|
|
CFLAGS = $(ARCHFLAGS) $(OSFLAGS) -std=c99
|
|
CXXFLAGS = $(ARCHFLAGS) $(OSFLAGS) -std=c++14 -stdlib=libc++ -Wall -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-unneeded-internal-declaration
|
|
LINKFLAGS = $(ARCHFLAGS) $(OSFLAGS) -stdlib=libc++
|
|
SHLIBFLAGS = $(ARCHFLAGS) $(OSFLAGS) -stdlib=libc++
|
|
DYLIBFLAGS = $(ARCHFLAGS) $(OSFLAGS) -stdlib=libc++
|
|
STATICOPT_CC =
|
|
STATICOPT_CXX =
|
|
STATICOPT_LINK =
|
|
SHAREDOPT_CC = -fPIC
|
|
SHAREDOPT_CXX = -fPIC
|
|
SHAREDOPT_LINK =
|
|
DEBUGOPT_CC = -O0 -g -gdwarf-2 -fasm-blocks -D_DEBUG=$(DEBUGLEVEL)
|
|
DEBUGOPT_CXX = -O0 -g -gdwarf-2 -fasm-blocks -D_DEBUG=$(DEBUGLEVEL)
|
|
DEBUGOPT_LINK =
|
|
RELEASEOPT_CC = -DNDEBUG -Os -fasm-blocks
|
|
RELEASEOPT_CXX = -DNDEBUG -O2 -fasm-blocks
|
|
RELEASEOPT_LINK =
|
|
|
|
#
|
|
# System Specific Flags
|
|
#
|
|
SYSFLAGS = -DPOCO_HAVE_IPv6 -DPOCO_NO_STAT64 -I$(OPENSSL_DIR)/include
|
|
|
|
#
|
|
# System Specific Libraries
|
|
#
|
|
SYSLIBS = -L$(OPENSSL_DIR)/lib -ldl
|