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.6 by williamc, Mon Mar 22 18:06:29 1999 UTC vs.
Revision 1.15 by williamc, Thu Apr 1 17:28:45 1999 UTC

# Line 10 | Line 10 | ifndef DefaultMakefile
10   all: exit
11   endif
12  
13 + # -- storage of libraries
14 + librarystore:=$(LOCALTOP)/$(INTlib)
15 + vpath %.$(SharedSuffix) $(librarystore):$(RELEASETOP)/$(INTlib)
16 + vpath %.$(ArchiveSuffix) $(librarystore):$(RELEASETOP)/$(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 22 | 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 39 | Line 50 | ifdef DefaultBuildFile
50   include ${DefaultBuildFile}
51   endif
52  
53 + #
54 + # Site settings
55 + #
56 + clientmakefile=$(LOCALTOP)/$(INTwork)/clientmakefile
57 + include $(clientmakefile)
58  
59   #
60   # get build targets
61   #
62 + include ${TOOL_HOME}/compilers.mk
63   include ${TOOL_HOME}/toolrules.mk
64  
65 +
66   #
67   # -- Some tool setups which dont yet have a home
68   #
69   CPPFLAGS += $(INCLUDEPATH)
70  
53 #
54 # Site settings
55 #
56 clientmakefile=$(LOCALTOP)/$(INTwork)/clientmakefile
57 include $(clientmakefile)
71  
72   #
73   # now add our includepath
# Line 64 | Line 77 | INCLUDEPATH+=-I$(LOCALTOP)/${INTsrc} -I$
77   #
78   # Dependency information
79   #
80 < include dependencies.mk
80 > -include dependencies.mk
81  
82   #
83   # Process Subdirs
# Line 72 | Line 85 | include dependencies.mk
85   ifdef SUBDIRS
86   $(SUBDIRS)::
87          @echo ------- Building ---- $@ -----------
88 <        @cd $(LOCALTOP)/$(ClassDir)/$@; $(TOOL_HOME)/scram build $(MAKETARGETS)
88 >        @cd $(LOCALTOP)/$(ClassDir)/$@; $(TOOL_HOME)/scram build
89   endif
90  
91   #
92   # clientmakefile creation
93   #
94 < $(clientmakefile):: $(LOCALTOP)/.SCRAM/${SCRAM_ARCH}/clientsettings $(LOCALTOP)/.SCRAM/${SCRAM_ARCH}/clientsettings_reqs $(projdeps) $(TOOL_HOME)/ProcessSiteFile
94 > $(clientmakefile): $(LOCALTOP)/.SCRAM/${SCRAM_ARCH}/clientsettings $(LOCALTOP)/.SCRAM/${SCRAM_ARCH}/clientsettings_reqs $(projdeps) $(TOOL_HOME)/ProcessSiteFile
95          @$(TOOL_HOME)/ProcessSiteFile $< $@ $(projdeps)
96  
97   HELPINCLUDEMAKEFILES := ${DefaultBuildFile} ${TOOL_HOME}/toolrules.mk
# Line 112 | Line 125 | echo_%:
125   # it has come through the wrapper script
126  
127   ifdef DefaultMakefile
128 < clean:
128 > clean::
129          @echo Cleaning working folder $(workdir)
130 <        @rm -rf $(LOCALTOP)/$(workdir)/*
130 >        @rm -rf $(LOCALTOP)/$(workdir)/.* $(LOCALTOP)/$(workdir)/*
131  
132   very_clean:
133          @echo Cleaning all working folders in $(INTwork)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines