3 |
|
# |
4 |
|
LIBDIR:=$(LOCALTOP)/lib/$(SCRAM_ARCH) $(RELEASETOP)/lib/$(SCRAM_ARCH) |
5 |
|
|
6 |
+ |
CXXFLAGS+=$(CXXUSERFLAGS) |
7 |
+ |
|
8 |
|
# |
9 |
|
# Make sure nobody tries to run this directly through gmake |
10 |
|
# |
12 |
|
all: exit |
13 |
|
endif |
14 |
|
|
15 |
+ |
# -- storage of libraries |
16 |
+ |
librarystore:=$(LOCALTOP)/$(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 |
43 |
|
ifdef LatestBuildFile |
44 |
|
include ${LatestBuildFile} |
45 |
|
endif |
46 |
+ |
|
47 |
|
# |
48 |
|
# get build requirements Class |
49 |
|
# |
55 |
|
# Site settings |
56 |
|
# |
57 |
|
clientmakefile=$(LOCALTOP)/$(INTwork)/clientmakefile |
58 |
< |
include $(clientmakefile) |
58 |
> |
-include $(clientmakefile) |
59 |
|
|
60 |
|
# |
61 |
|
# get build targets |
84 |
|
# Process Subdirs |
85 |
|
# |
86 |
|
ifdef SUBDIRS |
87 |
< |
$(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 |
|
# |
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 |
|
|
142 |
|
ifdef DefaultMakefile |
143 |
|
clean:: |
144 |
|
@echo Cleaning working folder $(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 |