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.16 by williamc, Tue Apr 6 07:50:31 1999 UTC vs.
Revision 1.17.2.8 by williamc, Mon Sep 27 12:27:39 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 41 | Line 43 | endif
43   ifdef LatestBuildFile
44   include ${LatestBuildFile}
45   endif
46 +
47   #
48   # get build requirements Class
49   #
# Line 52 | Line 55 | endif
55   # Site settings
56   #
57   clientmakefile=$(LOCALTOP)/$(INTwork)/clientmakefile
58 < include $(clientmakefile)
58 > -include $(clientmakefile)
59  
60   #
61   # get build targets
# Line 64 | Line 67 | include ${TOOL_HOME}/toolrules.mk
67   #
68   # -- Some tool setups which dont yet have a home
69   #
70 < CPPFLAGS += $(INCLUDEPATH)
70 > CPPFLAGS += $(addprefix -I,$(PRIORITY_INCLUDE)) $(INCLUDEPATH)
71  
72  
73   #
# Line 83 | Line 86 | INCLUDEPATH+=-I$(LOCALTOP)/${INTsrc} -I$
86   ifdef SUBDIRS
87   $(SUBDIRS)::
88          @echo ------- Building ---- $@ -----------
89 <        @cd $(LOCALTOP)/$(ClassDir)/$@; $(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   #
# Line 116 | 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 125 | Line 142 | echo_%:
142   ifdef DefaultMakefile
143   clean::
144          @echo Cleaning working folder $(workdir)
145 <        @rm -rf $(LOCALTOP)/$(workdir)/.* $(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