Subversion Repositories OpenSees

Rev

Rev 564 | Rev 1133 | 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
 
576 fmk 53
OpenSees: tcl
2 fmk 54
 
576 fmk 55
tcl:
2 fmk 56
	@$(ECHO) Building OpenSees Program ..;
57
	@$(CD) $(FE)/tcl;  $(MAKE) tcl;
58
	@$(CD) $(FE)/modelbuilder/tcl;  $(MAKE) tcl;
59
 
576 fmk 60
OpenSeesTk: tk
2 fmk 61
 
576 fmk 62
tk:
63
	@$(ECHO) Building OpenSees Program ..;
64
	@$(CD) $(FE)/tcl;  $(MAKE) tk;
65
	@$(CD) $(FE)/modelbuilder/tcl;  $(MAKE) tk;
66
 
67
 
2 fmk 68
libs:
69
	@( \
70
	for f in $(DIRS); \
71
	do \
72
		$(CD) $$f; \
73
		$(MAKE); \
74
		$(CD) ..; \
75
	done );
76
 
77
clean:
78
	@( \
79
	for f in $(DIRS); \
80
	do \
81
		$(CD) $$f; \
82
		$(ECHO) Making lib in $$f; \
83
		$(MAKE) wipe; \
84
		$(CD) ..; \
85
	done );
86
	@$(RM) $(RMFLAGS) *.o *~ core
87
	@$(CD) $(FE)/../EXAMPLES;  $(MAKE) wipe;
88
 
89
wipe:
90
	@( \
91
	for f in $(DIRS); \
92
	do \
93
		$(CD) $$f; \
94
		$(ECHO) Making lib in $$f; \
95
		$(MAKE) wipe; \
96
		$(CD) ..; \
97
	done );
543 jeremic 98
	@$(RM) $(RMFLAGS) $(WIPE_LIBS) *.o *~ core
99
	@$(CD) $(FE)/../EXAMPLES;  $(MAKE) wipe;
100
 
101
wipeall:
102
	@( \
103
	for f in $(DIRS); \
104
	do \
105
		$(CD) $$f; \
106
		$(ECHO) Making lib in $$f; \
107
		$(MAKE) wipe; \
108
		$(CD) ..; \
109
	done );
2 fmk 110
	@$(RM) $(RMFLAGS) $(WIPE_LIBS) *.o *~ core
564 jeremic 111
	@$(CD) $(FE)/../EXAMPLES;  $(MAKE) wipe
112
	@$(RM) $(RMFLAGS) $(OpenSees_PROGRAM);
2 fmk 113
 
114
help:
115
    @$(ECHO) "usage: make ?"
116
 
117
 
118
 
119
 
120
 
121