initial import

This commit is contained in:
Dave Goodwin 2003-11-01 10:11:14 +00:00
parent f9fc73ac4e
commit 946cf5c3e0
2 changed files with 70 additions and 0 deletions

54
Cantera/user/Makefile.in Normal file
View file

@ -0,0 +1,54 @@
#/bin/sh
###############################################################
# $Author$
# $Date$
# $Revision$
#
# Copyright 2002 California Institute of Technology
#
###############################################################
SUFFIXES=
SUFFIXES= .cpp .d .o
OBJDIR = .
CXX_FLAGS = @CXXFLAGS@ $(CXX_OPT)
# list your object files here
OBJS = user.o
CXX_INCLUDES = -I../src
LIB = @buildlib@/libuser.a
DEPENDS = $(OBJS:.o=.d)
%.d:
g++ -MM $(CXX_INCLUDES) $*.cpp > $*.d
.cpp.o:
@CXX@ -c $< $(CXX_FLAGS) $(CXX_INCLUDES)
.f.o:
@F77@ -c $< $(F77_FLAGS)
all lib: $(LIB)
$(LIB): $(OBJS)
@ARCHIVE@ $(LIB) $(OBJS) > /dev/null
clean:
$(RM) *.o *~ $(LIB)
depends: $(DEPENDS)
cat *.d > .depends
$(RM) $(DEPENDS)
TAGS:
etags *.h *.cpp
ifeq ($(wildcard .depends), .depends)
include .depends
endif

16
Cantera/user/user.cpp Normal file
View file

@ -0,0 +1,16 @@
/*
* This is an example of a user-defined function that can be linked into Cantera.
*/
#include <iostream>
#include "ct_defs.h"
using namespace Cantera;
namespace User {
void hello() {
cout << "Hello!" << endl;
}
}