17 |
|
CXX=CC |
18 |
|
CXXDebugFlag=-g |
19 |
|
FCDebugFlag=-g |
20 |
+ |
FC:=f77 |
21 |
|
|
22 |
|
ArchiveSuffix = a |
23 |
|
ArchiveTool = ar -rc $@ $^ |
24 |
|
ArchiveCCTool = $(ArchiveTool) |
25 |
+ |
SCClinkCmd=$(CXX) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@ |
26 |
+ |
CClinkCmd=$(SCClinkCmd) $(LDLIBS) |
27 |
+ |
CClinkCmdDebug=$(SCClinkCmd) $(LDLIBS_D) |
28 |
+ |
CClinkCmdInsure=$(SCClinkCmd) $(LDLIBS_Insure) |
29 |
|
|
30 |
|
SharedCCObjectFlags = -PIC |
31 |
|
SharedFCObjectFlags = -PIC |
36 |
|
# Sun 4.2 CC |
37 |
|
#---------------------------------------------- |
38 |
|
ifeq ($(CCcompiler),Sun-CC-4.2) |
39 |
< |
CXXFLAGS+=-ptr$(template_dir) |
39 |
> |
CXX=CC |
40 |
> |
CXXFLAGS+=-ptr$(template_dir) -features=rtti |
41 |
|
#template_dir=$(shell echo $@ ) |
42 |
< |
template_dir=$(shell echo $@ | sed -e 's/.*\(_.*\)\..*/tmpl\1/' -e 's/.*.o/tmpl/' -e 's/.*.a/tmpl/' ) |
43 |
< |
ArchiveCCTool = CC -xar -o $@ $^ -ptr$(template_dir) |
44 |
< |
SharedCCTool = CC -G -o $@ $^ -ptr$(template_dir) |
45 |
< |
DependencyCCTool = CC -xM1 $(CPPFLAGS) $^ > $@ |
42 |
> |
template_dir=$(shell echo $@ | sed -e 's/.*\(_.*\)\..*/tmpl\1/' -e 's/.*.o/tmpl/' -e 's/.*.a/tmpl/' -e 's/.*.exe/tmpl/') |
43 |
> |
ArchiveCCTool = $(CXX) -xar -o $@ $^ -ptr$(template_dir) |
44 |
> |
SharedCCTool = $(CXX) -G -o $@ $^ -ptr$(template_dir) |
45 |
> |
DependencyCCTool = $(CXX) -xM1 $(CPPFLAGS) $^ > $@ |
46 |
|
ifdef f77 |
47 |
|
extralib+=M77 F77 sunmath m |
48 |
|
endif |
85 |
|
extralib+=g2c m |
86 |
|
endif |
87 |
|
endif |
88 |
+ |
|
89 |
+ |
#---------------------------------------------- |
90 |
+ |
# GNU g77 Fortran compiler |
91 |
+ |
#---------------------------------------------- |
92 |
+ |
ifeq ($(F77compiler),g77) |
93 |
+ |
FC:=g77 |
94 |
+ |
endif |
95 |
+ |
|
96 |
+ |
|
97 |
+ |
#----------------------------------------------- |
98 |
+ |
# Insure++ |
99 |
+ |
#----------------------------------------------- |
100 |
+ |
Insure:=insure |
101 |
+ |
.psrc : |
102 |
+ |
-@rm .psrc |
103 |
+ |
echo insure++.compiler_cpp $(CXX) >> .psrc |
104 |
+ |
echo insure++.temp_directory /tmp >> .psrc |
105 |
+ |
echo insure++.compiler_default cpp >> .psrc |
106 |
+ |
echo insure++.summarize leaks >> .psrc |