cantera/Cantera/cxx/Makefile.in
2003-04-18 23:20:16 +00:00

58 lines
1 KiB
Makefile

#/bin/sh
###############################################################
# $Author$
# $Date$
# $Revision$
#
# Copyright 2001 California Institute of Technology
#
###############################################################
SUFFIXES=
SUFFIXES= .cpp .d .o
CXX_FLAGS = @CXXFLAGS@ $(CXX_OPT)
OBJS = cxxutils.o
DEPENDS = $(OBJS:.o=.d)
# the C++ compiler
CXX = @CXX@
# the directory where Cantera include files may be found.
CANTERA_INCDIR=../src
CXX_INCLUDES = -I$(CANTERA_INCDIR)
# flags passed to the C++ compiler/linker for the linking step
LCXX_FLAGS = -L$(CANTERA_LIBDIR) @CXXFLAGS@
# how to compile C++ source files to object files
.@CXX_EXT@.@OBJ_EXT@:
$(CXX) -c $< $(CXX_INCLUDES) $(CXX_FLAGS)
LIB_NAME=libctcxx
CXXLIB=$(LIB_NAME).a
all: $(OBJS)
@ARCHIVE@ $(CXXLIB) $(OBJS)
clean:
$(RM) $(OBJS) $(CXXLIB)
install:
@INSTALL@ $(CXXLIB) @prefix@/lib/cantera
%.d:
g++ -MM $(CXX_INCLUDES) $*.cpp > $*.d
depends: $(DEPENDS)
cat *.d > .depends
$(RM) $(DEPENDS)
ifeq ($(wildcard .depends), .depends)
include .depends
endif