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

View of /SoftRelTools/arch_spec_Java.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_Java.mk
#
# Architecture/site specific makefile fragment
#   for inclusion by packages that use Java.
#
# Paul Raines, May 1998
#
# May  8, 1998 - raines
#	first version for SRT
# May 21, 1998 - raines
#	added rules for javadoc and make dependencies
#
#############################################################

# use JAVAVER for JDK version if defined, default is 1.1 series
ifneq (,$(JAVAVER))
  javaver = $(JAVAVER)
else
  javaver = 1.2
endif

# What Java version to use when RUNNING Java programs
ifneq (,$(JAVARUNVER))
  javarunver = $(JAVARUNVER)
else
  javarunver = 1.4
endif
JAVARUNVER = $(javarunver)

JAVAVER = $(javaver)
export JAVAVER
# location of Java installation

#JAVAROOT = /afs/slac.stanford.edu/package/java/@sys/jdk$(javaver)

# root location of 3rd parth (non-JDK) packages

JAVASHAREDROOT = $(BFROOT)/package/java

# standard defines

#JAVAC	   = $(JAVAROOT)/bin/javac
#JAVABIN	   = $(JAVAROOT)/bin/java
#JAVADOC    = $(JAVAROOT)/bin/javadoc
#JARBIN	   = $(JAVAROOT)/bin/jar

JAVAC      = /usr/local/bin/javac
JAVABIN    = /usr/local/bin/java
JAVADOC    = /usr/local/bin/javadoc
JARBIN     = /usr/local/bin/jar

JAVACFLAGS   = -deprecation
JAVADFLAGS   = -author -version

# Tool to make java dependency files

JAVACPP      = CLASSPATH=$(JAVACPPJAR):$(CLASSPATH) java JMakeDepend
JAVACPPJAR   = $(JAVASHAREDROOT)/lib/JMakeDepend.jar
JAVACPPFLAGS = -n -d '$(CLASSTOP)' -x '$(JAVATOP)' -s $(JAVATOP)
#JAVACPP      = "javac -classpath $(JAVACPPJAR) JMakeDepend"

# location of required extra JAR or ZIP files

# starting with JDK1.2 versions, JFC/Swing libraries are included in the
# standard classes.zip
#ifneq (,$(findstring 1.1,$(javaver)))
#ifneq (,$(USEJAVAX))
#  JAVASWING  = $(JAVASHAREDROOT)/lib/swingnew.jar
#else
#  JAVASWING  = $(JAVASHAREDROOT)/lib/swingall.jar
#endif
#else
  JAVASWING  =
#endif

#ifneq (,$(findstring 1.1,$(javaver)))
#  JAVAORACLE = $(JAVASHAREDROOT)/lib/OracleThin1.1.zip
#else
  JAVAORACLE = $(JAVASHAREDROOT)/lib/OracleThin1.2.zip
#endif
JAVAMYSQL = $(JAVASHAREDROOT)/lib/mysql.jar
JAVATLAYOUT = $(JAVASHAREDROOT)/lib/tablelayout21.zip

######################################################################
# CORBA
JAVAVER = $(javaver)
export JAVAVER

# use the idltojava in the JDK release, if present
ifneq (,$(wildcard /usr/local/bin/idltojava))

  # Some versions of idltojava look at the environment variable CPP to 
  # determine the preprocessor to run and CPPARGS for its command line 
  # arguments. Since SRT sets CPP but uses CPPFLAGS instead of CPPARGS, let's
  # unset CPP and let idltojava use the default system preprocessor.
  IDLTOJAVA = unset CPP; /usr/local/bin/idltojava

  # if the version of idltojava is matched to the JDK version, the CORBA
  # classes should be in the standard classes.zip
  JAVAIDL   = 

else

  ifeq (,$(findstring SunOS5,$(BFARCH)))
    IDLTOJAVA = echo ERROR: no idltojava for $(BFARCH); false
  else
    IDLTOJAVA = $(JAVASHAREDROOT)/bin/idltojava
  endif
  JAVAIDL   = $(JAVASHAREDROOT)/lib/JavaIDL.zip

endif
JAVAVER = 

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

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3