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.4 by williamc, Fri Mar 19 14:49:46 1999 UTC vs.
Revision 1.17.2.13 by williamc, Fri Oct 8 14:20:11 1999 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines