#/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