######################################################################
##
## This makefile configures the CorbaScript compilation for
##   - OS:  Linux OS
##   - C++: egcs
##   - ORB: OAK
##
##  Update the following variables to your configuration.
##

# set the C++ compiler, here is egcs.
CXX = g++

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

# set C++ compiler flags, here exception handling.
CXXFLAGS = -Wall -Wwrite-strings -Wno-unused
ifdef ORB_IS_MULTITHREADED
CXXFLAGS += -D_REENTRANT -DOAK_MT -DOAK_THREAD_LIB_posix
endif

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

# The tool to create new archives.
AR = ar crv

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

# The system dynamic libraries needed by your ORB.
# on Linux, OAK need socket and nsl libraries.
ifdef ORB_IS_MULTITHREADED
ORB_NEEDED_LIBRARIES = -lpthread
else
ORB_NEEDED_LIBRARIES =
endif

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

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

ORB_NAME = OAK

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