make-rules/configure.mk
changeset 774 d0cbca26a17c
parent 698 7144bcdfe7dd
child 1352 1358a1e1ff4c
equal deleted inserted replaced
773:cfddc5466118 774:d0cbca26a17c
    87 
    87 
    88 $(BUILD_DIR_32)/.configured:	BITS=32
    88 $(BUILD_DIR_32)/.configured:	BITS=32
    89 $(BUILD_DIR_64)/.configured:	BITS=64
    89 $(BUILD_DIR_64)/.configured:	BITS=64
    90 
    90 
    91 CONFIGURE_ENV += $(CONFIGURE_ENV.$(BITS))
    91 CONFIGURE_ENV += $(CONFIGURE_ENV.$(BITS))
       
    92 ifeq   ($(strip $(PARFAIT_BUILD)),yes)
       
    93 # parfait creates '*.bc' files which can confuse configure's
       
    94 # object/exe extension detection. which we really don't need it
       
    95 # to do anyway, so we'll just tell it what they are.
       
    96 CONFIGURE_ENV += ac_cv_objext=o
       
    97 CONFIGURE_ENV += ac_cv_exeext=""
       
    98 # this is fixed in the clang compiler but we can't use it yet
       
    99 CONFIGURE_ENV += ac_cv_header_stdbool_h=yes
       
   100 endif
       
   101 
    92 
   102 
    93 # temporarily work around some issues
   103 # temporarily work around some issues
    94 CONFIGURE_ENV += "ac_cv_func_realloc_0_nonnull=yes"
   104 CONFIGURE_ENV += "ac_cv_func_realloc_0_nonnull=yes"
    95 COMPONENT_BUILD_ENV += "ac_cv_func_realloc_0_nonnull=yes"
   105 COMPONENT_BUILD_ENV += "ac_cv_func_realloc_0_nonnull=yes"
    96 
   106 
   108 $(BUILD_DIR)/%/.built:	$(BUILD_DIR)/%/.configured
   118 $(BUILD_DIR)/%/.built:	$(BUILD_DIR)/%/.configured
   109 	$(COMPONENT_PRE_BUILD_ACTION)
   119 	$(COMPONENT_PRE_BUILD_ACTION)
   110 	(cd $(@D) ; $(ENV) $(COMPONENT_BUILD_ENV) \
   120 	(cd $(@D) ; $(ENV) $(COMPONENT_BUILD_ENV) \
   111 		$(GMAKE) $(COMPONENT_BUILD_ARGS) $(COMPONENT_BUILD_TARGETS))
   121 		$(GMAKE) $(COMPONENT_BUILD_ARGS) $(COMPONENT_BUILD_TARGETS))
   112 	$(COMPONENT_POST_BUILD_ACTION)
   122 	$(COMPONENT_POST_BUILD_ACTION)
       
   123 ifeq   ($(strip $(PARFAIT_BUILD)),yes)
       
   124 	-$(PARFAIT) build
       
   125 endif
   113 	$(TOUCH) $@
   126 	$(TOUCH) $@
   114 
   127 
   115 # install the built source into a prototype area
   128 # install the built source into a prototype area
   116 $(BUILD_DIR)/%/.installed:	$(BUILD_DIR)/%/.built
   129 $(BUILD_DIR)/%/.installed:	$(BUILD_DIR)/%/.built
   117 	$(COMPONENT_PRE_INSTALL_ACTION)
   130 	$(COMPONENT_PRE_INSTALL_ACTION)
   126 	(cd $(@D) ; $(ENV) $(COMPONENT_TEST_ENV) $(GMAKE) \
   139 	(cd $(@D) ; $(ENV) $(COMPONENT_TEST_ENV) $(GMAKE) \
   127 			$(COMPONENT_TEST_ARGS) $(COMPONENT_TEST_TARGETS))
   140 			$(COMPONENT_TEST_ARGS) $(COMPONENT_TEST_TARGETS))
   128 	$(COMPONENT_POST_TEST_ACTION)
   141 	$(COMPONENT_POST_TEST_ACTION)
   129 	$(TOUCH) $@
   142 	$(TOUCH) $@
   130 
   143 
       
   144 ifeq   ($(strip $(PARFAIT_BUILD)),yes)
       
   145 parfait: install
       
   146 	-$(PARFAIT) build
       
   147 else
       
   148 parfait:
       
   149 	$(MAKE) PARFAIT_BUILD=yes parfait
       
   150 endif
       
   151 
   131 clean::
   152 clean::
   132 	$(RM) -r $(BUILD_DIR) $(PROTO_DIR)
   153 	$(RM) -r $(BUILD_DIR) $(PROTO_DIR)