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 |
|
|
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 |
+ |
ifdef SCRAM_GROUPSDIR |
60 |
+ |
-include $(SCRAM_GROUPSDIR) |
61 |
+ |
endif |
62 |
+ |
|
63 |
|
# Site settings |
64 |
|
# |
65 |
|
clientmakefile=$(LOCALTOP)/$(INTwork)/clientmakefile |
75 |
|
# |
76 |
|
# -- Some tool setups which dont yet have a home |
77 |
|
# |
78 |
< |
CPPFLAGS += $(INCLUDEPATH) |
78 |
> |
CPPFLAGS += $(addprefix -I,$(PRIORITY_INCLUDE)) $(INCLUDEPATH) |
79 |
|
|
80 |
|
|
81 |
|
# |
88 |
|
# |
89 |
|
-include dependencies.mk |
90 |
|
|
91 |
+ |
#dependencies.mk :: $(clientmakefile) |
92 |
|
# |
93 |
|
# Process Subdirs |
94 |
|
# |
95 |
|
ifdef SUBDIRS |
96 |
|
$(SUBDIRS):: |
97 |
|
@echo ------- Building ---- $@ ----------- |
98 |
< |
@cd $(LOCALTOP)/$(ClassDir)/$@; $(TOOL_HOME)/scram build |
98 |
> |
@if [ -d $(LOCALTOP)/$(ClassDir)/$@ ]; then \ |
99 |
> |
cd $(LOCALTOP)/$(ClassDir)/$@; $(TOOL_HOME)/scram build; \ |
100 |
> |
else echo SCRAM Warning : $@ does not exist; \ |
101 |
> |
fi |
102 |
|
endif |
103 |
|
|
89 |
– |
# |
90 |
– |
# clientmakefile creation |
91 |
– |
# |
92 |
– |
$(clientmakefile): $(LOCALTOP)/.SCRAM/${SCRAM_ARCH}/clientsettings $(LOCALTOP)/.SCRAM/${SCRAM_ARCH}/clientsettings_reqs $(projdeps) $(TOOL_HOME)/ProcessSiteFile |
93 |
– |
@$(TOOL_HOME)/ProcessSiteFile $< $@ $(projdeps) |
104 |
|
|
105 |
< |
HELPINCLUDEMAKEFILES := ${DefaultBuildFile} ${TOOL_HOME}/toolrules.mk |
105 |
> |
#HELPINCLUDEMAKEFILES := ${DefaultBuildFile} ${TOOL_HOME}/toolrules.mk |
106 |
|
|
107 |
|
# |
108 |
|
# |
119 |
|
grep -v ':=' | grep -v 'vpath' |
120 |
|
|
121 |
|
exit: |
122 |
< |
@echo "Please Use the orcabuild script. Do not use gmake directly." |
122 |
> |
@echo "Please Use Scram. Do not use gmake directly." |
123 |
|
@exit 1 |
124 |
|
|
125 |
|
echo_%: |
126 |
|
@echo "$(subst echo_,,$@) = $($(subst echo_,,$@))" |
127 |
|
|
128 |
+ |
|
129 |
+ |
# |
130 |
+ |
# Other non-critical targets |
131 |
+ |
# |
132 |
+ |
|
133 |
+ |
TAGS: |
134 |
+ |
etags -o TAGS $(files) $(binfiles) |
135 |
+ |
|
136 |
+ |
tags: |
137 |
+ |
ctags -o tags $(files) $(binfiles) |
138 |
+ |
|
139 |
+ |
# |
140 |
|
# |
141 |
|
# clean targets |
142 |
|
# |
147 |
|
ifdef DefaultMakefile |
148 |
|
clean:: |
149 |
|
@echo Cleaning working folder $(workdir) |
150 |
< |
@rm -rf $(LOCALTOP)/$(workdir)/.* $(LOCALTOP)/$(workdir)/* |
150 |
> |
ifdef LOCALTOP |
151 |
> |
ifdef workdir |
152 |
> |
@rm -rf $(LOCALTOP)/$(workdir)/* |
153 |
> |
endif |
154 |
> |
endif |
155 |
|
|
156 |
|
very_clean: |
157 |
|
@echo Cleaning all working folders in $(INTwork) |
158 |
|
@cd $(LOCALTOP)/$(INTwork) |
159 |
< |
@rm -rf $(LOCALTOP)/$(INTwork)/*.o |
159 |
> |
ifdef LOCALTOP |
160 |
> |
ifdef workdir |
161 |
> |
@rm -rf $(LOCALTOP)/$(INTwork)/* |
162 |
> |
endif |
163 |
> |
endif |
164 |
|
endif |