26 |
|
ArchiveSuffix = a |
27 |
|
ArchiveTool = ar -rc $@ $^ |
28 |
|
ArchiveCCTool = $(ArchiveTool) |
29 |
+ |
DebugArchiveCCTool = $(ArchiveTool) |
30 |
|
SCClinkCmd=$(CXX) $(CXXFLAGS) $(CXXOptimised) $(LDFLAGS) $< -o $@ |
31 |
|
SCClinkCmd_d=$(CXX) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@ |
32 |
|
CClinkCmd=$(SCClinkCmd) $(LDLIBS) |
33 |
|
CClinkCmdDebug=$(SCClinkCmd_d) $(LDLIBS_D) |
34 |
< |
CClinkCmdInsure=$(SCClinkCmd_d) $(LDLIBS_Insure) |
34 |
> |
CClinkCmdDebugLocal=$(SCClinkCmd_d) $(LDLIBS_D_L) |
35 |
> |
CClinkCmdInsure=$(Insure) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@ $(LDLIBS_Insure) |
36 |
|
|
37 |
|
SharedCCObjectFlags = -PIC |
38 |
|
SharedFCObjectFlags = -PIC |
49 |
|
ifeq ($(CCcompiler),Sun-CC-4.2) |
50 |
|
CXX=CC |
51 |
|
templatedblib=-ptr$(template_dir) -ptr$(RELEASETOP)/$(workdir)/$(template_dir) |
52 |
+ |
templatedoblib=-ptrtmpl_o -ptr$(RELEASETOP)/$(workdir)/tmpl_o |
53 |
|
templatedshlib=-ptr$(templatesh_dir) -ptr$(RELEASETOP)/$(workdir)/$(templatesh_dir) |
54 |
|
templateddshlib=-ptr$(templateshd_dir) -ptr$(RELEASETOP)/$(workdir)/$(templateshd_dir) |
55 |
|
templatedinsureshlib=-ptr$(templateshi_dir) -ptr$(RELEASETOP)/$(workdir)/$(templateshi_dir) |
58 |
|
SCClinkCmd+=$(templatedbin) |
59 |
|
SCClinkCmd_d+=$(templatedbin) |
60 |
|
CXXFLAGS+=$(templatedbo) |
61 |
< |
template_dir=$(shell echo $@ | sed -e 's/.*\(_.*\)\..*/tmpl\1/' -e 's/.*.o/tmpl/' -e 's/.*.a/tmpl/' -e 's/.*.exe/tmpl/') |
61 |
> |
template_dir=$(shell echo $@ | sed -e 's/.*\(_.*\)\..*/tmpl\1/' -e 's/.*\.o/tmpl/' -e 's/.*\.a/tmpl/' -e 's/.*\.exe/tmpl/') |
62 |
|
templatesh_dir=tmpl_pic |
63 |
|
templateshd_dir=tmpl_picd |
64 |
< |
templateshi_dir=tmpl_picinsure |
65 |
< |
ArchiveCCTool = $(CXX) -xar -o $@ $^ $(templatedblib) |
64 |
> |
templateshi_dir=tmpl_picInsure |
65 |
> |
ArchiveCCTool = $(CXX) -xar -o $@ $^ $(templatedoblib) |
66 |
> |
DebugArchiveCCTool = $(CXX) -xar -o $@ $^ $(templatedblib) |
67 |
|
SharedCCTool = $(CXX) -G -o $@ $^ $(templatedshlib) |
68 |
|
DebugSharedCCTool = $(CXX) -G $(CXXDebugFlag) -o $@ $^ $(templateddshlib) |
69 |
|
InsureSharedCCTool = $(CXX) -G $(CXXDebugFlag) -o $@ $^ $(templatedinsureshlib) |
70 |
|
DependencyCCTool = $(CXX) -xM1 $(CPPFLAGS) $^ > $@ |
71 |
+ |
ifdef defaultcompilerlibs |
72 |
+ |
PRIORITY_LIBDIR+=/opt/SUNWspro/SC4.2/lib |
73 |
+ |
endif |
74 |
|
ifdef f77 |
75 |
|
extralib+=M77 F77 sunmath m |
76 |
|
endif |
121 |
|
endif |
122 |
|
|
123 |
|
#---------------------------------------------- |
124 |
+ |
# gcc2.95 Linux |
125 |
+ |
#---------------------------------------------- |
126 |
+ |
ifeq ($(CCcompiler),gcc2.95) |
127 |
+ |
CXX=c++ |
128 |
+ |
SharedCCObjectFlags = -fPIC |
129 |
+ |
SharedCCTool = $(CXX) $^ -o $@ -shared -Wl,-soname,$@ |
130 |
+ |
DebugSharedCCTool = $(CXX) $(CXXDebugFlag) $^ -o $@ -shared -Wl,-soname,$@ |
131 |
+ |
ifdef f77 |
132 |
+ |
extralib+=g2c m |
133 |
+ |
endif |
134 |
+ |
endif |
135 |
+ |
|
136 |
+ |
#---------------------------------------------- |
137 |
|
# GNU g77 Fortran compiler |
138 |
|
#---------------------------------------------- |
139 |
|
ifeq ($(F77compiler),g77) |
140 |
+ |
SharedFCObjectFlags = -fPIC |
141 |
|
FC:=g77 |
142 |
|
endif |
143 |
|
|
154 |
|
#----------------------------------------------- |
155 |
|
Insure:=insure |
156 |
|
.psrc : |
157 |
< |
-@rm .psrc |
157 |
> |
@if [ -f .psrc ]; then \ |
158 |
> |
rm .psrc \ |
159 |
> |
fi |
160 |
|
echo insure++.compiler_cpp $(CXX) >> .psrc |
161 |
|
echo insure++.temp_directory /tmp >> .psrc |
162 |
|
echo insure++.compiler_default cpp >> .psrc |