10 |
|
all: exit |
11 |
|
endif |
12 |
|
|
13 |
+ |
# -- storage of libraries |
14 |
+ |
librarystore:=$(LOCALTOP)/$(INTlib) |
15 |
+ |
|
16 |
+ |
libsavaillocal=$(notdir $(wildcard $(librarystore)/*)) |
17 |
+ |
libsavailbase=$(notdir $(wildcard $(RELEASETOP)/$(INTlib)/*)) |
18 |
+ |
libsavail=$(sort $(libsavailbase) $(libsavaillocal)) |
19 |
+ |
libslocal=$(foreach var,$(lib),$(filter lib$(var).a, $(libsavail))) |
20 |
+ |
libslocal_I=$(foreach var,$(lib_I),$(filter lib$(var).a, $(libsavail))) |
21 |
+ |
libslocal_d=$(foreach var,$(lib_d),$(filter lib$(var).a, $(libsavail))) |
22 |
|
|
23 |
|
# |
24 |
|
# Pointing to file storage locations for the various types |
31 |
|
# |
32 |
|
ifdef ReqDependencies |
33 |
|
always:$(LOCALTOP)/$(workdir)/PackageReqs |
34 |
< |
$(LOCALTOP)/$(workdir)/PackageReqs::$(ReqDependencies) |
34 |
> |
$(LOCALTOP)/$(workdir)/PackageReqs:$(ReqDependencies) |
35 |
|
$(TOOL_HOME)/BuildPackageReqs $@ $? |
36 |
|
endif |
37 |
|
|
41 |
|
ifdef LatestBuildFile |
42 |
|
include ${LatestBuildFile} |
43 |
|
endif |
44 |
+ |
|
45 |
|
# |
46 |
|
# get build requirements Class |
47 |
|
# |
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 |
|
|
67 |
|
# |
68 |
|
CPPFLAGS += $(INCLUDEPATH) |
69 |
|
|
54 |
– |
# |
55 |
– |
# Site settings |
56 |
– |
# |
57 |
– |
clientmakefile=$(LOCALTOP)/$(INTwork)/clientmakefile |
58 |
– |
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)/$(ClassDir)/$@; $(TOOL_HOME)/scram build |
87 |
> |
@if [ -d $(LOCALTOP)/$(ClassDir)/$@ ]; then \ |
88 |
> |
cd $(LOCALTOP)/$(ClassDir)/$@; $(TOOL_HOME)/scram build; \ |
89 |
> |
else echo SCRAM Warning : $@ does not exist; \ |
90 |
> |
fi |
91 |
|
endif |
92 |
|
|
93 |
|
# |
94 |
|
# clientmakefile creation |
95 |
|
# |
96 |
< |
$(clientmakefile):: $(LOCALTOP)/.SCRAM/${SCRAM_ARCH}/clientsettings $(LOCALTOP)/.SCRAM/${SCRAM_ARCH}/clientsettings_reqs $(projdeps) $(TOOL_HOME)/ProcessSiteFile |
96 |
> |
$(clientmakefile): $(LOCALTOP)/.SCRAM/${SCRAM_ARCH}/clientsettings $(LOCALTOP)/.SCRAM/${SCRAM_ARCH}/clientsettings_reqs $(projdeps) $(TOOL_HOME)/ProcessSiteFile |
97 |
|
@$(TOOL_HOME)/ProcessSiteFile $< $@ $(projdeps) |
98 |
|
|
99 |
|
HELPINCLUDEMAKEFILES := ${DefaultBuildFile} ${TOOL_HOME}/toolrules.mk |
127 |
|
# it has come through the wrapper script |
128 |
|
|
129 |
|
ifdef DefaultMakefile |
130 |
< |
clean: |
130 |
> |
clean:: |
131 |
|
@echo Cleaning working folder $(workdir) |
132 |
< |
@rm -f $(LOCALTOP)/$(workdir)/* |
132 |
> |
ifdef LOCALTOP |
133 |
> |
ifdef workdir |
134 |
> |
@rm -rf $(LOCALTOP)/$(workdir)/* |
135 |
> |
endif |
136 |
> |
endif |
137 |
|
|
138 |
|
very_clean: |
139 |
|
@echo Cleaning all working folders in $(INTwork) |
140 |
|
@cd $(LOCALTOP)/$(INTwork) |
141 |
+ |
ifdef LOCALTOP |
142 |
+ |
ifdef workdir |
143 |
|
@rm -rf $(LOCALTOP)/$(INTwork)/*.o |
144 |
|
endif |
145 |
+ |
endif |
146 |
+ |
endif |