32 |
|
SharedFCObjectFlags = -PIC |
33 |
|
SharedSuffix =so |
34 |
|
SharedCCTool = @echo No Shared Library support |
35 |
+ |
DependencyCCTool = $(CXX) -M $(CPPFLAGS) $^ > $@ |
36 |
|
|
37 |
|
#---------------------------------------------- |
38 |
|
# Sun 4.2 CC |
39 |
|
#---------------------------------------------- |
40 |
|
ifeq ($(CCcompiler),Sun-CC-4.2) |
41 |
|
CXX=CC |
42 |
< |
CXXFLAGS+=-ptr$(template_dir) |
42 |
> |
templatedb=-ptr$(template_dir) -ptr$(RELEASETOP)/$(workdir)/$(template_dir) |
43 |
> |
CXXFLAGS+=$(templatedb) |
44 |
|
template_dir=$(shell echo $@ | sed -e 's/.*\(_.*\)\..*/tmpl\1/' -e 's/.*.o/tmpl/' -e 's/.*.a/tmpl/' -e 's/.*.exe/tmpl/') |
45 |
< |
ArchiveCCTool = $(CXX) -xar -o $@ $^ -ptr$(template_dir) |
46 |
< |
SharedCCTool = $(CXX) -G -o $@ $^ -ptr$(template_dir) |
45 |
> |
ArchiveCCTool = $(CXX) -xar -o $@ $^ $(templatedb) |
46 |
> |
SharedCCTool = $(CXX) -G -o $@ $^ $(templatedb) |
47 |
|
DependencyCCTool = $(CXX) -xM1 $(CPPFLAGS) $^ > $@ |
48 |
|
ifdef f77 |
49 |
|
extralib+=M77 F77 sunmath m |