cantera/ext/f2c_lapack/Makefile.in
Harry Moffat 05e16e8e35 Added in the PIC autoconf variable, that already existed, into most
of the Makefiles in the code. This variable will now be used
to specify the position independent code compiler option within
Cantera. Note, this bug fix was needed for a 64 bit full python compile
on linux.
2007-04-13 22:39:15 +00:00

139 lines
1.8 KiB
Makefile
Executable file

#/bin/sh
#
# $Source$
# $Author$
# $Revision$
# $Date$
#
.SUFFIXES :
.SUFFIXES : .c .o .d
do_ranlib = @DO_RANLIB@
# the directory where the Cantera libraries are located
CANTERA_LIBDIR=@buildlib@
# the C++ compiler
CXX = @CXX@
# the C compiler
CC = @CC@
# C++ compile flags
PIC_FLAG=@PIC@
CXX_FLAGS = @CXXFLAGS@ $(PIC_FLAG)
# C compile flags
CFLAGS = @CFLAGS@
# Local include files
CXX_INCLUDES=-I../f2c_libs
# How to compile the dependency file
.c.d:
@CXX_DEPENDS@ $(CFLAGS) $(CXX_INCLUDES) $*.c > $*.d
.c.o:
@CC@ -c $< $(CFLAGS) $(CXX_INCLUDES)
# -----------------------------------------------
LAPACKLIB = @buildlib@/libctlapack.a
all: $(LAPACKLIB)
OBJS = \
dbdsqr.o \
dgbtrf.o \
dgbtf2.o \
dgbtrs.o \
dgbsv.o \
dgebd2.o \
dgebrd.o \
dgelq2.o \
dgelqf.o \
dgelss.o \
dgeqr2.o \
dgeqrf.o \
dgetf2.o \
dgetrf.o \
dgetri.o \
dgetrs.o \
dlabad.o \
dlabrd.o \
dlacpy.o \
dlamch.o \
dlange.o \
dlapy2.o \
dlarf.o \
dlarfb.o \
dlarfg.o \
dlarft.o \
dlartg.o \
dlas2.o \
dlascl.o \
dlaset.o \
dlasq1.o \
dlasq2.o \
dlasq3.o \
dlasq4.o \
dlasq5.o \
dlasq6.o \
dlasr.o \
dlasrt.o \
dlassq.o \
dlasv2.o \
dlaswp.o \
dorg2r.o \
dorgbr.o \
dorgl2.o \
dorglq.o \
dorgqr.o \
dorm2r.o \
dormbr.o \
dorml2.o \
dormlq.o \
dormqr.o \
drscl.o \
dtrtri.o \
dtrti2.o \
ieeeck.o \
ilaenv.o
# list of source files
SRCS = $(OBJS:.o=.c)
# List of dependency files to be created
DEPENDS=$(OBJS:.o=.d)
$(LAPACKLIB): $(OBJS)
@ARCHIVE@ $(LAPACKLIB) $(OBJS) > /dev/null
ifeq ($(do_ranlib),1)
@RANLIB@ $(LAPACKLIB)
endif
# ------------------------------------------------
# Utility Targets
clean:
$(RM) $(OBJS) $(LAPACKLIB) *.d .depends
# depends target
depends:
$(RM) *.d .depends
@MAKE@ .depends
.depends: $(DEPENDS)
cat *.d > .depends
ifeq ($(wildcard .depends), .depends)
include .depends
endif