32 |
|
# Sun 4.2 CC |
33 |
|
#---------------------------------------------- |
34 |
|
ifeq ($(CCcompiler),Sun-CC-4.2) |
35 |
+ |
CXX=CC |
36 |
|
CXXFLAGS+=-ptr$(template_dir) -features=rtti |
37 |
|
#template_dir=$(shell echo $@ ) |
38 |
|
template_dir=$(shell echo $@ | sed -e 's/.*\(_.*\)\..*/tmpl\1/' -e 's/.*.o/tmpl/' -e 's/.*.a/tmpl/' -e 's/.*.exe/tmpl/') |
39 |
< |
ArchiveCCTool = CC -xar -o $@ $^ -ptr$(template_dir) |
40 |
< |
SharedCCTool = CC -G -o $@ $^ -ptr$(template_dir) |
41 |
< |
DependencyCCTool = CC -xM1 $(CPPFLAGS) $^ > $@ |
39 |
> |
ArchiveCCTool = $(CXX) -xar -o $@ $^ -ptr$(template_dir) |
40 |
> |
SharedCCTool = $(CXX) -G -o $@ $^ -ptr$(template_dir) |
41 |
> |
DependencyCCTool = $(CXX) -xM1 $(CPPFLAGS) $^ > $@ |
42 |
|
ifdef f77 |
43 |
|
extralib+=M77 F77 sunmath m |
44 |
|
endif |