######################################################################
##
## This makefile configures the CorbaScript compilation for
##   - OS:  Sun Solaris
##   - C++: SUN C++ 4.2 compiler
##   - ORB: omniORB 3.0.3
##
##  Update the following variables to your configuration.
##

# set the C++ compiler, here is Sun CC.
CXX = CC

# set the C++ linker.
LD = $(CXX)

# set C++ compiler flags, here exception handling.
ifdef ORB_IS_MULTITHREADED
CXXFLAGS =  -mt -DUsePthread -D_REENTRANT
else
CXXFLAGS = 
endif

CXXFLAGS += -D__OMNIORB3__ -D__sparc__ -D__sunos__ -D__OSVERSION__=5

# set the C++ compiler flag to generate make dependencies.
CXXDEPENDFLAG = -xM

# The tool to create new archives.
AR = CC $(CXXFLAGS) $(EXTRA_CPP_FLAGS) -xar -o

# The tool (if needed) to ranlib archives.
RANLIB = :

# The system dynamic libraries needed by your ORB.
# on Sun, omniORB3 need the pthread library.
ifdef ORB_IS_MULTITHREADED
ORB_NEEDED_LIBRARIES = -lpthread -lposix4 -lsocket -lnsl
else
ORB_NEEDED_LIBRARIES = -lsocket -lnsl
endif

# The dynamic library for the dynamic linker (if needed).
SYSTEM_LD_LIBRARIES = -ldl

omniORB3_RELEASE = sun4_sosV_5.5

######################################################################
# don't modify ORB name.

ORB_NAME = omniORB3

######################################################################
##
## end of file 'config/platforms/omniORB3_SUN_CC'.
##
######################################################################
