0af58e8725
This patch modifies some gcc parts too, but basically it makes the port respect CFLAGS. Because of bugs in combination with gcc 3.x and some optimization options the CFLAGS are hardcoded (better safe than sorry). I've tested the gcc part of the fix on 4-stable and two 5.x systems. Submitted by: Marius Strobl <marius@alchemy.franken.de> [1] Approved by: maintainer timeout (for devel/stlport)
57 lines
1.1 KiB
Makefile
57 lines
1.1 KiB
Makefile
#
|
|
# Note : This makefile is for Intel(R) C++ Compiler
|
|
#
|
|
|
|
#
|
|
# compiler
|
|
#
|
|
#CC= icc
|
|
#CXX= icpc
|
|
#CFLAGS= -O -ip -axiMKW
|
|
#CXXFLAGS= -O -ip -axiMKW
|
|
|
|
#
|
|
# Basename for libraries
|
|
#
|
|
LIB_BASENAME = libstlport_icc
|
|
|
|
#
|
|
# guts for common stuff
|
|
#
|
|
#
|
|
LINK=ar cr
|
|
# Using icc here is a hack while icpc on FreeBSD is set up to automatically
|
|
# link against libstlport_icc.
|
|
DYN_LINK=$(CC) -mt -shared -o
|
|
|
|
OBJEXT=o
|
|
DYNEXT=so
|
|
STEXT=a
|
|
RM=rm -rf
|
|
PATH_SEP=/
|
|
MKDIR=mkdir -p
|
|
COMP=ICC-FREEBSD
|
|
INSTALL_STEP = install_unix
|
|
|
|
all: gmake_message all_dynamic all_static symbolic_links
|
|
|
|
gmake_message:
|
|
echo "Note : this makefile requires gmake on FreeBSD"
|
|
|
|
include common_macros.mak
|
|
|
|
WARNING_FLAGS= -w1
|
|
|
|
CXXFLAGS_COMMON = -I$(STLPORT_DIR) $(WARNING_FLAGS) $(PTHREAD_CFLAGS) -D_REENTRANT
|
|
|
|
CXXFLAGS_RELEASE_static = $(CXXFLAGS_COMMON) $(CXXFLAGS)
|
|
CXXFLAGS_RELEASE_dynamic = $(CXXFLAGS_COMMON) $(CXXFLAGS) -KPIC
|
|
|
|
CXXFLAGS_DEBUG_static = $(CXXFLAGS_COMMON) -O -g
|
|
CXXFLAGS_DEBUG_dynamic = $(CXXFLAGS_COMMON) -O -KPIC
|
|
|
|
CXXFLAGS_STLDEBUG_static = $(CXXFLAGS_DEBUG_static) -D_STLP_DEBUG
|
|
CXXFLAGS_STLDEBUG_dynamic = $(CXXFLAGS_DEBUG_dynamic) -D_STLP_DEBUG
|
|
|
|
include common_percent_rules.mak
|
|
include common_rules.mak
|