33 |
|
SharedSuffix =so |
34 |
|
SharedCCTool = @echo No Shared Library support |
35 |
|
DependencyCCTool = $(CXX) -M $(CPPFLAGS) $^ > $@ |
36 |
+ |
PreProcessorCCTool = $(CXX) -P $(CPPFLAGS) $^ |
37 |
|
|
38 |
|
#---------------------------------------------- |
39 |
|
# Sun 4.2 CC |
41 |
|
ifeq ($(CCcompiler),Sun-CC-4.2) |
42 |
|
CXX=CC |
43 |
|
templatedblib=-ptr$(template_dir) -ptr$(RELEASETOP)/$(workdir)/$(template_dir) |
44 |
+ |
templatedshlib=-ptr$(templatesh_dir) -ptr$(RELEASETOP)/$(workdir)/$(templatesh_dir) |
45 |
+ |
templatedbin=-ptr$(RELEASETOP)/$(workdir)/$(template_dir) |
46 |
|
templatedbo=-ptr$(template_dir) |
47 |
+ |
SCClinkCmd+=$(templatedbin) |
48 |
+ |
SCClinkCmd_d+=$(templatedbin) |
49 |
|
CXXFLAGS+=$(templatedbo) |
50 |
|
template_dir=$(shell echo $@ | sed -e 's/.*\(_.*\)\..*/tmpl\1/' -e 's/.*.o/tmpl/' -e 's/.*.a/tmpl/' -e 's/.*.exe/tmpl/') |
51 |
+ |
templatesh_dir=tmpl_pic |
52 |
|
ArchiveCCTool = $(CXX) -xar -o $@ $^ $(templatedblib) |
53 |
< |
SharedCCTool = $(CXX) -G -o $@ $^ $(templatedblib) |
53 |
> |
SharedCCTool = $(CXX) -G -o $@ $^ $(templatedshlib) |
54 |
|
DependencyCCTool = $(CXX) -xM1 $(CPPFLAGS) $^ > $@ |
55 |
|
ifdef f77 |
56 |
|
extralib+=M77 F77 sunmath m |
57 |
|
endif |
58 |
+ |
ifdef MultiThreaded |
59 |
+ |
CXXFLAGS+=-mt |
60 |
+ |
endif |
61 |
|
endif |
62 |
|
|
63 |
|
#---------------------------------------------- |
105 |
|
FC:=g77 |
106 |
|
endif |
107 |
|
|
108 |
+ |
#---------------------------------------------- |
109 |
+ |
# HP-UX Fortran compiler fort77 |
110 |
+ |
#---------------------------------------------- |
111 |
+ |
ifeq ($(F77compiler),fort77) |
112 |
+ |
FC:=fort77 |
113 |
+ |
SharedFCObjectFlags = +Z |
114 |
+ |
endif |
115 |
|
|
116 |
|
#----------------------------------------------- |
117 |
|
# Insure++ |
123 |
|
echo insure++.temp_directory /tmp >> .psrc |
124 |
|
echo insure++.compiler_default cpp >> .psrc |
125 |
|
echo insure++.summarize leaks >> .psrc |
126 |
+ |
|
127 |
+ |
#----------------------------------------------- |
128 |
+ |
# Macabe |
129 |
+ |
#----------------------------------------------- |
130 |
+ |
ifdef MCCABE_EXTENSIONS |
131 |
+ |
include mccabe.mk |
132 |
+ |
endif |