1# 2# s390_linux_glibc2.1.mk - make variables and rules specific 3# to Linux 2.x and glibc-2.1 4# 5 6Linux = 1 7s390Processor = 1 8 9ABSTOP = $(shell cd $(TOP); pwd) 10 11# 12# Python set-up 13# 14# You must set a path to a Python 1.5.2 interpreter. If you do not 15# wish to make a complete installation, you may download a minimal 16# Python from ftp://ftp.uk.research.att.com/pub/omniORB/python/ 17# In that case, uncomment the first line below. 18 19#PYTHON = $(ABSTOP)/$(BINDIR)/omnipython 20#PYTHON = /usr/local/bin/python 21PYTHON = /usr/bin/python 22 23# 24# Include general unix things 25# 26 27include $(THIS_IMPORT_TREE)/mk/unix.mk 28 29 30# 31# Standard programs 32# 33 34AR = ar cq 35 36CPP = /usr/bin/cpp 37 38############################################################################# 39# To use g++ uncomment the following lines: # 40############################################################################# 41CXX = /usr/bin/g++ 42CXXMAKEDEPEND += -D__cplusplus -D__GNUG__ -D__GNUC__ 43CXXDEBUGFLAGS = -O2 44 45CXXLINK = $(CXX) 46CXXLINKOPTIONS = $(CXXDEBUGFLAGS) $(CXXOPTIONS) \ 47 $(patsubst %,-Wl$(comma)-rpath$(comma)%,$(IMPORT_LIBRARY_DIRS)) 48 49CXXOPTIONS = -Wall -Wno-unused 50EgcsMajorVersion = 1 51EgcsMinorVersion = 1 52 53############################################################################# 54# To use KAI C++ uncomment the following lines: # 55############################################################################# 56#KCC = 1 57#AR = KCC --thread_safe -o 58#CXX = /usr/local/KAI/KCC.pu-4.0b-1/KCC_BASE/bin/KCC 59#CXXMAKEDEPEND += -D__cplusplus -D__GNUG__ -D__GNUC__ 60#CXXDEBUGFLAGS = +K0 --one_per --thread_safe --exceptions 61# 62#CXXLINK = $(CXX) 63#CXXLINKOPTIONS = $(CXXDEBUGFLAGS) $(CXXOPTIONS) --thread_safe 64#CXXOPTIONS = 65 66############################################################################# 67CC = /usr/bin/gcc 68CMAKEDEPEND += -D__GNUC__ 69CDEBUGFLAGS = -O 70 71CLINK = $(CC) 72CLINKOPTIONS = $(CDEBUGFLAGS) $(COPTIONS) \ 73 $(patsubst %,-Wl$(comma)-rpath$(comma)%,$(IMPORT_LIBRARY_DIRS)) 74 75INSTALL = install -c 76 77IMPORT_CPPFLAGS += -D__s390__ -D__linux__ -D__OSVERSION__=2 78 79 80# 81# CORBA stuff 82# 83 84CorbaImplementation = OMNIORB 85 86# 87# OMNI thread stuff 88# 89 90ThreadSystem = Posix 91OMNITHREAD_POSIX_CPPFLAGS = -DNoNanoSleep 92OMNITHREAD_CPPFLAGS = -D_REENTRANT 93OMNITHREAD_LIB = $(patsubst %,$(LibSearchPattern),omnithread) 94 95ifndef UseMITthreads 96OMNITHREAD_POSIX_CPPFLAGS += -DPthreadDraftVersion=10 97OMNITHREAD_LIB += -lpthread 98else 99OMNITHREAD_POSIX_CPPFLAGS += -DPthreadDraftVersion=8 100OMNITHREAD_CPPFLAGS += -D_MIT_POSIX_THREADS 101OMNITHREAD_LIB += -lpthreads 102endif 103 104lib_depend := $(patsubst %,$(LibPattern),omnithread) 105OMNITHREAD_LIB_DEPEND := $(GENERATE_LIB_DEPEND) 106 107 108# Default location of the omniORB configuration file [falls back to this if 109# the environment variable OMNIORB_CONFIG is not set] : 110 111OMNIORB_CONFIG_DEFAULT_LOCATION = /etc/omniORB4.cfg 112 113# Default directory for the omniNames log files. 114OMNINAMES_LOG_DEFAULT_LOCATION = /var/omninames 115 116# 117# Shared Library support. 118# 119BuildSharedLibrary = 1 # Enable 120SHAREDLIB_CPPFLAGS = -fPIC # compiler flag 121 122ifeq ($(notdir $(CC)),KCC) 123SharedLibraryPlatformLinkFlagsTemplate = --thread_safe --soname $$soname 124endif 125 126# Add the location of the Open SSL library 127 128# To build the SSL transport, OPEN_SSL_ROOT must be defined and points to 129# the top level directory of the openssl library. The default is to disable 130# the build. 131# 132OPEN_SSL_ROOT = /usr 133# 134 135OPEN_SSL_CPPFLAGS = -I$(OPEN_SSL_ROOT)/include 136OPEN_SSL_LIB = -L$(OPEN_SSL_ROOT)/lib -lssl -lcrypto 137OMNIORB_SSL_LIB += $(OPEN_SSL_LIB) 138OMNIORB_SSL_CPPFLAGS += $(OPEN_SSL_CPPFLAGS) 139 140# 141# everything else is default from unix.mk 142 143