131 lines
1.6 KiB
Makefile
Executable file
131 lines
1.6 KiB
Makefile
Executable file
#/bin/sh
|
|
#
|
|
# $Source$
|
|
# $Author$
|
|
# $Revision$
|
|
# $Date$
|
|
#
|
|
|
|
.SUFFIXES :
|
|
.SUFFIXES : .c .o .d
|
|
|
|
# the directory where the Cantera libraries are located
|
|
CANTERA_LIBDIR=@buildlib@
|
|
|
|
# the C++ compiler
|
|
CXX = @CXX@
|
|
|
|
# the C compiler
|
|
CC = @CC@
|
|
|
|
# C++ compile flags
|
|
CXX_FLAGS = @CXXFLAGS@ $(CXX_OPT)
|
|
|
|
# Local include files
|
|
CXX_INCLUDES=-I../f2c_libs
|
|
|
|
# How to compile the dependency file
|
|
.c.d:
|
|
g++ -MM $(CXX_FLAGS) $(CXX_INCLUDES) $*.c > $*.d
|
|
|
|
.c.o:
|
|
@CC@ -c $< $(CXX_FLAGS) $(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
|
|
|
|
# ------------------------------------------------
|
|
# Utility Targets
|
|
|
|
clean:
|
|
$(RM) $(OBJS) $(LAPACKLIB) *.d .depends
|
|
|
|
|
|
# depends target
|
|
depends:
|
|
$(RM) *.d .dependsd
|
|
@MAKE@ .depends
|
|
|
|
.depends: $(DEPENDS)
|
|
cat *.d > .depends
|
|
|
|
ifeq ($(wildcard .depends), .depends)
|
|
include .depends
|
|
endif
|
|
|
|
|
|
|
|
|
|
|