cantera/ext/f2c_math/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

107 lines
1.6 KiB
Makefile

#/bin/sh
#
# $Source$
# $Author$
# $Revision$
# $Date$
#
.SUFFIXES :
.SUFFIXES : .c .cpp .d .o
do_ranlib = @DO_RANLIB@
# the directory where the Cantera libraries are located
CANTERA_LIBDIR=@buildlib@
# the directory where Cantera include files may be found.
CANTERA_INCDIR=@ctroot@/build/include/cantera
# the C++ compiler
CXX = @CXX@
# the C compiler
CC = @CC@
# C++ compile flags
PIC_FLAG=@PIC@
CXX_FLAGS = @CXXFLAGS@ $(CXX_OPT) $(PIC_FLAG)
CFLAGS = @CFLAGS@ $(CXX_OPT)
# Local include files
CXX_INCLUDES=-I../f2c_libs
# How to compile the dependency file
.c.d:
@CXX_DEPENDS@ $(CFLAGS) $(CXX_INCLUDES) $*.c > $*.d
.cpp.d:
@CXX_DEPENDS@ $(CXX_FLAGS) $(CXX_INCLUDES) $*.cpp > $*.d
# How to compile a C file
.c.o:
@CC@ -c $< @DEFS@ $(CFLAGS) $(CXX_INCLUDES)
# How to compile a Cpp file
.cpp.o:
@CXX@ -c $< @DEFS@ $(CXX_FLAGS) $(CXX_INCLUDES)
# -----------------------------------------------
LIB = @buildlib@/libctmath.a
all: $(LIB)
OBJS = \
mach.o \
ddaspk.o \
dgbefa.o \
dgbsl.o \
dgefa.o \
dgesl.o \
dp1vlu.o \
dpcoef.o \
dpolft.o \
fdump.o \
j4save.o \
pcoef.o \
polfit.o \
pvalue.o \
xercnt.o \
xerhlt.o \
xermsg.o \
xerprn.o \
xersve.o \
xgetua.o
SRCS = $(OBJS:.o=.cpp)
# List of dependency files to be created
DEPENDS=$(OBJS:.o=.d)
# How to make the static library
$(LIB): $(OBJS)
@ARCHIVE@ $(LIB) $(OBJS)
ifeq ($(do_ranlib),1)
@RANLIB@ $(LIB)
endif
# ------------------------------------------------
# Utility Targets
clean:
$(RM) $(OBJS) $(LIB) *.d .depends
# depends target
depends:
$(RM) *.d .depends
@MAKE@ .depends
.depends: $(DEPENDS)
cat *.d > .depends
ifeq ($(wildcard .depends), .depends)
include .depends
endif