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-11-06 11:30:41 +01:00
|
|
|
CFLAGS32 = -m32
|
|
|
|
CFLAGS64 = -m64
|
2012-04-23 03:14:34 +02:00
|
|
|
CXXFLAGS = -Wall -Wno-sign-compare
|
2015-11-06 11:30:41 +01:00
|
|
|
CXXFLAGS32 = -m32
|
|
|
|
CXXFLAGS64 = -m64
|
2012-04-23 03:14:34 +02:00
|
|
|
LINKFLAGS =
|
2015-11-06 11:30:41 +01:00
|
|
|
LINKFLAGS32 = -m32
|
|
|
|
LINKFLAGS64 = -m64
|
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
|