#
# Makefile,v 1.4 2002/06/19 01:55:23 dsg Exp
# OpenMMS Makefile for directory: src/mms/meta
#
# Copyright 2001 The Regents of the University of California
# All Rights Reserved
#
# OpenMMS was developed by Dr. Douglas S. Greer at the San Diego
# Supercomputer Center, a research unit of the University of California,
# San Diego.  Support for this effort was provided by NSF through the
# Protein Data Bank (Grant DBI-9814284) and the National Partnership for
# Advanced Computational Infrastructure (Grant ACI-9619020)
#
# Permission to use, copy, modify and distribute any part of OpenMMS for
# educational, research and non-profit purposes, without fee, and
# without a written agreement is hereby granted, provided that the above
# copyright notice, this paragraph and the following paragraphs appear
# in all copies.
#
# Those desiring to incorporate this OpenMMS into commercial products or
# use for commercial purposes should contact the Technology Transfer
# Office, University of California, San Diego, 9500 Gilman Drive, La
# Jolla, CA 92093-0910, Ph: (619) 534-5815, FAX: (619) 534-7345.
#
# In no event shall the University of California be liable to any party
# for direct, indirect, special, incidental, or consequential damages,
# including lost profits, arising out of the use of this OpenMMS, even
# if the University of California has been advised of the possibility of
# such damage.
#
# The OpenMMS provided herein is on an "as is" basis, and the
# University of California has no obligation to provide maintenance,
# support, updates, enhancements, or modifications.  The University of
# California makes no representations and extends no warranties of any
# kind, either implied or express, including, but not limited to, the
# implied warranties of merchantability or fitness for a particular
# purpose, or that the use of the OpenMMS will not infringe any patent,
# trademark or other rights.

ifndef TOP_DIR
export TOP_DIR := $(shell (cd ../../..; pwd))
endif
	
.PHONY: $(TOP_DIR)/config/openmms.gmake
include $(TOP_DIR)/config/openmms.gmake

Package        = $(OPENMMS_PACKAGE_SUBDIR)/meta
Sources        = $(wildcard *.java)
Dependencies   = $(CIFPARSE_CLASSES) $(UTIL_CLASSES)
Build_Subdirs  =

idl_target = $(IDL_DIR)/$(LSR_IDL_PRIMARY_FILENAME)

java_command_line =  org.rcsb.openmms.meta.MMSExpr \
		Corba XML Rdb NoMandatoryItems \
		dct=$(DICTIONARY_DIR)/$(CIF_MM_DICTIONARY_NAME) \
		dct=$(DICTIONARY_DIR)/$(EXCHANGE_DICTIONARY_NAME) \
		mmspackage=$(OPENMMS_PACKAGE_NAME) \
		idlpath=$(IDL_DIR) \
		lsrname=$(LSR_BASE_NAME) \
		lsrpackage=$(OMG_PACKAGE_NAME) \
		ldrpath=$(LOADER_DIR) \
		vtypepath=$(VTYPE_DIR) \
		xmlpath=$(DERIV_XML_DIR) \
		sqlpath=$(DERIV_SQL_DIR) \
		insertpath=$(DBINSERT_DIR)

$(BUILD_TARGET):: $(INSTALL_CLASSES)
	$(JAVAR) $(java_command_line) root=$@
	$(TOUCH) $(BUILD_TARGET)

clean::
	-$(RM) -f $(BUILD_TARGET)

include $(TOP_DIR)/config/rules.gmake

init::

fin::
