mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
synced 2025-12-25 23:07:18 +00:00
* Factorize info into new verbose file. Refactor Makefile, global, cpp11*. Add Linux32-clang * Display used config with POCO_VERBOSE * Add cross compilation toward x86 with host amd64 * Refactor config names * Add lib32gcc runtime * Add g++-5-multilib * Use OSARCH=i386 for OSX x86 * Avoid building Crypto since OpenSSL is only x64 on OSX * Avoid building Crypto since OpenSSL is only x64 * Avoid Data/* on cross compilation to x86 * Add gcc-5-multilib to clang 4.0 x86 * Ignore TimerTest on OSX for now. * Cleanup * Add other set of TimerTest. * New test that fails on OSX
90 lines
1.6 KiB
Plaintext
90 lines
1.6 KiB
Plaintext
#
|
|
# $Id$
|
|
#
|
|
# Linux
|
|
#
|
|
# Make settings for Linux/clang
|
|
#
|
|
#
|
|
|
|
#
|
|
# General Settings
|
|
#
|
|
LINKMODE ?= SHARED
|
|
|
|
#
|
|
# Define Tools
|
|
#
|
|
CC ?= clang
|
|
CXX ?= clang++
|
|
LINK = $(CXX)
|
|
LIB = ${CROSS_COMPILE}ar -cr
|
|
RANLIB = ${CROSS_COMPILE}ranlib
|
|
SHLIB = $(CXX) -shared -Wl,-soname,$(notdir $@) -o $@
|
|
SHLIBLN = $(POCO_BASE)/build/script/shlibln
|
|
STRIP = ${CROSS_COMPILE}strip
|
|
DEP = $(POCO_BASE)/build/script/makedepend.gcc
|
|
SHELL = sh
|
|
RM = rm -rf
|
|
CP = cp
|
|
MKDIR = mkdir -p
|
|
|
|
#
|
|
# Extension for Shared Libraries
|
|
#
|
|
SHAREDLIBEXT = .so.$(target_version)
|
|
SHAREDLIBLINKEXT = .so
|
|
|
|
#
|
|
# Compiler and Linker Flags
|
|
#
|
|
CFLAGS =
|
|
CFLAGS32 =
|
|
CFLAGS64 =
|
|
CXXFLAGS = -Wall -Wno-sign-compare -stdlib=libstdc++ -ftemplate-depth=340
|
|
CXXFLAGS32 =
|
|
CXXFLAGS64 =
|
|
LINKFLAGS =
|
|
LINKFLAGS32 =
|
|
LINKFLAGS64 =
|
|
STATICOPT_CC =
|
|
STATICOPT_CXX =
|
|
STATICOPT_LINK = -static
|
|
SHAREDOPT_CC = -fPIC
|
|
SHAREDOPT_CXX = -fPIC
|
|
SHAREDOPT_LINK = -Wl,-rpath,$(LIBPATH)
|
|
DEBUGOPT_CC = -D_DEBUG
|
|
DEBUGOPT_CXX = -D_DEBUG
|
|
DEBUGOPT_LINK =
|
|
RELEASEOPT_CC = -O2 -DNDEBUG
|
|
RELEASEOPT_CXX = -O2 -DNDEBUG
|
|
RELEASEOPT_LINK = -O2
|
|
|
|
#
|
|
# System Specific Flags
|
|
#
|
|
SYSFLAGS = -D_XOPEN_SOURCE=500 -D_REENTRANT -D_THREAD_SAFE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPOCO_HAVE_FD_EPOLL -DPOCO_HAVE_ADDRINFO -DPOCO_HAVE_LIBRESOLV
|
|
|
|
#
|
|
# System Specific Libraries
|
|
#
|
|
SYSLIBS += -lpthread -ldl -lrt
|
|
|
|
#
|
|
# Auto-detect architecture if not specified
|
|
#
|
|
ifndef OSARCH_64BITS
|
|
LBITS := $(shell getconf LONG_BIT)
|
|
ifeq ($(LBITS),64)
|
|
OSARCH_64BITS = 1
|
|
else
|
|
OSARCH_64BITS = 0
|
|
endif
|
|
endif
|
|
|
|
#
|
|
#
|
|
# C++11/14 detection
|
|
#
|
|
include $(POCO_BASE)/build/script/cpp11-clang
|