##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ## ## Copyright (C), 2003, ## Steve Quenette, 110 Victoria Street, Melbourne, Victoria, 3053, Australia. ## Californian Institute of Technology, 1200 East California Boulevard, Pasadena, California, 91125, USA. ## University of Texas, 1 University Station, Austin, Texas, 78712, USA. ## ## Authors: ## Stevan M. Quenette, Senior Software Engineer, VPAC. (steve@vpac.org) ## Stevan M. Quenette, Visitor in Geophysics, Caltech. ## Luc Lavier, Research Scientist, The University of Texas. (luc@utig.ug.utexas.edu) ## Luc Lavier, Research Scientist, Caltech. ## ## This program is free software; you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by the ## Free Software Foundation; either version 2, or (at your option) any ## later version. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program; if not, write to the Free Software ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ## ## $Id: Make.mm 955 2004-03-04 18:43:37Z SteveQuenette $ ## ##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include Makefile.def PROJECT = Snac PACKAGE = ${def_mod}module PROJ_LIB = $(BLD_LIBDIR)/$(PACKAGE).a PROJ_DLL = $(BLD_LIBDIR)/$(PACKAGE).$(EXT_SO) PROJ_TMPDIR = $(BLD_TMPDIR)/$(PROJECT)/$(PACKAGE) PROJ_CLEAN += $(PROJ_LIB) $(PROJ_DLL) PROJ_INCDIR = $(BLD_INCDIR)/${def_inc} PROJ_SRCS = ${def_srcs} PROJ_CC_FLAGS += -I$(BLD_INCDIR)/$(PROJECT) -I$(BLD_INCDIR)/Snac -I$(BLD_INCDIR)/StGermain -I$(STGERMAIN_INCDIR)/ -I$(STGERMAIN_INCDIR)/StGermain `xml2-config --cflags` -DCURR_MODULE_NAME=\"${def_mod}\" PROJ_LIBRARIES = -L$(BLD_LIBDIR) -L$(STGERMAIN_LIBDIR)/ -lSnac -lStGermain `xml2-config --libs` $(MPI_LIBPATH) $(MPI_LIBS) LCCFLAGS = # I keep file lists to build a monolith .so from a set of .a's PROJ_OBJS_IN_TMP = ${addprefix $(PROJECT)/$(PACKAGE)/, ${addsuffix .o, ${basename $(PROJ_SRCS)}}} PROJ_OBJLIST = $(BLD_TMPDIR)/$(PROJECT).$(PACKAGE).objlist all: $(PROJ_LIB) dll createObjList export dll: product_dirs $(PROJ_OBJS) $(CC) -o $(PROJ_DLL) $(PROJ_OBJS) $(COMPILER_LCC_SOFLAGS) $(LCCFLAGS) $(PROJ_LIBRARIES) $(EXTERNAL_LIBPATH) $(EXTERNAL_LIBS) createObjList:: @echo ${PROJ_OBJS_IN_TMP} | cat > ${PROJ_OBJLIST} #export:: export-headers export:: export-headers export-libraries EXPORT_HEADERS = ${def_hdrs} EXPORT_LIBS = $(PROJ_LIB) $(PROJ_DLL) check::