#ident "@(#)cc-sunpro.rul 1.17 17/05/28 " ########################################################################### # Written 1996-2014 by J. Schilling ########################################################################### # # Platform dependent MACROS for SunPro (Studio) cc # ########################################################################### # Copyright (c) J. Schilling ########################################################################### # The contents of this file are subject to the terms of the # Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # with the License. # # See the file CDDL.Schily.txt in this distribution for details. # A copy of the CDDL is also available via the Internet at # http://www.opensource.org/licenses/cddl1.txt # # When distributing Covered Code, include this CDDL HEADER in each # file and include the License file CDDL.Schily.txt from this distribution. ########################################################################### CPPFLAGS= -DSCHILY_BUILD $(CPPOPTS) $(CPPOPTX) $(OSINCDIRS:%=-I%) $(OSDEFS) $(OSDEFSX) CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(SUNPROCOPTOPT) $(COPTX) C++FLAGS= $(C++OPTS) $(C++WARNOPTS) $(C++OPTOPT) $(SUNPROC++OPTOPT) $(C++OPTX) LINTFLAGS= -Nlevel=4 _SUNPROCOPT= $(_UNIQ)$(XARCH_GEN_) __SUNPROCOPT= $(_SUNPROCOPT:$(_UNIQ)=-xarch=generic) SUNPROCOPT= $(__SUNPROCOPT:$(_UNIQ)%=%) SUN_CC32_OPT= $(SUN_CC64_OPT:-m64=-m32) _SUNPROCOPT32= $(_UNIQ)$(SUN_CC32_OPT) __SUNPROCOPT32= $(_SUNPROCOPT32:$(_UNIQ)=-xarch=generic) SUNPROCOPT32= $(__SUNPROCOPT32:$(_UNIQ)%=%) _SUNPROCOPT64= $(_UNIQ)$(SUN_CC64_OPT) __SUNPROCOPT64= $(_SUNPROCOPT64:$(_UNIQ)=-xarch=generic64) SUNPROCOPT64= $(__SUNPROCOPT64:$(_UNIQ)%=%) C_ARCH_= $(C_ARCH:suncc%=%) SUNPROCOPTXX= $(SUNPROCOPT$(C_ARCH_:cc%=%)) XARCH_GEN= $(SUNPROCOPTXX) CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) COPTS= -Xa $(SUNPROCOPTXX) CWOPTS= -v COPTOPT= -O COPTDYN= -Kpic COPTGPROF= -xpg C++OPTS= $(SUNPROCOPTXX) C++WOPTS= C++OPTOPT= -O C++OPTDYN= -Kpic C++OPTGPROF= -xpg LIB_PREFIX= lib LIB_SUFFIX= .a SHL_SUFFIX= .so.1 LIB_C= -lc LIBS_PATH= -L$(OLIBSDIR) LIBS_PATH_STATIC= -L$(OLIBSDIR_STATIC) LDFLAGS= $(LDOPTS) $(LDOPTX) LDLIBS= $(LIBS) $(LIBX) # # Sunpro C/C++ run on Solaris and Linux and both have linkers # that support mapfiles # MAPVERS= $(_MAPVERS) # This enables to use mapfiles LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) LDOPTDYN= -dy -G -ztext -h $(TARGET) $(PMAPVERS:%=-M%) -ldl LNDYNLIB= @$(RM) $(RM_FORCE) $(PTARGET_BASE).so; $(SYMLINK) $(TARGET) $(PTARGET_BASE).so FLOAT_OPTIONS= __CC_COM= $(_UNIQ)$(CC) ___CC_COM= $(__CC_COM:$(_UNIQ)=$(CC_COM_DEF)) CC_COM= $(___CC_COM:$(_UNIQ)%=%) __CC++_COM= $(_UNIQ)$(CCC) ___CC++_COM= $(__CC++_COM:$(_UNIQ)=$(CC++_COM_DEF)) CC++_COM= $(___CC++_COM:$(_UNIQ)%=%) CC_COM_DEF= cc CC++_COM_DEF= CC CC= $(CC_COM_DEF) CCC= $(CC++_COM_DEF) CCCC= @echo " ==> COMPILING \"$@\""; $(CC_COM) $(SUNPROCOPTXX) CC++ = @echo " ==> COMPILING \"$@\""; $(CC++_COM) $(SUNPROCOPTXX) LDCC= @echo " ==> LINKING \"$@\""; $(CC_COM) $(SUNPROCOPTXX) LDCC++ = @echo " ==> LINKING \"$@\""; $(CC++_COM) $(SUNPROCOPTXX) DYNLD= @echo " ==> LINKING dynamic library \"$@\""; $(CC_COM) $(SUNPROCOPTXX) DYNLDC++ = @echo " ==> LINKING dynamic library \"$@\""; $(CC++_COM) $(SUNPROCOPTXX) RMDEP= : MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); $(CC_COM) -xM $(SUNPROCOPTXX) MKDEP_OUT= MKC++DEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); $(CC++_COM) -xM $(SUNPROCOPTXX) MKC++DEP_OUT=