Modified conditional build of lapack routines.
This commit is contained in:
parent
90625234ab
commit
bf1dc9896d
153
lapack/Makefile
153
lapack/Makefile
@ -7,6 +7,11 @@
|
||||
# $Revision$
|
||||
#EHEADER***********************************************************************
|
||||
|
||||
### This is the template file for the lapack sub-directory. When configure
|
||||
### determines whether or not these files are needed, a macro will be
|
||||
### automatically run to replace the # variable with a comment
|
||||
### symbol or a space and create the appropriate file named Makefile.
|
||||
###
|
||||
### If internal LAPACK routines are needed, compile in this sub-directory
|
||||
### then copy the files to the utilities directory to be included in
|
||||
### libHYPRE_utilities.a
|
||||
@ -14,75 +19,75 @@
|
||||
|
||||
include ../config/Makefile.config
|
||||
|
||||
${LAPACKNEED}LAPACK_HEADERS = f2c.h hypre_lapack.h
|
||||
${LAPACKNEED}LAPACK_FILES = \
|
||||
${LAPACKNEED}dbdsqr.c\
|
||||
${LAPACKNEED}dgebd2.c\
|
||||
${LAPACKNEED}dgebrd.c\
|
||||
${LAPACKNEED}dgelq2.c\
|
||||
${LAPACKNEED}dgelqf.c\
|
||||
${LAPACKNEED}dgels.c\
|
||||
${LAPACKNEED}dgeqr2.c\
|
||||
${LAPACKNEED}dgeqrf.c\
|
||||
${LAPACKNEED}dgesvd.c\
|
||||
${LAPACKNEED}dlabad.c\
|
||||
${LAPACKNEED}dlabrd.c\
|
||||
${LAPACKNEED}dlacpy.c\
|
||||
${LAPACKNEED}dlae2.c\
|
||||
${LAPACKNEED}dlaev2.c\
|
||||
${LAPACKNEED}dlamch.c\
|
||||
${LAPACKNEED}dlange.c\
|
||||
${LAPACKNEED}dlanst.c\
|
||||
${LAPACKNEED}dlansy.c\
|
||||
${LAPACKNEED}dlapy2.c\
|
||||
${LAPACKNEED}dlarfb.c\
|
||||
${LAPACKNEED}dlarf.c\
|
||||
${LAPACKNEED}dlarfg.c\
|
||||
${LAPACKNEED}dlarft.c\
|
||||
${LAPACKNEED}dlartg.c\
|
||||
${LAPACKNEED}dlas2.c\
|
||||
${LAPACKNEED}dlascl.c\
|
||||
${LAPACKNEED}dlaset.c\
|
||||
${LAPACKNEED}dlasq1.c\
|
||||
${LAPACKNEED}dlasq2.c\
|
||||
${LAPACKNEED}dlasq3.c\
|
||||
${LAPACKNEED}dlasq4.c\
|
||||
${LAPACKNEED}dlasq5.c\
|
||||
${LAPACKNEED}dlasq6.c\
|
||||
${LAPACKNEED}dlasr.c\
|
||||
${LAPACKNEED}dlasrt.c\
|
||||
${LAPACKNEED}dlassq.c\
|
||||
${LAPACKNEED}dlasv2.c\
|
||||
${LAPACKNEED}dlatrd.c\
|
||||
${LAPACKNEED}dorg2l.c\
|
||||
${LAPACKNEED}dorg2r.c\
|
||||
${LAPACKNEED}dorgbr.c\
|
||||
${LAPACKNEED}dorgl2.c\
|
||||
${LAPACKNEED}dorglq.c\
|
||||
${LAPACKNEED}dorgql.c\
|
||||
${LAPACKNEED}dorgqr.c\
|
||||
${LAPACKNEED}dorgtr.c\
|
||||
${LAPACKNEED}dorm2r.c\
|
||||
${LAPACKNEED}dormbr.c\
|
||||
${LAPACKNEED}dorml2.c\
|
||||
${LAPACKNEED}dormlq.c\
|
||||
${LAPACKNEED}dormqr.c\
|
||||
${LAPACKNEED}dpotf2.c\
|
||||
${LAPACKNEED}dpotrf.c\
|
||||
${LAPACKNEED}dpotrs.c\
|
||||
${LAPACKNEED}dsteqr.c\
|
||||
${LAPACKNEED}dsterf.c\
|
||||
${LAPACKNEED}dsyev.c\
|
||||
${LAPACKNEED}dsygs2.c\
|
||||
${LAPACKNEED}dsygst.c\
|
||||
${LAPACKNEED}dsygv.c\
|
||||
${LAPACKNEED}dsytd2.c\
|
||||
${LAPACKNEED}dsytrd.c\
|
||||
${LAPACKNEED}ieeeck.c\
|
||||
${LAPACKNEED}ilaenv.c\
|
||||
${LAPACKNEED}lapack_utils.c\
|
||||
${LAPACKNEED}lsame.c\
|
||||
${LAPACKNEED}xerbla.c
|
||||
#LAPACK_HEADERS = f2c.h hypre_lapack.h
|
||||
#LAPACK_FILES = \
|
||||
#dbdsqr.c\
|
||||
#dgebd2.c\
|
||||
#dgebrd.c\
|
||||
#dgelq2.c\
|
||||
#dgelqf.c\
|
||||
#dgels.c\
|
||||
#dgeqr2.c\
|
||||
#dgeqrf.c\
|
||||
#dgesvd.c\
|
||||
#dlabad.c\
|
||||
#dlabrd.c\
|
||||
#dlacpy.c\
|
||||
#dlae2.c\
|
||||
#dlaev2.c\
|
||||
#dlamch.c\
|
||||
#dlange.c\
|
||||
#dlanst.c\
|
||||
#dlansy.c\
|
||||
#dlapy2.c\
|
||||
#dlarfb.c\
|
||||
#dlarf.c\
|
||||
#dlarfg.c\
|
||||
#dlarft.c\
|
||||
#dlartg.c\
|
||||
#dlas2.c\
|
||||
#dlascl.c\
|
||||
#dlaset.c\
|
||||
#dlasq1.c\
|
||||
#dlasq2.c\
|
||||
#dlasq3.c\
|
||||
#dlasq4.c\
|
||||
#dlasq5.c\
|
||||
#dlasq6.c\
|
||||
#dlasr.c\
|
||||
#dlasrt.c\
|
||||
#dlassq.c\
|
||||
#dlasv2.c\
|
||||
#dlatrd.c\
|
||||
#dorg2l.c\
|
||||
#dorg2r.c\
|
||||
#dorgbr.c\
|
||||
#dorgl2.c\
|
||||
#dorglq.c\
|
||||
#dorgql.c\
|
||||
#dorgqr.c\
|
||||
#dorgtr.c\
|
||||
#dorm2r.c\
|
||||
#dormbr.c\
|
||||
#dorml2.c\
|
||||
#dormlq.c\
|
||||
#dormqr.c\
|
||||
#dpotf2.c\
|
||||
#dpotrf.c\
|
||||
#dpotrs.c\
|
||||
#dsteqr.c\
|
||||
#dsterf.c\
|
||||
#dsyev.c\
|
||||
#dsygs2.c\
|
||||
#dsygst.c\
|
||||
#dsygv.c\
|
||||
#dsytd2.c\
|
||||
#dsytrd.c\
|
||||
#ieeeck.c\
|
||||
#ilaenv.c\
|
||||
#lapack_utils.c\
|
||||
#lsame.c\
|
||||
#xerbla.c
|
||||
|
||||
OBJS = ${LAPACK_FILES:.c=.o}
|
||||
|
||||
@ -92,11 +97,11 @@ OBJS = ${LAPACK_FILES:.c=.o}
|
||||
|
||||
all: ${OBJS}
|
||||
@\
|
||||
${LAPACKNEED}for file in ${OBJS}; \
|
||||
${LAPACKNEED}do \
|
||||
${LAPACKNEED} (cp -fp $$file ../utilities); \
|
||||
${LAPACKNEED}done
|
||||
${LAPACKNEED}cp -fp ${LAPACK_HEADERS} ../utilities
|
||||
#for file in ${OBJS}; \
|
||||
#do \
|
||||
# (cp -fp $$file ../utilities); \
|
||||
#done
|
||||
#cp -fp ${LAPACK_HEADERS} ../utilities
|
||||
|
||||
install: all
|
||||
|
||||
|
||||
117
lapack/Makefile.template
Executable file
117
lapack/Makefile.template
Executable file
@ -0,0 +1,117 @@
|
||||
#BHEADER***********************************************************************
|
||||
# (c) 2000 The Regents of the University of California
|
||||
#
|
||||
# See the file COPYRIGHT for a complete copyright
|
||||
# notice, contact person, and disclaimer.
|
||||
#
|
||||
# $Revision$
|
||||
#EHEADER***********************************************************************
|
||||
|
||||
### This is the template file for the lapack sub-directory. When configure
|
||||
### determines whether or not these files are needed, a macro will be
|
||||
### automatically run to replace the ${LAPACKINTERNAL} variable with a comment
|
||||
### symbol or a space and create the appropriate file named Makefile.
|
||||
###
|
||||
### If internal LAPACK routines are needed, compile in this sub-directory
|
||||
### then copy the files to the utilities directory to be included in
|
||||
### libHYPRE_utilities.a
|
||||
###
|
||||
|
||||
include ../config/Makefile.config
|
||||
|
||||
${LAPACKINTERNAL}LAPACK_HEADERS = f2c.h hypre_lapack.h
|
||||
${LAPACKINTERNAL}LAPACK_FILES = \
|
||||
${LAPACKINTERNAL}dbdsqr.c\
|
||||
${LAPACKINTERNAL}dgebd2.c\
|
||||
${LAPACKINTERNAL}dgebrd.c\
|
||||
${LAPACKINTERNAL}dgelq2.c\
|
||||
${LAPACKINTERNAL}dgelqf.c\
|
||||
${LAPACKINTERNAL}dgels.c\
|
||||
${LAPACKINTERNAL}dgeqr2.c\
|
||||
${LAPACKINTERNAL}dgeqrf.c\
|
||||
${LAPACKINTERNAL}dgesvd.c\
|
||||
${LAPACKINTERNAL}dlabad.c\
|
||||
${LAPACKINTERNAL}dlabrd.c\
|
||||
${LAPACKINTERNAL}dlacpy.c\
|
||||
${LAPACKINTERNAL}dlae2.c\
|
||||
${LAPACKINTERNAL}dlaev2.c\
|
||||
${LAPACKINTERNAL}dlamch.c\
|
||||
${LAPACKINTERNAL}dlange.c\
|
||||
${LAPACKINTERNAL}dlanst.c\
|
||||
${LAPACKINTERNAL}dlansy.c\
|
||||
${LAPACKINTERNAL}dlapy2.c\
|
||||
${LAPACKINTERNAL}dlarfb.c\
|
||||
${LAPACKINTERNAL}dlarf.c\
|
||||
${LAPACKINTERNAL}dlarfg.c\
|
||||
${LAPACKINTERNAL}dlarft.c\
|
||||
${LAPACKINTERNAL}dlartg.c\
|
||||
${LAPACKINTERNAL}dlas2.c\
|
||||
${LAPACKINTERNAL}dlascl.c\
|
||||
${LAPACKINTERNAL}dlaset.c\
|
||||
${LAPACKINTERNAL}dlasq1.c\
|
||||
${LAPACKINTERNAL}dlasq2.c\
|
||||
${LAPACKINTERNAL}dlasq3.c\
|
||||
${LAPACKINTERNAL}dlasq4.c\
|
||||
${LAPACKINTERNAL}dlasq5.c\
|
||||
${LAPACKINTERNAL}dlasq6.c\
|
||||
${LAPACKINTERNAL}dlasr.c\
|
||||
${LAPACKINTERNAL}dlasrt.c\
|
||||
${LAPACKINTERNAL}dlassq.c\
|
||||
${LAPACKINTERNAL}dlasv2.c\
|
||||
${LAPACKINTERNAL}dlatrd.c\
|
||||
${LAPACKINTERNAL}dorg2l.c\
|
||||
${LAPACKINTERNAL}dorg2r.c\
|
||||
${LAPACKINTERNAL}dorgbr.c\
|
||||
${LAPACKINTERNAL}dorgl2.c\
|
||||
${LAPACKINTERNAL}dorglq.c\
|
||||
${LAPACKINTERNAL}dorgql.c\
|
||||
${LAPACKINTERNAL}dorgqr.c\
|
||||
${LAPACKINTERNAL}dorgtr.c\
|
||||
${LAPACKINTERNAL}dorm2r.c\
|
||||
${LAPACKINTERNAL}dormbr.c\
|
||||
${LAPACKINTERNAL}dorml2.c\
|
||||
${LAPACKINTERNAL}dormlq.c\
|
||||
${LAPACKINTERNAL}dormqr.c\
|
||||
${LAPACKINTERNAL}dpotf2.c\
|
||||
${LAPACKINTERNAL}dpotrf.c\
|
||||
${LAPACKINTERNAL}dpotrs.c\
|
||||
${LAPACKINTERNAL}dsteqr.c\
|
||||
${LAPACKINTERNAL}dsterf.c\
|
||||
${LAPACKINTERNAL}dsyev.c\
|
||||
${LAPACKINTERNAL}dsygs2.c\
|
||||
${LAPACKINTERNAL}dsygst.c\
|
||||
${LAPACKINTERNAL}dsygv.c\
|
||||
${LAPACKINTERNAL}dsytd2.c\
|
||||
${LAPACKINTERNAL}dsytrd.c\
|
||||
${LAPACKINTERNAL}ieeeck.c\
|
||||
${LAPACKINTERNAL}ilaenv.c\
|
||||
${LAPACKINTERNAL}lapack_utils.c\
|
||||
${LAPACKINTERNAL}lsame.c\
|
||||
${LAPACKINTERNAL}xerbla.c
|
||||
|
||||
OBJS = ${LAPACK_FILES:.c=.o}
|
||||
|
||||
#################################################################
|
||||
# Targets
|
||||
#################################################################
|
||||
|
||||
all: ${OBJS}
|
||||
@\
|
||||
${LAPACKINTERNAL}for file in ${OBJS}; \
|
||||
${LAPACKINTERNAL}do \
|
||||
${LAPACKINTERNAL} (cp -fp $$file ../utilities); \
|
||||
${LAPACKINTERNAL}done
|
||||
${LAPACKINTERNAL}cp -fp ${LAPACK_HEADERS} ../utilities
|
||||
|
||||
install: all
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
|
||||
distclean: clean
|
||||
|
||||
#################################################################
|
||||
# Rules
|
||||
#################################################################
|
||||
|
||||
${OBJS}: ${LAPACK_HEADERS}
|
||||
Loading…
Reference in New Issue
Block a user