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 by williamc, Thu Apr 8 06:42:12 1999 UTC vs.
Revision 1.17.2.9 by williamc, Tue Oct 5 12:48:54 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 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   #
45   ifdef LatestBuildFile
46   include ${LatestBuildFile}
47   endif
48 +
49   #
50   # get build requirements Class
51   #
# Line 54 | Line 59 | endif
59   clientmakefile=$(LOCALTOP)/$(INTwork)/clientmakefile
60   -include $(clientmakefile)
61  
62 +
63   #
64   # get build targets
65   #
# Line 64 | Line 70 | include ${TOOL_HOME}/toolrules.mk
70   #
71   # -- Some tool setups which dont yet have a home
72   #
73 < CPPFLAGS += $(INCLUDEPATH)
73 > CPPFLAGS += $(addprefix -I,$(PRIORITY_INCLUDE)) $(INCLUDEPATH)
74  
75  
76   #
# Line 75 | Line 81 | INCLUDEPATH+=-I$(LOCALTOP)/${INTsrc} -I$
81   #
82   # Dependency information
83   #
84 + dependencies.mk : $(clientmakefile)
85   -include dependencies.mk
86  
87   #
# Line 83 | Line 90 | INCLUDEPATH+=-I$(LOCALTOP)/${INTsrc} -I$
90   ifdef SUBDIRS
91   $(SUBDIRS)::
92          @echo ------- Building ---- $@ -----------
93 <        @cd $(LOCALTOP)/$(ClassDir)/$@; $(TOOL_HOME)/scram build
93 >        @if [ -d $(LOCALTOP)/$(ClassDir)/$@ ]; then \
94 >        cd $(LOCALTOP)/$(ClassDir)/$@; $(TOOL_HOME)/scram build; \
95 >        else echo SCRAM Warning : $@ does not exist; \
96 >        fi
97   endif
98  
89 #
90 # clientmakefile creation
91 #
92 $(clientmakefile): $(LOCALTOP)/.SCRAM/${SCRAM_ARCH}/clientsettings $(LOCALTOP)/.SCRAM/${SCRAM_ARCH}/clientsettings_reqs $(projdeps) $(TOOL_HOME)/ProcessSiteFile
93        @$(TOOL_HOME)/ProcessSiteFile $< $@ $(projdeps)
99  
100   HELPINCLUDEMAKEFILES := ${DefaultBuildFile} ${TOOL_HOME}/toolrules.mk
101  
# Line 116 | Line 121 | echo_%:
121          @echo "$(subst echo_,,$@) = $($(subst echo_,,$@))"
122  
123   #
124 + # Other non-critical targets
125 + #
126 +
127 + TAGS:
128 +        etags -o TAGS $(files) $(binfiles)
129 +
130 + tags:
131 +        ctags -o tags $(files) $(binfiles)
132 +
133 + #
134 + #
135   # clean targets
136   #
137  
# Line 125 | Line 141 | echo_%:
141   ifdef DefaultMakefile
142   clean::
143          @echo Cleaning working folder $(workdir)
144 <        @rm -rf $(LOCALTOP)/$(workdir)/.* $(LOCALTOP)/$(workdir)/*
144 > ifdef LOCALTOP
145 > ifdef workdir
146 >        @rm -rf $(LOCALTOP)/$(workdir)/*
147 > endif
148 > endif
149  
150   very_clean:
151          @echo Cleaning all working folders in $(INTwork)
152          @cd $(LOCALTOP)/$(INTwork)
153 <        @rm -rf $(LOCALTOP)/$(INTwork)/*.o
153 > ifdef LOCALTOP
154 > ifdef workdir
155 >        @rm -rf $(LOCALTOP)/$(INTwork)/*
156 > endif
157 > endif
158   endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines