# 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@
# automake doesn't handle noinst_JAVA correctly.
bogodir = @BOGODIR@
# This is so that failsafe includes its os-specific headers from cam.h.
CXXFLAGS += -D_OSDEPENDENT_
# 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@ $(EXTRA_LIBS)
LDDSOOPTS = -shared
# The CLASSPATH_ENV for building the packages.
CLASSPATH_ENV = CLASSPATH=$(JAVAROOT):$(RHJARDIR)/sysadm.jar:$(RHJARDIR)/sysadmP.jar:$(RHJARDIR)/swingall.jar
##.ftr.java:
## $(FTRJAVA) $(FTRJAVAOPTS) $*.ftr
%.java: %.ftr
$(FTRJAVA) $(FTRJAVAOPTS) $<
# To build the FailSafe GUI:
PRODUCT_PREFIX = fs
# To build the CXFS GUI:
#PRODUCT_PREFIX = cx
# 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