Subversion Repositories OpenSees

Rev

Rev 2 | Rev 564 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 fmk 1
############################################################################
2
#
3
#  Program:  OpenSees
4
#
5
#  Purpose:  A Top-level Makefile to create the libraries needed
6
#	     to use the OpenSees framework.
7
#
8
#  Written: fmk
9
#  Created: 10/99
10
#
11
#  Send bug reports, comments or suggestions to fmckenna@ce.berkeley.edu
12
#
13
############################################################################
14
 
15
include Makefile.def
16
 
17
############################################################################
18
#
19
#  First, modify the definitions in Makefile.def to match
20
#  your library archiver, compiler, and the options to be used.
21
#
22
#  Sample Makefile.def's can be found in the directory MAKES
23
#
24
#  Then to create or add to the libraries needed, enter make after having
25
#  making the modifications to this file.
26
#
27
#  The name of the libraries created and their placement are defined
28
#  in the file called Makefile.def.
29
#
30
#  To remove the object files after the libraries and testing executables
31
#  are created, enter
32
#       make clean
33
#  To remove the object files and the libraries specified in WIPE_LIBS, enter
34
#       make wipe
35
#  To just make the libs, enter
36
#	make lib
37
#  To just build the interpreter type
38
#	make OpenSees
39
############################################################################
40
 
41
all:
42
	@( \
43
	for f in $(DIRS); \
44
	do \
45
		$(CD) $$f; \
46
		$(MAKE); \
47
		$(CD) ..; \
48
	done );
49
	@$(ECHO) LIBRARIES BUILT ... NOW LINKING OpenSees PROGRAM;
50
	@$(CD) $(FE)/tcl;  $(MAKE) tcl;
51
	@$(CD) $(FE)/modelbuilder/tcl;  $(MAKE) tcl;
52
 
53
 
54
OpenSees: doit
55
 
56
doit:
57
	@$(ECHO) Building OpenSees Program ..;
58
	@$(CD) $(FE)/tcl;  $(MAKE) tcl;
59
	@$(CD) $(FE)/modelbuilder/tcl;  $(MAKE) tcl;
60
 
61
 
62
libs:
63
	@( \
64
	for f in $(DIRS); \
65
	do \
66
		$(CD) $$f; \
67
		$(MAKE); \
68
		$(CD) ..; \
69
	done );
70
 
71
clean:
72
	@( \
73
	for f in $(DIRS); \
74
	do \
75
		$(CD) $$f; \
76
		$(ECHO) Making lib in $$f; \
77
		$(MAKE) wipe; \
78
		$(CD) ..; \
79
	done );
80
	@$(RM) $(RMFLAGS) *.o *~ core
81
	@$(CD) $(FE)/../EXAMPLES;  $(MAKE) wipe;
82
 
83
wipe:
84
	@( \
85
	for f in $(DIRS); \
86
	do \
87
		$(CD) $$f; \
88
		$(ECHO) Making lib in $$f; \
89
		$(MAKE) wipe; \
90
		$(CD) ..; \
91
	done );
543 jeremic 92
	@$(RM) $(RMFLAGS) $(WIPE_LIBS) *.o *~ core
93
	@$(CD) $(FE)/../EXAMPLES;  $(MAKE) wipe;
94
 
95
wipeall:
96
	@( \
97
	for f in $(DIRS); \
98
	do \
99
		$(CD) $$f; \
100
		$(ECHO) Making lib in $$f; \
101
		$(MAKE) wipe; \
102
		$(CD) ..; \
103
	done );
2 fmk 104
	@$(RM) $(RMFLAGS) $(WIPE_LIBS) *.o *~ core
105
	@$(CD) $(FE)/../EXAMPLES;  $(MAKE) wipe;
543 jeremic 106
	@$(RM) $(OpenSees_PROGRAM)
2 fmk 107
 
108
help:
109
    @$(ECHO) "usage: make ?"
110
 
111
 
112
 
113
 
114
 
115