16 # fields enclosed by brackets "[]" replaced with your own identifying |
16 # fields enclosed by brackets "[]" replaced with your own identifying |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 # Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. |
21 # Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved. |
22 # |
22 # |
23 |
23 |
24 include ../make-rules/shared-macros.mk |
24 include ../make-rules/shared-macros.mk |
25 |
25 |
26 download setup prep build install publish \ |
26 download setup prep build install publish \ |
28 |
28 |
29 # generate wrappers for parfait. we need to generate them |
29 # generate wrappers for parfait. we need to generate them |
30 # with the correct compiler variables from the common makefiles because |
30 # with the correct compiler variables from the common makefiles because |
31 # some things reset the environment which causes lovely infinite |
31 # some things reset the environment which causes lovely infinite |
32 # loops |
32 # loops |
|
33 # |
|
34 # currently, parfait doesn't support gcc4.7+, so we force the use |
|
35 # of gcc3 in both sets of wrappers. |
33 links: |
36 links: |
34 @$(MKDIR) $(PARFAIT_TOOLS) |
37 @$(MKDIR) $(PARFAIT_TOOLS) |
35 @for i in cc CC gcc g++ ld ; do \ |
38 @for i in cc CC gcc g++ ld ; do \ |
36 $(RM) $(PARFAIT_TOOLS)/$$i ; \ |
39 $(RM) $(PARFAIT_TOOLS)/$$i ; \ |
37 echo "#!/bin/ksh" > $(PARFAIT_TOOLS)/$$i ; \ |
40 echo "#!/bin/ksh" > $(PARFAIT_TOOLS)/$$i ; \ |
38 echo "IFS=" >> $(PARFAIT_TOOLS)/$$i ; \ |
41 echo "IFS=" >> $(PARFAIT_TOOLS)/$$i ; \ |
39 echo "export PARFAIT_NATIVESUNCC=$(SPRO_VROOT)/bin/cc" >> $(PARFAIT_TOOLS)/$$i ; \ |
42 echo "export PARFAIT_NATIVESUNCC=$(SPRO_VROOT)/bin/cc" >> $(PARFAIT_TOOLS)/$$i ; \ |
40 echo "export PARFAIT_NATIVESUNCXX=$(SPRO_VROOT)/bin/CC" >> $(PARFAIT_TOOLS)/$$i ; \ |
43 echo "export PARFAIT_NATIVESUNCXX=$(SPRO_VROOT)/bin/CC" >> $(PARFAIT_TOOLS)/$$i ; \ |
41 echo "export PARFAIT_NATIVEGCC=$(GCC_ROOT)/bin/gcc" >> $(PARFAIT_TOOLS)/$$i ; \ |
44 echo "export PARFAIT_NATIVEGCC=$(GCC3_ROOT)/bin/gcc" >> $(PARFAIT_TOOLS)/$$i ; \ |
42 echo "export PARFAIT_NATIVEGXX=$(GCC_ROOT)/bin/g++" >> $(PARFAIT_TOOLS)/$$i ; \ |
45 echo "export PARFAIT_NATIVEGXX=$(GCC3_ROOT)/bin/g++" >> $(PARFAIT_TOOLS)/$$i ; \ |
43 echo "export PARFAIT_NATIVELD=/usr/bin/ld" >> $(PARFAIT_TOOLS)/$$i ; \ |
46 echo "export PARFAIT_NATIVELD=/usr/bin/ld" >> $(PARFAIT_TOOLS)/$$i ; \ |
44 echo "exec" $(PARFAIT_ROOT)/$(MACH)/parfait-$$i '$$*' >> $(PARFAIT_TOOLS)/$$i ; \ |
47 echo "exec" $(PARFAIT_ROOT)/$(MACH)/parfait-$$i '$$*' >> $(PARFAIT_TOOLS)/$$i ; \ |
45 chmod +x $(PARFAIT_TOOLS)/$$i ; \ |
48 chmod +x $(PARFAIT_TOOLS)/$$i ; \ |
46 done |
49 done |
47 @$(MKDIR) $(PARFAIT_TOOLS_GCC3) |
50 @$(MKDIR) $(PARFAIT_TOOLS_GCC3) |