*** empty log message ***
This commit is contained in:
parent
191bd093d0
commit
fc320fab8c
3 changed files with 18 additions and 6 deletions
|
|
@ -1,3 +1,9 @@
|
|||
# This Makefile uses script 'ctnew' to create the Makefiles for each
|
||||
# demo program. This script is created during the Cantera build
|
||||
# process, and is installed by default in /usr/local/bin.
|
||||
|
||||
# if script ctnew is not on the PATH, set this to the path to it.
|
||||
CTNEW = ctnew
|
||||
|
||||
SRCS = kinetics1.cpp
|
||||
|
||||
|
|
@ -8,11 +14,16 @@ MKS = $(SRCS:.cpp=.mak)
|
|||
all: $(EXES)
|
||||
|
||||
%.mak:
|
||||
ctnew; sed 's/demo/$*/g' demo.mak > $*.mak
|
||||
$(CTNEW); sed 's/demo/$*/g' demo.mak > $*.mak
|
||||
|
||||
%.x:
|
||||
@echo
|
||||
@echo Building program $*.x...
|
||||
@echo
|
||||
make $*.mak; make -f $*.mak; mv $* $*.x
|
||||
@echo
|
||||
@echo type '$*.x' to run the program
|
||||
@echo
|
||||
|
||||
clean:
|
||||
rm -f $(OBJS) $(EXES) $(MKS)
|
||||
|
|
|
|||
|
|
@ -146,10 +146,11 @@ endif
|
|||
finish-install:
|
||||
@INSTALL@ -d @ct_docdir@
|
||||
#@INSTALL@ doc/*.pdf @ct_docdir@
|
||||
@INSTALL@ -d @ct_demodir@/c++
|
||||
@INSTALL@ examples/cxx/*.cpp @ct_demodir@/c++
|
||||
@INSTALL@ examples/cxx/*.h @ct_demodir@/c++
|
||||
@INSTALL@ examples/cxx/Makefile @ct_demodir@/c++
|
||||
|
||||
@INSTALL@ -d @ct_demodir@/cxx
|
||||
@INSTALL@ Cantera/cxx/demos/*.cpp @ct_demodir@/cxx
|
||||
@INSTALL@ Cantera/cxx/demos/*.h @ct_demodir@/cxx
|
||||
@INSTALL@ Cantera/cxx/demos/Makefile @ct_demodir@/cxx
|
||||
chown -R @username@ @ct_demodir@/c++
|
||||
|
||||
@INSTALL@ -d @ct_demodir@/f77
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ $(PROGRAM): $(OBJS)
|
|||
$(CXX) -o $(PROGRAM) $(OBJS) $(LCXXFLAGS) $(CANTERA_LIBS) $(LINK_OPTIONS) $(EXT_LIBS) @LIBS@ @FLIBS@
|
||||
|
||||
%.d:
|
||||
g++ -MM $*.cpp > $*.d
|
||||
g++ -MM -I$(CANTERA_INCDIR) $*.cpp > $*.d
|
||||
|
||||
clean:
|
||||
$(RM) $(OBJS) $(PROGRAM)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue