# Copyright  2004 Sun Microsystems, Inc. All rights reserved. 
# 
# Sun Microsystems, Inc. has intellectual property rights relating to
# technology embodied in the product that is described in this document.
# In particular, and without limitation, these intellectual property rights
# may include one or more of the U.S. patents listed at
# http://www.sun.com/patents and one or more additional patents or pending
# patent applications in the U.S. and in other countries.
# 
# U.S. Government Rights - Commercial software. Government users are subject
# to the Sun Microsystems, Inc. standard license agreement and applicable
# provisions of the FAR and its supplements.
# 
# Use is subject to license terms. 
# 
# This distribution may include materials developed by third parties. Sun,
# Sun Microsystems, the Sun logo, Java and Sun[tm] ONE are trademarks or
# registered trademarks of Sun Microsystems, Inc. in the U.S. and other
# countries. 
# 
# Copyright  2004 Sun Microsystems, Inc. Tous droits rservs. Sun
# Microsystems, Inc. dtient les droits de proprit intellectuels relatifs
#  la technologie incorpore dans le produit qui est dcrit dans ce document.
# En particulier, et ce sans limitation, ces droits de proprit
# intellectuelle peuvent inclure un ou plus des brevets amricains lists
#  l'adresse http://www.sun.com/patents et un ou les brevets supplmentaires
# ou les applications de brevet en attente aux Etats - Unis et dans les
# autres pays.
# 
# L'utilisation est soumise aux termes du contrat de licence.
# 
# Cette distribution peut comprendre des composants dvelopps par des
# tierces parties.
# 
# Sun, Sun Microsystems, le logo Sun, Java et Sun[tm] ONE sont des marques
# de fabrique ou des marques dposes de Sun Microsystems, Inc. aux
# Etats-Unis et dans d'autres pays.
JAVA_HOME=JAVADIR
SHARE_LIB=SHARELIB
JSS_JAR_PATH=JSSJARPATH
BASE_DIR=BASEDIR

ORG_NAME="dc=domain,dc=com"
URL="http://server.domain.com/amserver"
CERT_FILE="certificate.txt"
SERIAL_FILE="serial.txt"

LD_LIBRARY_PATH=JSSPATH:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH

CLASSPATH=.:IS_INSTALL_ETCDIR/IS_PRODNAME/config:${BASE_DIR}/IS_PRODNAME/lib:${BASE_DIR}/IS_PRODNAME/locale:${BASE_DIR}/IS_PRODNAME/lib/am_services.jar:${BASE_DIR}/IS_PRODNAME/lib/am_sdk.jar:${BASE_DIR}/IS_PRODNAME/lib/am_logging.jar:${BASE_DIR}/IS_PRODNAME/lib/servlet.jar:${JSS_JAR_PATH}/jss3.jar:${SHARE_LIB}/jaxp-api.jar:${SHARE_LIB}/sax.jar:${SHARE_LIB}/dom.jar:${SHARE_LIB}/xalan.jar:${SHARE_LIB}/xercesImpl.jar


all: bytecode

bytecode:
	$(JAVA_HOME)/bin/javac -classpath $(CLASSPATH) JCDILogin.java

run:
	$(JAVA_HOME)/bin/java -Djava.util.logging.manager=com.sun.identity.log.LogManager -Djava.util.logging.config.class=com.sun.identity.log.s1is.LogConfigReader -Xbootclasspath:${BASE_DIR}/IS_PRODNAME/lib/jdk_logging.jar:$(JAVA_HOME)/lib/tools.jar:$(JAVA_HOME)/jre/lib/rt.jar:$(JAVA_HOME)/jre/lib/sunrsasign.jar:$(JAVA_HOME)/jre/lib/i18n.jar -classpath $(CLASSPATH) JCDILogin $(ORG_NAME) $(URL) $(CERT_FILE) $(SERIAL_FILE)

clean:
	rm *.class
