diff --git a/Cantera/cxx/src/Makefile.in b/Cantera/cxx/src/Makefile.in new file mode 100644 index 000000000..d812602cf --- /dev/null +++ b/Cantera/cxx/src/Makefile.in @@ -0,0 +1,58 @@ +#/bin/sh +############################################################### +# $Author$ +# $Date$ +# $Revision$ +# +# Copyright 2001 California Institute of Technology +# +############################################################### + + +SUFFIXES= +SUFFIXES= .cpp .d .o + +CXX_FLAGS = @CXXFLAGS@ $(CXX_OPT) + +OBJS = cxxutils.o writelog.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=@buildlib@/$(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