source: trunk/00FlowSolve_KW/CMD_ZAHIR/Makefile @ 4

Last change on this file since 4 was 4, checked in by xlvlod, 18 years ago

import initial des vraies codes.

File size: 2.1 KB
Line 
1include Make.inc
2
3       
4all: 
5                @echo
6                make clean
7                make show
8                make outdirs
9                make libs 
10                make flow.x
11                @echo "Done."
12
13outdirs:
14                @echo
15                @echo "... deleting output directories"         
16                -rm -rf output
17                @echo
18                @echo "... creating new output directory tree: ${BASE}"
19                cd ${BASE} ; mkdir output output/1D output/2D output/3D output/TS output/codes_etc
20                @echo
21                cd ${BASE} ;  make show
22                @echo "Done."
23
24libs:   
25                @echo
26                mkdir lib
27                make cleanlibdirs
28                rm -f classlog fort* output/DetailsLog output/MemoryLog
29                cp -f Make.inc src/OOFlowSolve.h src/class
30                cp -f Make.inc src/OOFlowSolve.h src/utils
31                cd src/class;  make "BASE=${BASE}" all
32                cd src/utils;  make "BASE=${BASE}" all
33
34flow.x: input/flow_solve_user.f90 src/initialize.f90  \
35                src/flow_solve.f90  src/particle_routines.f90 \
36                src/immersed_boundary.f90 src/write_results.f90\
37                src/petsc_solver_code.f90 lib/libscalarvariable.a \
38                lib/libutils.a
39                @echo
40                @echo "... building executable flow.x"
41                cp -f input/flow_solve_user.f90 src
42                cp -f Make.inc src; cd src; make "BASE=${BASE}" all
43                rm -f FlowSolveConfig
44                make showconfig >& FlowSolveConfig
45                rm -f svn_status
46                svn -v status >& svn_status
47                @echo "Done."
48                @echo
49               
50clean:
51                @echo
52                @echo "cleaning up directories"
53                make cleanlibdirs
54                make cleansrcdir
55                rm -f flow.x fort.* classlog
56                @echo "Done."
57
58cleanlibdirs:   
59                @echo
60                cp -f Make.inc src/OOFlowSolve.h src/class
61                cp -f Make.inc src/OOFlowSolve.h src/utils
62                cd src/class;  make clean
63                cd src/utils;  make clean
64               
65cleansrcdir:   
66                @echo
67                cp -f Make.inc src
68                cd src;  make clean
69               
70show:
71        @echo
72        make "BASE=${BASE}" -f  Make.inc showconfig >& FlowSolveConfig
73
74help:
75                @echo
76                @echo "===========  available make targets ================="
77                @echo "make show         -- show configuration variables"
78                @echo "make all          -- clean,outdirs,libs,flow.x"
79                @echo "make outdirs      -- create new output directories"
80                @echo "make clean        -- cleans all dirs except output"
81                @echo "make libs         -- compile lib/libscalarvariable.a and lib/libutils.a"
82                @echo "make flow.x       -- create executable flow.x"
83                @echo "Done." 
84                @echo "====================================================="
85
86
87
88
89
Note: See TracBrowser for help on using the repository browser.