ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/basics.mk
(Generate patch)

Comparing COMP/SCRAM/src/basics.mk (file contents):
Revision 1.1 by williamc, Mon Mar 1 10:37:54 1999 UTC vs.
Revision 1.17.2.7 by williamc, Tue Sep 14 13:52:42 1999 UTC

# Line 1 | Line 1
1   #
2   # Preliminaries
3   #
4 + LIBDIR:=$(LOCALTOP)/lib/$(SCRAM_ARCH) $(RELEASETOP)/lib/$(SCRAM_ARCH)
5 +
6 + CXXFLAGS+=$(CXXUSERFLAGS)
7  
8   #
9   # Make sure nobody tries to run this directly through gmake
# Line 9 | Line 12 | ifndef DefaultMakefile
12   all: exit
13   endif
14  
15 + # -- storage of libraries
16 + librarystore:=$(LOCALTOP)/$(INTlib)
17 +
18 + libsavaillocal=$(notdir $(wildcard $(librarystore)/*))
19 + libsavailbase=$(notdir $(wildcard $(RELEASETOP)/$(INTlib)/*))
20 + libsavail=$(sort $(libsavailbase) $(libsavaillocal))
21 + libslocal=$(foreach var,$(lib),$(filter lib$(var).a, $(libsavail)))
22 + libslocal_I=$(foreach var,$(lib_I),$(filter lib$(var).a, $(libsavail)))
23 + libslocal_d=$(foreach var,$(lib_d),$(filter lib$(var).a, $(libsavail)))
24  
25   #
26   # Pointing to file storage locations for the various types
# Line 21 | Line 33 | vpath %.o $(LOCALTOP)/$(workdir):$(RELEA
33   #
34   ifdef ReqDependencies
35   always:$(LOCALTOP)/$(workdir)/PackageReqs
36 < $(LOCALTOP)/$(workdir)/PackageReqs::$(ReqDependencies)
36 > $(LOCALTOP)/$(workdir)/PackageReqs:$(ReqDependencies)
37          $(TOOL_HOME)/BuildPackageReqs $@ $?
38   endif
39  
# Line 31 | Line 43 | endif
43   ifdef LatestBuildFile
44   include ${LatestBuildFile}
45   endif
46 +
47   #
48   # get build requirements Class
49   #
# Line 38 | Line 51 | ifdef DefaultBuildFile
51   include ${DefaultBuildFile}
52   endif
53  
54 + #
55 + # Site settings
56 + #
57 + clientmakefile=$(LOCALTOP)/$(INTwork)/clientmakefile
58 + -include $(clientmakefile)
59  
60   #
61   # get build targets
62   #
63 + include ${TOOL_HOME}/compilers.mk
64   include ${TOOL_HOME}/toolrules.mk
65  
66  
# Line 50 | Line 69 | include ${TOOL_HOME}/toolrules.mk
69   #
70   CPPFLAGS += $(INCLUDEPATH)
71  
53 #
54 # Site settings
55 #
56 clientmakefile=$(LOCALTOP)/$(INTwork)/clientmakefile
57 include $(clientmakefile)
72  
73   #
74   # now add our includepath
75   #
76   INCLUDEPATH+=-I$(LOCALTOP)/${INTsrc} -I$(RELEASETOP)/${INTsrc}
77  
78 + #
79 + # Dependency information
80 + #
81 + -include dependencies.mk
82 +
83   #
84   # Process Subdirs
85   #
86   ifdef SUBDIRS
87   $(SUBDIRS)::
88          @echo ------- Building ---- $@ -----------
89 <        cd $(LOCALTOP)/$(THISDIR)/$@; $(TOOL_HOME)/scram build
89 >        @if [ -d $(LOCALTOP)/$(ClassDir)/$@ ]; then \
90 >        cd $(LOCALTOP)/$(ClassDir)/$@; $(TOOL_HOME)/scram build; \
91 >        else echo SCRAM Warning : $@ does not exist; \
92 >        fi
93   endif
94  
95   #
96   # clientmakefile creation
97   #
98 < $(clientmakefile): $(LOCALTOP)/.SCRAM/${SCRAM_ARCH}/clientsettings $(projdeps) $(TOOL_HOME)/ProcessSiteFile
98 > $(clientmakefile): $(LOCALTOP)/.SCRAM/${SCRAM_ARCH}/clientsettings $(LOCALTOP)/.SCRAM/${SCRAM_ARCH}/clientsettings_reqs $(projdeps) $(TOOL_HOME)/ProcessSiteFile
99          @$(TOOL_HOME)/ProcessSiteFile $< $@ $(projdeps)
100  
101   HELPINCLUDEMAKEFILES := ${DefaultBuildFile} ${TOOL_HOME}/toolrules.mk
# Line 100 | Line 122 | echo_%:
122          @echo "$(subst echo_,,$@) = $($(subst echo_,,$@))"
123  
124   #
125 + # Other non-critical targets
126 + #
127 +
128 + TAGS:
129 +        etags -o TAGS $(files) $(binfiles)
130 +
131 + tags:
132 +        ctags -o tags $(files) $(binfiles)
133 +
134 + #
135 + #
136   # clean targets
137   #
138  
# Line 107 | Line 140 | echo_%:
140   # it has come through the wrapper script
141  
142   ifdef DefaultMakefile
143 < clean:
143 > clean::
144          @echo Cleaning working folder $(workdir)
145 <        @rm -f $(LOCALTOP)/$(workdir)/*
145 > ifdef LOCALTOP
146 > ifdef workdir
147 >        @rm -rf $(LOCALTOP)/$(workdir)/*
148 > endif
149 > endif
150  
151   very_clean:
152          @echo Cleaning all working folders in $(INTwork)
153          @cd $(LOCALTOP)/$(INTwork)
154 + ifdef LOCALTOP
155 + ifdef workdir
156          @rm -rf $(LOCALTOP)/$(INTwork)/*.o
157   endif
158 + endif
159 + endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines