31 |
|
# Sun 4.2 CC |
32 |
|
#---------------------------------------------- |
33 |
|
ifeq ($(CCcompiler),Sun-CC-4.2) |
34 |
< |
ArchiveCCTool = CC -xar -o $@ $^ |
35 |
< |
SharedCCTool = CC -G -o $@ $^ |
34 |
> |
CXXFLAGS+=-ptr$(template_dir) |
35 |
> |
#template_dir=$(shell echo $@ ) |
36 |
> |
template_dir=$(shell echo $@ | sed -e 's/.*\(_.*\)\..*/tmpl\1/' -e 's/.*.o/tmpl/' -e 's/.*.a/tmpl/' ) |
37 |
> |
ArchiveCCTool = CC -xar -o $@ $^ -ptr$(template_dir) |
38 |
> |
SharedCCTool = CC -G -o $@ $^ -ptr$(template_dir) |
39 |
> |
DependencyCCTool = CC -xM1 $(CPPFLAGS) $^ > $@ |
40 |
|
endif |
41 |
|
|
42 |
|
#---------------------------------------------- |