1 |
|
# |
2 |
|
# Preliminaries |
3 |
|
# |
4 |
< |
LIBDIR:=$(LOCALTOP)/lib/$(SCRAM_ARCH) $(RELEASETOP)/lib/$(SCRAM_ARCH) |
4 |
> |
LIBDIR=$(LOCALTOP)/lib/$(SCRAM_ARCH) $(RELEASETOP)/lib/$(SCRAM_ARCH) $(PRIORITY_LIBDIR) |
5 |
> |
|
6 |
> |
CXXFLAGS+=$(CXXUSERFLAGS) |
7 |
|
|
8 |
|
# |
9 |
|
# Make sure nobody tries to run this directly through gmake |
12 |
|
all: exit |
13 |
|
endif |
14 |
|
|
15 |
+ |
|
16 |
|
# -- storage of libraries |
17 |
|
librarystore:=$(LOCALTOP)/$(INTlib) |
18 |
< |
vpath %.$(SharedSuffix) $(librarystore):$(RELEASETOP)/$(INTlib) |
16 |
< |
vpath %.$(ArchiveSuffix) $(librarystore):$(RELEASETOP)/$(INTlib) |
18 |
> |
|
19 |
|
libsavaillocal=$(notdir $(wildcard $(librarystore)/*)) |
20 |
|
libsavailbase=$(notdir $(wildcard $(RELEASETOP)/$(INTlib)/*)) |
21 |
|
libsavail=$(sort $(libsavailbase) $(libsavaillocal)) |
38 |
|
$(TOOL_HOME)/BuildPackageReqs $@ $? |
39 |
|
endif |
40 |
|
|
41 |
+ |
|
42 |
|
# |
43 |
|
# Get local mods |
44 |
|
# |
45 |
|
ifdef LatestBuildFile |
46 |
|
include ${LatestBuildFile} |
47 |
|
endif |
48 |
+ |
|
49 |
|
# |
50 |
|
# get build requirements Class |
51 |
|
# |
54 |
|
endif |
55 |
|
|
56 |
|
# |
57 |
+ |
# Group Settings |
58 |
+ |
# |
59 |
+ |
-include $(LOCALTOP)/$(projconfigdir)/groups.mk |
60 |
+ |
|
61 |
|
# Site settings |
62 |
|
# |
63 |
|
clientmakefile=$(LOCALTOP)/$(INTwork)/clientmakefile |
64 |
< |
include $(clientmakefile) |
64 |
> |
-include $(clientmakefile) |
65 |
|
|
66 |
|
# |
67 |
|
# get build targets |
73 |
|
# |
74 |
|
# -- Some tool setups which dont yet have a home |
75 |
|
# |
76 |
< |
CPPFLAGS += $(INCLUDEPATH) |
76 |
> |
CPPFLAGS += $(addprefix -I,$(PRIORITY_INCLUDE)) $(INCLUDEPATH) |
77 |
|
|
78 |
|
|
79 |
|
# |
86 |
|
# |
87 |
|
-include dependencies.mk |
88 |
|
|
89 |
+ |
#dependencies.mk :: $(clientmakefile) |
90 |
|
# |
91 |
|
# Process Subdirs |
92 |
|
# |
93 |
|
ifdef SUBDIRS |
94 |
|
$(SUBDIRS):: |
95 |
|
@echo ------- Building ---- $@ ----------- |
96 |
< |
@cd $(LOCALTOP)/$(ClassDir)/$@; $(TOOL_HOME)/scram build |
96 |
> |
@if [ -d $(LOCALTOP)/$(ClassDir)/$@ ]; then \ |
97 |
> |
cd $(LOCALTOP)/$(ClassDir)/$@; $(TOOL_HOME)/scram build; \ |
98 |
> |
else echo SCRAM Warning : $@ does not exist; \ |
99 |
> |
fi |
100 |
|
endif |
101 |
|
|
90 |
– |
# |
91 |
– |
# clientmakefile creation |
92 |
– |
# |
93 |
– |
$(clientmakefile): $(LOCALTOP)/.SCRAM/${SCRAM_ARCH}/clientsettings $(LOCALTOP)/.SCRAM/${SCRAM_ARCH}/clientsettings_reqs $(projdeps) $(TOOL_HOME)/ProcessSiteFile |
94 |
– |
@$(TOOL_HOME)/ProcessSiteFile $< $@ $(projdeps) |
102 |
|
|
103 |
|
HELPINCLUDEMAKEFILES := ${DefaultBuildFile} ${TOOL_HOME}/toolrules.mk |
104 |
|
|
124 |
|
@echo "$(subst echo_,,$@) = $($(subst echo_,,$@))" |
125 |
|
|
126 |
|
# |
127 |
+ |
# Other non-critical targets |
128 |
+ |
# |
129 |
+ |
|
130 |
+ |
TAGS: |
131 |
+ |
etags -o TAGS $(files) $(binfiles) |
132 |
+ |
|
133 |
+ |
tags: |
134 |
+ |
ctags -o tags $(files) $(binfiles) |
135 |
+ |
|
136 |
+ |
# |
137 |
+ |
# |
138 |
|
# clean targets |
139 |
|
# |
140 |
|
|
144 |
|
ifdef DefaultMakefile |
145 |
|
clean:: |
146 |
|
@echo Cleaning working folder $(workdir) |
147 |
< |
@rm -rf $(LOCALTOP)/$(workdir)/.* $(LOCALTOP)/$(workdir)/* |
147 |
> |
ifdef LOCALTOP |
148 |
> |
ifdef workdir |
149 |
> |
@rm -rf $(LOCALTOP)/$(workdir)/* |
150 |
> |
endif |
151 |
> |
endif |
152 |
|
|
153 |
|
very_clean: |
154 |
|
@echo Cleaning all working folders in $(INTwork) |
155 |
|
@cd $(LOCALTOP)/$(INTwork) |
156 |
< |
@rm -rf $(LOCALTOP)/$(INTwork)/*.o |
156 |
> |
ifdef LOCALTOP |
157 |
> |
ifdef workdir |
158 |
> |
@rm -rf $(LOCALTOP)/$(INTwork)/* |
159 |
> |
endif |
160 |
> |
endif |
161 |
|
endif |