# # openmms.gmake,v 1.9 2002/07/30 00:30:47 dsg Exp # Definitions for the OpenMMS builds. # # Copyright 2001 Douglas S. Greer # # Variable Naming Convention: # Variables in all lowercase are defined and used locally. # Variables in all uppercase are defined in global gmake files (e.g. # openmms.gmake) but may be used local Makefiles # Variables with only the initial letter uppercase are defined in the # individual Makefiles but used by the global gmake files # gmake optimization directives .PHONY: all .PHONY: init .PHONY: fin .PHONY: Makefile .PHONY: $(TOP_DIR)/config/stddefs.gmake .PHONY: $(TOP_DIR)/config/localdefs.gmake .PHONY: $(TOP_DIR)/config/rules.gmake # define all necessary variables include $(TOP_DIR)/config/localdefs.gmake include $(TOP_DIR)/config/stddefs.gmake # Directory where log files are written LOG_DIR = $(TOP_DIR)/log # class path defintions CLASS_DIR = $(TOP_DIR)/classes # LOCAL_CIF_DATA_DIR is defined in localdefs.gmake and identifies the # directory that contains the entire set of mmCIF data files used by # applications. TEST_CIF_DATA_DIR contains only a few actual mmCIF files # that are included along with the OpenMMS distribution for testing purposes. TEST_DATA_DIR = $(TOP_DIR)/data TEST_CIF_DATA_DIR = $(TEST_DATA_DIR)/mmcif # mmCIF dictionaries DICTIONARY_DIR = $(TOP_DIR)/dicts # CORBA (OMA) idl files defined elsewhere IMPORT_CORBA_DIR = $(TOP_DIR)/import/corba # Directories containing metamodel derived files DERIVED_DIR = $(TOP_DIR)/src/mms/deriv IDL_DIR = $(DERIVED_DIR)/idl LOADER_SUBDIR = loader LOADER_DIR = $(DERIVED_DIR)/$(LOADER_SUBDIR) VTYPE_SUBDIR = vimpl VTYPE_DIR = $(DERIVED_DIR)/$(VTYPE_SUBDIR) DERIV_XML_SUBDIR = xml DERIV_XML_DIR = $(DERIVED_DIR)/$(DERIV_XML_SUBDIR) DERIV_SQL_SUBDIR = sql DERIV_SQL_DIR = $(DERIVED_DIR)/$(DERIV_SQL_SUBDIR) DBINSERT_SUBDIR = dbinsert DBINSERT_DIR = $(DERIVED_DIR)/$(DBINSERT_SUBDIR) # Derived directories except idl DERIV_SUBDIRS = $(LOADER_SUBDIR) $(DBINSERT_SUBDIR) $(DERIV_SQL_SUBDIR) \ $(VTYPE_SUBDIR) # Class Directories OPENMMS_CLASS_DIR = $(CLASS_DIR)/$(OPENMMS_PACKAGE_SUBDIR) OMG_CLASS_DIR = $(CLASS_DIR)/$(OMG_PACKAGE_SUBDIR) # Dictionaries CIF_MM_DICTIONARY_NAME = cif_mm_V2.0.3.dic EXCHANGE_DICTIONARY_NAME = pdbx_exchange.dic # Research Collaboratory for Structural Bioinformatics (RCSB) Packages OPENMMS_PACKAGE_NAME = org.rcsb.openmms OPENMMS_PACKAGE_SUBDIR = org/rcsb/openmms # Object Management Group (OMG) Package OMG_PACKAGE_NAME = org.omg OMG_PACKAGE_SUBDIR = org/omg # Life Sciences Research Task Force (OMG/LSR) MMS definitions LSR_BASE_NAME = DsLSR LSR_MMS_NAME = MacromolecularStructure LSR_PRIMARY_NAME = $(LSR_BASE_NAME)$(LSR_MMS_NAME) LSR_IDL_PRIMARY_FILENAME = $(LSR_PRIMARY_NAME).idl # Classes on which other classes depend CIFPARSE_CLASSES = $(wildcard $(OPENMMS_CLASS_DIR)/cifparse/*.class) UTIL_CLASSES = $(wildcard $(OPENMMS_CLASS_DIR)/util/*.class) IDL_CLASSES = $(wildcard $(OMG_CLASS_DIR)/*/*.class) ENTRY_CLASSES = $(wildcard $(OPENMMS_CLASS_DIR)/cifloader/*.class) DERIV_CLASSES = $(foreach subdir, $(DERIV_SUBDIRS), \ $(wildcard $(OPENMMS_CLASS_DIR)/$(subdir)/*.class)) # Standard definintions for java compiles BUILD_CLASSES = $(Sources:.java=.class) INSTALL_DIR = $(CLASS_DIR)/$(Package) INSTALL_CLASSES = $(foreach c, $(BUILD_CLASSES), $(INSTALL_DIR)/$(c)) # # DEFAULT MAKE TARGET DEFINED HERE # MUST BE THE FIRST TARGET DEFINITION DEFINED IN A MAKEFILE # all: $(BUILD_TARGET) $(BUILD_TARGET):: init