1# 2# x86_osr5.mk - make variables and rules specific to SCO OpenServer 5 3# 4# This file is created by Rod Record <rr@sco.com>. He wrote: 5# I have recently built omniORB 2.5.0 on SCO OpenServer 5. I'm in the 6# process of testing and refining this build. In order to successfully 7# build on SCO OpenServer, it was necessary to apply the patches below 8# and utilize the x86_osr5.mk configuration file (also below). 9# 10# I built on SCO OpenServer 5.0.4 with the GNU development system and 11# FSU Pthreads library from SCO Skunkware : 12# http://www.sco.com/skunkware/osr5/devtools/gcc/ 13# http://www.sco.com/skunkware/osr5/libraries/pthreads/ 14# 15 16OSR5 = 1 17x86Processor = 1 18 19 20# 21# Python set-up 22# 23# You must set a path to a Python 1.5.2 interpreter. 24 25#PYTHON = /usr/local/bin/python 26 27 28# 29# Include general unix things 30# 31 32include $(THIS_IMPORT_TREE)/mk/unix.mk 33 34 35# 36# C preprocessor macro definitions for this architecture 37# 38 39IMPORT_CPPFLAGS += -D__x86__ -D__osr5__ -D__OSVERSION__=5 40 41 42# 43# Standard programs 44# 45 46AR = ar cq 47RANLIB = true 48INSTALL = install -c 49MKDIRHIER = mkdirhier 50 51 52# Use gcc from SCO Skunkware: 53# http://www.sco.com/skunkware/osr5/devtools/gcc/ 54# 55CPP = gcc 56# 57CXX = g++ 58CXXMAKEDEPEND += -D__cplusplus -D__GNUG__ -D__GNUC__ 59CXXDEBUGFLAGS = 60CXXOPTIONS = -fhandle-exceptions -Wall -Wno-unused 61CXXMTFLAG = 62# 63CXXLINK = $(CXX) 64CXXLINKOPTIONS = $(CXXDEBUGFLAGS) $(CXXOPTIONS) 65 66CC = gcc 67CMAKEDEPEND += -D__GNUC__ 68CDEBUGFLAGS = -O 69COPTIONS = -fpcc-struct-return 70 71CLINK = $(CC) 72 73 74# 75# Socket library 76# 77 78SOCKET_LIB = -lsocket -lnsl 79THREAD_LIB = -lthread $(CXXMTFLAG) 80 81 82# 83# CORBA stuff 84# 85 86CorbaImplementation = OMNIORB 87 88# 89# OMNI thread stuff 90# 91# Use FSU Pthread library from SCO Skunkware: 92# http://www.sco.com/skunkware/osr5/libraries/pthreads/ 93# 94OpenServer_OMNITHREAD_LIB = $(patsubst %,$(LibSearchPattern),omnithread) \ 95 -lgthreads $(CXXMTFLAG) 96OpenServer_OMNITHREAD_CPPFLAGS = $(CXXMTFLAG) 97 98Posix_OMNITHREAD_LIB = $(patsubst %,$(LibSearchPattern),omnithread) -lgthreads \ 99 $(CXXMTFLAG) 100Posix_OMNITHREAD_CPPFLAGS = -DUsePthread $(CXXMTFLAG) 101OMNITHREAD_POSIX_CPPFLAGS = -DPthreadDraftVersion=6 \ 102 -DPthreadSupportThreadPriority -DNoNanoSleep 103 104 105OMNITHREAD_LIB = $($(ThreadSystem)_OMNITHREAD_LIB) 106OMNITHREAD_CPPFLAGS = $($(ThreadSystem)_OMNITHREAD_CPPFLAGS) 107 108ThreadSystem = Posix 109 110lib_depend := $(patsubst %,$(LibPattern),omnithread) 111OMNITHREAD_LIB_DEPEND := $(GENERATE_LIB_DEPEND) 112 113 114# 115# OMNI ParTcl stuff 116# 117 118TCLTK_CPPFLAGS = -I/usr/local/include 119TCLTK_LIB = -L/usr/local/lib -ltk8.0 -ltcl8.0 -lm 120X11_CPPFLAGS = 121X11_LIB = -lX11 122WISH4 = /usr/local/bin/wish 123 124OMNIPARTCL_CPPFLAGS = $(TCLTK_CPPFLAGS) $(X11_CPPFLAGS) $(OMNITHREAD_CPPFLAGS) 125OMNIPARTCL_LIB = $(patsubst %,$(LibSearchPattern),omniParTcl) $(TCLTK_LIB) \ 126 $(X11_LIB) $(OMNITHREAD_LIB) 127lib_depend := $(patsubst %,$(LibPattern),omniParTcl) 128OMNIPARTCL_LIB_DEPEND := $(GENERATE_LIB_DEPEND) $(OMNITHREAD_LIB_DEPEND) 129 130# 131# Java and Java/CORBA stuff 132# 133 134JAVA_ROOT = /usr/java 135JAVAIDL_ROOT = /usr/local/javaIDL 136 137# Default location of the omniORB configuration file [falls back to this if 138# the environment variable OMNIORB_CONFIG is not set] : 139 140OMNIORB_CONFIG_DEFAULT_LOCATION = /usr/local/etc/omniORB.cfg 141 142# Default directory for the omniNames log files. 143OMNINAMES_LOG_DEFAULT_LOCATION = /usr/local/var/omninames 144