2012-04-23 01:14:34 +00:00
|
|
|
#
|
|
|
|
# CYGWIN
|
|
|
|
#
|
2015-11-10 14:19:06 +01:00
|
|
|
# Make settings for Cygwin
|
2012-04-23 01:14:34 +00:00
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# General Settings, note that strip doesn't do anything on Cygwin, thus empty
|
|
|
|
#
|
|
|
|
LINKMODE ?= SHARED
|
|
|
|
|
|
|
|
#
|
|
|
|
# Define Tools
|
|
|
|
#
|
|
|
|
CC = gcc
|
|
|
|
CXX = g++
|
|
|
|
LINK = $(CXX)
|
|
|
|
LIB = ar -cr
|
|
|
|
RANLIB = ranlib
|
2015-11-12 07:52:20 +01:00
|
|
|
SHLIB = $(CXX) -shared -o $@
|
2012-04-23 01:14:34 +00:00
|
|
|
SHLIBLN = $(POCO_BASE)/build/script/shlibln
|
|
|
|
STRIP =
|
|
|
|
DEP = $(POCO_BASE)/build/script/makedepend.gcc
|
|
|
|
SHELL = sh
|
|
|
|
RM = rm -rf
|
|
|
|
CP = cp
|
|
|
|
MKDIR = mkdir -p
|
|
|
|
|
|
|
|
#
|
|
|
|
# Extension for Shared Libraries
|
|
|
|
#
|
|
|
|
LIBPREFIX = cyg
|
2015-11-10 16:11:53 +01:00
|
|
|
SHAREDLIBEXT = -$(target_version).dll
|
2012-04-23 01:14:34 +00:00
|
|
|
SHAREDLIBLINKEXT = .dll
|
|
|
|
|
2015-11-10 14:19:06 +01:00
|
|
|
IMPPREFIX = lib
|
|
|
|
IMPLIBEXT = -$(target_version).dll.a
|
|
|
|
IMPLIBLINKEXT = .dll.a
|
|
|
|
|
2012-04-23 01:14:34 +00:00
|
|
|
#
|
|
|
|
# Compiler and Linker Flags
|
|
|
|
#
|
|
|
|
CFLAGS =
|
2015-11-10 14:21:45 +01:00
|
|
|
CFLAGS32 =
|
2015-11-12 07:52:20 +01:00
|
|
|
CFLAGS64 =
|
2015-11-17 10:32:05 +01:00
|
|
|
CXXFLAGS = -Wa,-mbig-obj -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_WSTRING
|
2012-04-23 01:14:34 +00:00
|
|
|
CXXFLAGS32 =
|
2015-11-10 14:19:06 +01:00
|
|
|
CXXFLAGS64 = -Wa,-mbig-obj
|
2015-11-12 16:52:07 +01:00
|
|
|
SHLIBFLAGS = -Wl,--out-implib=$(dir $@)$(subst cyg,lib,$(notdir $@)).a -Wl,--export-all-symbols -Wl,--enable-auto-import
|
2015-11-12 07:52:20 +01:00
|
|
|
SHLIBFLAGS32 =
|
|
|
|
SHLIBFLAGS64 =
|
2015-11-12 16:52:07 +01:00
|
|
|
LINKFLAGS =
|
|
|
|
LINKFLAGS32 =
|
2015-11-12 07:52:20 +01:00
|
|
|
LINKFLAGS64 =
|
2015-11-12 16:52:07 +01:00
|
|
|
STATICOPT_CC =
|
|
|
|
STATICOPT_CXX =
|
2012-04-23 01:14:34 +00:00
|
|
|
STATICOPT_LINK = -static
|
|
|
|
SHAREDOPT_CC =
|
2015-11-10 14:21:45 +01:00
|
|
|
SHAREDOPT_CXX =
|
2015-11-12 16:52:07 +01:00
|
|
|
SHAREDOPT_LINK =
|
2012-04-23 01:14:34 +00:00
|
|
|
DEBUGOPT_CC = -g -D_DEBUG
|
|
|
|
DEBUGOPT_CXX = -g -D_DEBUG
|
|
|
|
DEBUGOPT_LINK = -g
|
|
|
|
RELEASEOPT_CC = -DNDEBUG
|
|
|
|
RELEASEOPT_CXX = -DNDEBUG
|
|
|
|
RELEASEOPT_LINK =
|
|
|
|
|
|
|
|
#
|
|
|
|
# System Specific Flags
|
|
|
|
#
|
|
|
|
SYSFLAGS = -D_XOPEN_SOURCE=500
|
|
|
|
|
2015-11-10 14:19:06 +01:00
|
|
|
# give visibility of old BSD typedef like u_short, u_int, u_long...
|
2015-11-12 07:52:20 +01:00
|
|
|
# used in some networking system includes, needed when using PocoNet
|
2015-11-10 14:19:06 +01:00
|
|
|
SYSFLAGS += -D__BSD_VISIBLE
|
|
|
|
|
|
|
|
|
2012-04-23 01:14:34 +00:00
|
|
|
#
|
|
|
|
# System Specific Libraries
|
|
|
|
#
|
|
|
|
SYSLIBS =
|
2015-11-12 07:52:20 +01:00
|
|
|
|
2015-11-17 10:32:05 +01:00
|
|
|
# commented out until OSARCH_POSTFIX be fixed
|
|
|
|
#ifeq ($(findstring x86_64,$(shell uname -m)),x86_64)
|
|
|
|
# OSARCH_64BITS = 1
|
|
|
|
#else
|
|
|
|
# OSARCH_64BITS = 0
|
|
|
|
#endif
|