[BACK]Return to common.am CVS log [TXT][DIR] Up to [Development] / failsafe / FailSafe-mgr

File: [Development] / failsafe / FailSafe-mgr / common.am (download)

Revision 1.4, Mon Jul 24 22:36:22 2000 UTC (17 years, 2 months ago) by rusty
Branch: MAIN
Changes since 1.3: +3 -3 lines

Added GPL/LGPL copyright headers & documentation for open source release, and removed CXFS stuff

#  Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.

#  Automake's dependency tracking claims to run one compiler command, but
#  instead runs another which croaks non-GNU compilers.  It would be nice
#  if this was only set when we were using g++.
AUTOMAKE_OPTIONS = no-dependencies

rhlibdir = @RHLIBDIR@
rhcatdir = @RHCATDIR@
rhassocdir = @RHASSOCDIR@
rhprivbindir = @RHPRIVBINDIR@
rhwebbindir = @RHWEBBINDIR@
rhtaskregdir = @RHTASKREGDIR@
fsProductAttrsdir = @FSPRODDIR@/productAttrs
# automake doesn't handle noinst_JAVA correctly.
bogodir = @BOGODIR@

#  This is because rhino #defines a bogus sginap() macro which interferes
#  with failsafe's sginap.h.
CXXFLAGS += -D_SGINAP_H_

# The next two lines add the EXTRA_INCS and EXTRA_LIBS variables to the 
# INCLUDES and LDFLAGS.  These variables aren't set anywhere by automake 
# or autoconf, but you can set these variables in your environment before
# running make to set them.  These variables can be used to point to
# Rhino's .h's and .so's in the event that you want to install
# the Rhino development stuff in someplace other than your root.
INCLUDES =  -I$(top_srcdir)/include $(EXTRA_INCS)
LDFLAGS = -L@RHLIBDIR@ -R @FAILSAFELIBDIR@ $(EXTRA_LIBS)

LDDSOOPTS = -shared

#  The CLASSPATH_ENV for building the packages.
CLASSPATH_ENV = CLASSPATH=$(JAVAROOT):$(RHJARDIR)/sysadm.jar:$(RHJARDIR)/sysadmP.jar:$(RHJARDIR)/swingall.jar

#  If you want to compile your java classes -g or -deprecation, this is the
#  place to do it.
JAVACFLAGS =

##.ftr.java:
##	$(FTRJAVA) $(FTRJAVAOPTS) $*.ftr
%.java: %.ftr
	$(FTRJAVA) $(FTRJAVAOPTS) $<

#  Everything from here down will go away.
PRODUCT_PREFIX = fs

#  Is this a bad idea?
all-local: $(PRODUCT_FILES)

$(PRODUCT_FILES):
##PRODUCT_FILE_MAKERULE= \
	@echo "\t(building $@)"; \
	if test -w $@ ; then \
		rm $@ ; \
		echo "\#\n\# $@\n\#\n\# THIS FILE IS BUILT AUTOMATICALLY -- DO NOT EDIT\n\#\n" > $@ ; \
	fi ; \
	if test -r $(PRODUCT_PREFIX)$@; then \
		cat $(PRODUCT_PREFIX)$@ >> $@ ; \
	fi ; \
	if test -r common$@; then \
		cat common$@ >> $@ ; \
	fi