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.17.2.5 by williamc, Wed Jul 7 12:38:08 1999 UTC vs.
Revision 1.17.2.22 by williamc, Mon Mar 27 17:02:22 2000 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 > CXXFLAGS+=$(CXXUSERFLAGS)
6 > JAVA_CLASSDIR=$(LOCALTOP)/lib/$(SCRAM_ARCH)
7  
8   #
9   # Make sure nobody tries to run this directly through gmake
# Line 10 | Line 12 | ifndef DefaultMakefile
12   all: exit
13   endif
14  
15 +
16   # -- storage of libraries
17   librarystore:=$(LOCALTOP)/$(INTlib)
18  
# Line 35 | Line 38 | $(LOCALTOP)/$(workdir)/PackageReqs:$(Req
38          $(TOOL_HOME)/BuildPackageReqs $@ $?
39   endif
40  
41 +
42   #
43   # Get local mods
44   #
# Line 50 | Line 54 | 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
# Line 65 | Line 75 | include ${TOOL_HOME}/toolrules.mk
75   #
76   # -- Some tool setups which dont yet have a home
77   #
78 < CPPFLAGS += $(INCLUDEPATH)
78 > CPPFLAGS += $(addprefix -I,$(PRIORITY_INCLUDE)) $(INCLUDEPATH)
79  
80  
81   #
# Line 78 | Line 88 | INCLUDEPATH+=-I$(LOCALTOP)/${INTsrc} -I$
88   #
89   -include dependencies.mk
90  
91 + #dependencies.mk :: $(clientmakefile)
92   #
93   # Process Subdirs
94   #
# Line 90 | Line 101 | $(SUBDIRS)::
101          fi
102   endif
103  
93 #
94 # clientmakefile creation
95 #
96 $(clientmakefile): $(LOCALTOP)/.SCRAM/${SCRAM_ARCH}/clientsettings $(LOCALTOP)/.SCRAM/${SCRAM_ARCH}/clientsettings_reqs $(projdeps) $(TOOL_HOME)/ProcessSiteFile
97        @$(TOOL_HOME)/ProcessSiteFile $< $@ $(projdeps)
104  
105 < HELPINCLUDEMAKEFILES := ${DefaultBuildFile} ${TOOL_HOME}/toolrules.mk
105 > #HELPINCLUDEMAKEFILES := ${DefaultBuildFile} ${TOOL_HOME}/toolrules.mk
106  
107   #
108   #
# Line 106 | Line 112 | HELPINCLUDEMAKEFILES := ${DefaultBuildFi
112   dummy:
113  
114  
115 < help:
116 <        @echo "Available Targets"
115 > .PHONY: help clean
116 > help::
117 >        @echo "--------------------------------------------------------"
118 > ifndef BINMODE
119 > help::
120 >        @echo "General Targets"
121 >        @echo "---------------"
122 >        @echo "clean - clean out the corresponding working directory"
123 >        @echo "echo_VAR - debugging only, prints out the value of the scram variable VAR"
124          @echo "-----------------"
125 <        @cat $(HELPINCLUDEMAKEFILES) | grep ':' | grep -v '^[\%\$$]' | \
113 <                grep -v ':=' | grep -v 'vpath'
125 > endif
126  
127   exit:
128 <        @echo "Please Use the orcabuild script. Do not use gmake directly."
128 >        @echo "Please Use Scram. Do not use gmake directly."
129          @exit 1
130  
131   echo_%:
132          @echo "$(subst echo_,,$@) = $($(subst echo_,,$@))"
133  
134 +
135   #
136   # Other non-critical targets
137   #
# Line 151 | Line 164 | very_clean:
164          @cd $(LOCALTOP)/$(INTwork)
165   ifdef LOCALTOP
166   ifdef workdir
167 <        @rm -rf $(LOCALTOP)/$(INTwork)/*.o
167 >        @rm -rf $(LOCALTOP)/$(INTwork)/*
168   endif
169   endif
170   endif
171 +
172 + #
173 + # datestamp files
174 + #
175 + .PHONY: datestamp_config datestamp
176 +
177 + scramds_%::
178 +        @$(SCRAM_HOME)/src/scramds $*.ds $*
179 +
180 + #
181 + # rather than tracing all the dependency root - just check all local .ds files
182 + #
183 + dsfiles=$(wildcard *.ds)
184 + releasedsfiles=$(wildcard $(RELEASETOP)/$(workdir)/*.ds)
185 +
186 + datestamp_config:
187 +        @if [ "$(dsfiles)" = "" ]; then \
188 +         if [ "$(releasedsfiles)" != "" ]; then \
189 +           cp $(releasedsfiles) $(LOCALTOP)/$(workdir); \
190 +         fi; \
191 +        fi
192 +
193 + datestamp: $(addprefix scramds_, $(basename $(dsfiles)))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines