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.1 by williamc, Mon Mar 1 10:37:54 1999 UTC vs.
Revision 1.14 by williamc, Thu Apr 1 16:19:28 1999 UTC

# Line 1 | Line 1
1   #
2   # Preliminaries
3   #
4 + LIBDIR:=$(LOCALTOP)/lib/$(SCRAM_ARCH) $(RELEASETOP)/lib/$(SCRAM_ARCH)
5  
6   #
7   # Make sure nobody tries to run this directly through gmake
# Line 9 | 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 + libsavaillocal=$(notdir $(wildcard $(librarystore)/*))
18 + libsavailbase=$(notdir $(wildcard $(RELEASETOP)/$(INTlib)/*))
19 + libsavail=$(sort $(libsavailbase) $(libsavaillocal))
20 + libslocal=$(foreach var,$(lib),$(filter lib$(var).a, $(libsavail)))
21 + libslocal_I=$(foreach var,$(lib_I),$(filter lib$(var).a, $(libsavail)))
22 + libslocal_d=$(foreach var,$(lib_d),$(filter lib$(var).a, $(libsavail)))
23  
24   #
25   # Pointing to file storage locations for the various types
# Line 21 | Line 32 | vpath %.o $(LOCALTOP)/$(workdir):$(RELEA
32   #
33   ifdef ReqDependencies
34   always:$(LOCALTOP)/$(workdir)/PackageReqs
35 < $(LOCALTOP)/$(workdir)/PackageReqs::$(ReqDependencies)
35 > $(LOCALTOP)/$(workdir)/PackageReqs:$(ReqDependencies)
36          $(TOOL_HOME)/BuildPackageReqs $@ $?
37   endif
38  
# Line 38 | Line 49 | ifdef DefaultBuildFile
49   include ${DefaultBuildFile}
50   endif
51  
52 + #
53 + # Site settings
54 + #
55 + clientmakefile=$(LOCALTOP)/$(INTwork)/clientmakefile
56 + include $(clientmakefile)
57  
58   #
59   # get build targets
60   #
61 + include ${TOOL_HOME}/compilers.mk
62   include ${TOOL_HOME}/toolrules.mk
63  
64  
# Line 50 | Line 67 | include ${TOOL_HOME}/toolrules.mk
67   #
68   CPPFLAGS += $(INCLUDEPATH)
69  
53 #
54 # Site settings
55 #
56 clientmakefile=$(LOCALTOP)/$(INTwork)/clientmakefile
57 include $(clientmakefile)
70  
71   #
72   # now add our includepath
73   #
74   INCLUDEPATH+=-I$(LOCALTOP)/${INTsrc} -I$(RELEASETOP)/${INTsrc}
75  
76 + #
77 + # Dependency information
78 + #
79 + -include dependencies.mk
80 +
81   #
82   # Process Subdirs
83   #
84   ifdef SUBDIRS
85   $(SUBDIRS)::
86          @echo ------- Building ---- $@ -----------
87 <        cd $(LOCALTOP)/$(THISDIR)/$@; $(TOOL_HOME)/scram build
87 >        @cd $(LOCALTOP)/$(ClassDir)/$@; $(TOOL_HOME)/scram build
88   endif
89  
90   #
91   # clientmakefile creation
92   #
93 < $(clientmakefile): $(LOCALTOP)/.SCRAM/${SCRAM_ARCH}/clientsettings $(projdeps) $(TOOL_HOME)/ProcessSiteFile
93 > $(clientmakefile): $(LOCALTOP)/.SCRAM/${SCRAM_ARCH}/clientsettings $(LOCALTOP)/.SCRAM/${SCRAM_ARCH}/clientsettings_reqs $(projdeps) $(TOOL_HOME)/ProcessSiteFile
94          @$(TOOL_HOME)/ProcessSiteFile $< $@ $(projdeps)
95  
96   HELPINCLUDEMAKEFILES := ${DefaultBuildFile} ${TOOL_HOME}/toolrules.mk
# Line 107 | Line 124 | echo_%:
124   # it has come through the wrapper script
125  
126   ifdef DefaultMakefile
127 < clean:
127 > clean::
128          @echo Cleaning working folder $(workdir)
129 <        @rm -f $(LOCALTOP)/$(workdir)/*
129 >        @rm -rf $(LOCALTOP)/$(workdir)/.* $(LOCALTOP)/$(workdir)/*
130  
131   very_clean:
132          @echo Cleaning all working folders in $(INTwork)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines