[Bio] / SoftRelTools / arch_spec_RW.mk Repository:
ViewVC logotype

View of /SoftRelTools/arch_spec_RW.mk

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (download) (annotate) (vendor branch)
Fri Dec 20 20:20:56 2002 UTC (15 years, 11 months ago) by efrank
Branch: BobJacobsen, MAIN
CVS Tags: Head-20-Dec-2002, HEAD
Changes since 1.1: +0 -0 lines

Import from SLAC.  Not sure this is going to serve us, but there is a ton
of experience in this package.

#
# arch_spec_RW.mk
#
# Architecture/site specific makefile fragment
#   for inclusion by packages that use Rogue Wave packages.
#
# Initially, only Tools.h++ is supported by this file.  If BaBar
#   decides to adopt others, they'll be added here also.
#
# RWBASE is the environment variable that drives this. Because the
#   Rogue Wave licenses are issued to individuals, not machines or
#   sites, this is NOT defined here.  A licensed individual should
#   set it in his or her startup files.  Once RWBASE is defined, 
#   this file will define RWLIBDIR (where the libraries are found)
#   and RWINC (where the include files are found).  These names
#   were chosen for consistency with GEANT4 makefiles.
#
#   The preferred location to install RWBASE is /usr/local/rogue
#
# Bob Jacobsen Aug  96
#

# standard definitions
ifeq (,$(RWLIBDIR))
   RWLIBDIR = $(RWBASE)/lib
endif
ifeq (,$(RWINC))
   RWINC    = $(RWBASE)
endif

ifneq (,$(findstring SunOS5,$(BFARCH)))
# use "standard", unless Solaris7
	ifneq (,$(findstring 0 SunOS57,$(sort 0 SunOS57 $(BFARCH))))
		export RWBASE := $(wildcard /opt/SUNWspro/*/include/CC/rw7)
		ifneq (,$(findstring SunOS58,$(BFARCH)))
			override CXXFLAGS += -I/opt/SUNWspro/WS6U1/include/CC/rw7
			override CPPFLAGS += -I/opt/SUNWspro/WS6U1/include/CC/rw7
		endif
	else
		# Don't use new RW now
		#RWCONFIG := xsd
		#RWLIBEXT := 75-$(RWCONFIG)
	endif


else
ifneq (,$(findstring SunOS4,$(BFARCH)))
# use "standard"

else
ifneq (,$(findstring AIX,$(BFARCH)))
# use "standard"

else
ifneq (,$(findstring HP-UX,$(BFARCH)))
# not supported

else
ifneq (,$(findstring OSF,$(BFARCH)))
	# add to RPATH for shared version of library
	override RPATH += $(RWLIBDIR)
else
ifneq (,$(findstring IRIX5,$(BFARCH)))
# use standard

else
ifneq (,$(findstring IRIX6,$(BFARCH)))
# use standard

else
ifneq (,$(findstring Linux,$(BFARCH)))

# Don't use new RW for now
#RWCONFIG := 3s
#RWLIBEXT := $(RWCONFIG)

else

# Nothing found - complain 

ERROR := $(shell echo arch_spec_RW.mk: Could not match BFARCH: $(BFARCH) for arch_spec_RW >& 2 )

endif
endif
endif
endif
endif
endif
endif
endif


override CPPFLAGS  += -I$(RWINC)
override LDFLAGS   += -L$(RWLIBDIR)

ifeq (,$(RWCONFIG))
	override SYSLIB    += -lrwtool
else
	override CPPFLAGS  += -I$(RWINC)/rw/config -D_RWCONFIG_$(RWCONFIG)
	override SYSLIB    += -ltls$(RWLIBEXT)
endif

#-> include add-on file, post-hook
-include SoftRelTools/arch_spec_RW.mk+

export BBRROOT_RWDIR := $(RWLIBDIR)
export BBRROOT_RWNAME := "librwtool.so"

# issue error if RWBASE is not defined
ifeq (,$(RWBASE))
  ERROR := $(shell echo RWBASE not installed, cannot build package using Rogue Wave libaries >& 2 )
endif


MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3