2012-04-23 03:14:34 +02:00
|
|
|
#
|
|
|
|
# $Id: //poco/1.4/build/config/Linux#2 $
|
|
|
|
#
|
|
|
|
# Linux
|
|
|
|
#
|
|
|
|
# Make settings for Linux 2.6/gcc 3.3
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# General Settings
|
|
|
|
#
|
|
|
|
LINKMODE ?= SHARED
|
|
|
|
|
|
|
|
#
|
|
|
|
# Define Tools
|
|
|
|
#
|
2014-11-10 22:34:59 +01:00
|
|
|
CC = ${CROSS_COMPILE}gcc
|
|
|
|
CXX = ${CROSS_COMPILE}g++
|
2012-04-23 03:14:34 +02:00
|
|
|
LINK = $(CXX)
|
2014-11-10 22:34:59 +01:00
|
|
|
LIB = ${CROSS_COMPILE}ar -cr
|
|
|
|
RANLIB = ${CROSS_COMPILE}ranlib
|
2012-04-23 03:14:34 +02:00
|
|
|
SHLIB = $(CXX) -shared -Wl,-soname,$(notdir $@) -o $@
|
|
|
|
SHLIBLN = $(POCO_BASE)/build/script/shlibln
|
2014-11-10 22:34:59 +01:00
|
|
|
STRIP = ${CROSS_COMPILE}strip
|
2012-04-23 03:14:34 +02:00
|
|
|
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 =
|
2015-12-01 08:06:00 +01:00
|
|
|
CFLAGS32 =
|
|
|
|
CFLAGS64 =
|
2012-04-23 03:14:34 +02:00
|
|
|
CXXFLAGS = -Wall -Wno-sign-compare
|
2015-12-01 08:06:00 +01:00
|
|
|
CXXFLAGS32 =
|
|
|
|
CXXFLAGS64 =
|
2015-11-17 21:07:36 +01:00
|
|
|
SHLIBFLAGS =
|
2015-12-01 08:06:00 +01:00
|
|
|
SHLIBFLAGS32 =
|
|
|
|
SHLIBFLAGS64 =
|
2015-11-17 21:11:51 +01:00
|
|
|
LIBFLAGS =
|
2015-11-30 21:37:33 +01:00
|
|
|
LIBFLAGS32 =
|
|
|
|
LIBFLAGS64 =
|
2012-04-23 03:14:34 +02:00
|
|
|
LINKFLAGS =
|
2015-12-01 08:06:00 +01:00
|
|
|
LINKFLAGS32 =
|
|
|
|
LINKFLAGS64 =
|
2012-04-23 03:14:34 +02:00
|
|
|
STATICOPT_CC =
|
|
|
|
STATICOPT_CXX =
|
|
|
|
STATICOPT_LINK = -static
|
|
|
|
SHAREDOPT_CC = -fPIC
|
|
|
|
SHAREDOPT_CXX = -fPIC
|
|
|
|
SHAREDOPT_LINK = -Wl,-rpath,$(LIBPATH)
|
|
|
|
DEBUGOPT_CC = -g -D_DEBUG
|
|
|
|
DEBUGOPT_CXX = -g -D_DEBUG
|
|
|
|
DEBUGOPT_LINK = -g
|
|
|
|
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
|
|
|
|
|
|
|
|
#
|
|
|
|
# System Specific Libraries
|
|
|
|
#
|
|
|
|
SYSLIBS = -lpthread -ldl -lrt
|
2015-11-06 11:55:21 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# 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
|