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 |
41 |
|
ifdef LatestBuildFile |
42 |
|
include ${LatestBuildFile} |
43 |
|
endif |
44 |
+ |
|
45 |
|
# |
46 |
|
# get build requirements Class |
47 |
|
# |
53 |
|
# Site settings |
54 |
|
# |
55 |
|
clientmakefile=$(LOCALTOP)/$(INTwork)/clientmakefile |
56 |
< |
include $(clientmakefile) |
56 |
> |
-include $(clientmakefile) |
57 |
|
|
58 |
|
# |
59 |
|
# get build targets |
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 |
|
# |
120 |
|
@echo "$(subst echo_,,$@) = $($(subst echo_,,$@))" |
121 |
|
|
122 |
|
# |
123 |
+ |
# Other non-critical targets |
124 |
+ |
# |
125 |
+ |
|
126 |
+ |
TAGS: |
127 |
+ |
etags -o TAGS $(files) $(binfiles) |
128 |
+ |
|
129 |
+ |
tags: |
130 |
+ |
ctags -o tags $(files) $(binfiles) |
131 |
+ |
|
132 |
+ |
# |
133 |
+ |
# |
134 |
|
# clean targets |
135 |
|
# |
136 |
|
|
140 |
|
ifdef DefaultMakefile |
141 |
|
clean:: |
142 |
|
@echo Cleaning working folder $(workdir) |
143 |
< |
@rm -rf $(LOCALTOP)/$(workdir)/.* $(LOCALTOP)/$(workdir)/* |
143 |
> |
ifdef LOCALTOP |
144 |
> |
ifdef workdir |
145 |
> |
@rm -rf $(LOCALTOP)/$(workdir)/* |
146 |
> |
endif |
147 |
> |
endif |
148 |
|
|
149 |
|
very_clean: |
150 |
|
@echo Cleaning all working folders in $(INTwork) |
151 |
|
@cd $(LOCALTOP)/$(INTwork) |
152 |
+ |
ifdef LOCALTOP |
153 |
+ |
ifdef workdir |
154 |
|
@rm -rf $(LOCALTOP)/$(INTwork)/*.o |
155 |
|
endif |
156 |
+ |
endif |
157 |
+ |
endif |