[Bio] / SoftRelTools / jGNUmakefile.example Repository:
ViewVC logotype

View of /SoftRelTools/jGNUmakefile.example

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.

# Makefile for Java component of SomePackage under SRT
#
# Steps for a package that has Java code
#   1) make a 'java' directory under your package directory
#   2) copy this file there as GNUmakefile
#   3) copy your java source files there and any other
#      resources your package needs (e.g images, sounds, ...)
#   4) make sure each of your classes inside the Java
#	namespace package 'hep.babar.<pkg>' where <pkg>
#	is your package (see the BABAR Java Policy)
#   5) edit your java/GNUmakefile appropriately
#   6) from the top of the release, run 'gmake <pkg>.java'
#   7) run 'gmake <pkg>.jclean' to clean up.
#
#############################################################

## Java sources
JSRCS   := $(wildcard ./*.java)

## CORBA stuff
## If you need to generate Java classes from IDL, list the
## needed IDL files in the LIBIDLFILES macro.  You probably also
## need to set the flags to the IDL to Java processor in the
## macro IDLTOJAVAFLAGS
#LIBIDLFILES = $(wildcard ../*.idl)
#IDLTOJAVAFLAGS = -fclient -fno-server

## Java JAR product
JAR = $(PACKAGE).jar

## Binary products
## Add to BINCLASSES the list of classes with 'main' functions.  A
## script by the same name as the class with the package name prepended
## will be created in $(bindir) with the CLASSPATH setup and the proper
## call to java
# BINCLASSES = App

## Add to JAVABINOPTS any options to be passed to the Java runtime
## interpreter in the binary script created for each class
## listed in BINCLASSES. There is no support for different options
## for different BINCLASSES.  There is also no support (yet) for
## user passing of Java runtime options.
# JAVABINOPTS = -Dawt.button.color=green

## if non-BaBar jars or paths are needed in CLASSPATH, add
## them colon separated below and uncomment. Use only macros
## for the jar file defined in SoftRelTools/arch_spec_Java.mk
## If one you need is not there, post a request to the
## JavaUsage HyperNews forum.
# EXTRACLASSPATH = $(JAVASWING)

## if jars from BaBar java packages are needed in CLASSPATH, add the
## name of the package (space separated) below and uncomment.  This is
## needed for generating the binary scripts only.  It is also a
## _TEMPORARY_ measure until a "link_all_reco.mk"-like mechanism is
## created for Java.
# JAVAPKGLIST = JavaUtil

## if you have other resources (images, sounds, ...) that need
## to go in the JAR file, list them below.  These will be
## placed in the JAR file at hep/babar/$(PACKAGE).  It is preferred
## that you use a resource subdirectory off your java source directory.
# JAREXTRA = $(wildcard resources/*.gif)

############################################################
include SoftRelTools/jstandard.mk

## If you need to do special things for your JAR manifest,
## edit the target below appropriately 
$(MANIFEST):: $(JSRCS)
	@echo "Creating MANIFEST"
	for class in xx $(basename $(notdir $(JSRCS))) ; do \
	if [ "$$class" = "xx" ]; then continue; fi; \
	if test -f $${class}BeanInfo.java ; then \
	echo "  Class $${class} identified as a Java Bean."; \
	echo "Name: hep/babar/$${PACKAGE}/$${class}.class" >> $(MANIFEST); \
	echo "Java-Bean: True" >> $(MANIFEST); \
	echo "" >> $(MANIFEST); \
	fi ; done

#############################################################

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3