tools/Makefile
branchs11-update
changeset 3464 57f7ad288af9
parent 2914 4f1967424876
equal deleted inserted replaced
3462:3fbdd7a202d6 3464:57f7ad288af9
    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.
       
    36 links:
    33 links:
    37 	@$(MKDIR) $(PARFAIT_TOOLS)
    34 	@$(MKDIR) $(PARFAIT_TOOLS)
    38 	@for i in cc CC gcc g++ ld ; do \
    35 	@for i in cc CC gcc g++ ld ; do \
    39 		$(RM) $(PARFAIT_TOOLS)/$$i ; \
    36 		$(RM) $(PARFAIT_TOOLS)/$$i ; \
    40 		echo "#!/bin/ksh" > $(PARFAIT_TOOLS)/$$i ; \
    37 		echo "#!/bin/ksh" > $(PARFAIT_TOOLS)/$$i ; \
    41 		echo "IFS=" >> $(PARFAIT_TOOLS)/$$i ; \
    38 		echo "IFS=" >> $(PARFAIT_TOOLS)/$$i ; \
    42 		echo "export PARFAIT_NATIVESUNCC=$(SPRO_VROOT)/bin/cc" >> $(PARFAIT_TOOLS)/$$i ; \
    39 		echo "export PARFAIT_NATIVESUNCC=$(SPRO_VROOT)/bin/cc" >> $(PARFAIT_TOOLS)/$$i ; \
    43 		echo "export PARFAIT_NATIVESUNCXX=$(SPRO_VROOT)/bin/CC" >> $(PARFAIT_TOOLS)/$$i ; \
    40 		echo "export PARFAIT_NATIVESUNCXX=$(SPRO_VROOT)/bin/CC" >> $(PARFAIT_TOOLS)/$$i ; \
    44 		echo "export PARFAIT_NATIVEGCC=$(GCC3_ROOT)/bin/gcc" >> $(PARFAIT_TOOLS)/$$i ; \
    41 		echo "export PARFAIT_NATIVEGCC=$(GCC_ROOT)/bin/gcc" >> $(PARFAIT_TOOLS)/$$i ; \
    45 		echo "export PARFAIT_NATIVEGXX=$(GCC3_ROOT)/bin/g++" >> $(PARFAIT_TOOLS)/$$i ; \
    42 		echo "export PARFAIT_NATIVEGXX=$(GCC_ROOT)/bin/g++" >> $(PARFAIT_TOOLS)/$$i ; \
    46 		echo "export PARFAIT_NATIVELD=/usr/bin/ld" >> $(PARFAIT_TOOLS)/$$i ; \
    43 		echo "export PARFAIT_NATIVELD=/usr/bin/ld" >> $(PARFAIT_TOOLS)/$$i ; \
    47 		echo "exec" $(PARFAIT_ROOT)/$(MACH)/parfait-$$i '$$*' >> $(PARFAIT_TOOLS)/$$i ; \
    44 		echo "exec" $(PARFAIT_ROOT)/$(MACH)/parfait-$$i '$$*' >> $(PARFAIT_TOOLS)/$$i ; \
    48 		chmod +x $(PARFAIT_TOOLS)/$$i ; \
    45 		chmod +x $(PARFAIT_TOOLS)/$$i ; \
    49 	done
    46 	done
    50 	@$(MKDIR) $(PARFAIT_TOOLS_GCC3)
    47 	@$(MKDIR) $(PARFAIT_TOOLS_GCC3)