make-rules/configure.mk
changeset 38 cd00ea74156e
parent 16 33aaaec59991
child 57 91dc164c5b46
equal deleted inserted replaced
37:988ea0021850 38:cd00ea74156e
    53 CONFIGURE_OPTIONS += --prefix=/usr
    53 CONFIGURE_OPTIONS += --prefix=/usr
    54 CONFIGURE_OPTIONS += CC="$(CC)"
    54 CONFIGURE_OPTIONS += CC="$(CC)"
    55 CONFIGURE_OPTIONS += CXX="$(CCC)"
    55 CONFIGURE_OPTIONS += CXX="$(CCC)"
    56 CONFIGURE_OPTIONS.32 += --bindir=/usr/bin
    56 CONFIGURE_OPTIONS.32 += --bindir=/usr/bin
    57 CONFIGURE_OPTIONS.32 += --libdir=/usr/lib
    57 CONFIGURE_OPTIONS.32 += --libdir=/usr/lib
    58 CONFIGURE_OPTIONS.64 = --bindir=/usr/bin/$(MACH64)
    58 CONFIGURE_OPTIONS.64 += --bindir=/usr/bin/$(MACH64)
    59 CONFIGURE_OPTIONS.64 += --libdir=/usr/lib/$(MACH64)
    59 CONFIGURE_OPTIONS.64 += --libdir=/usr/lib/$(MACH64)
    60 
    60 
    61 $(COMPONENT_SRC)/build-$(MACH32)/.configured:	BITS=32
    61 $(COMPONENT_SRC)/build-$(MACH32)/.configured:	BITS=32
    62 $(COMPONENT_SRC)/build-$(MACH64)/.configured:	BITS=64
    62 $(COMPONENT_SRC)/build-$(MACH64)/.configured:	BITS=64
    63 
    63 
    69 # configure the unpacked source for building 32 and 64 bit version
    69 # configure the unpacked source for building 32 and 64 bit version
    70 $(COMPONENT_SRC)/build-%/.configured:	$(COMPONENT_SRC)/.prep
    70 $(COMPONENT_SRC)/build-%/.configured:	$(COMPONENT_SRC)/.prep
    71 	($(RM) -rf $(@D) ; $(MKDIR) $(@D))
    71 	($(RM) -rf $(@D) ; $(MKDIR) $(@D))
    72 	$(COMPONENT_PRE_CONFIGURE_ACTION)
    72 	$(COMPONENT_PRE_CONFIGURE_ACTION)
    73 	(cd $(@D) ; $(ENV) $(CONFIGURE_ENV) $(CONFIG_SHELL) \
    73 	(cd $(@D) ; $(ENV) $(CONFIGURE_ENV) $(CONFIG_SHELL) \
    74 		../configure $(CONFIGURE_OPTIONS) $(CONFIGURE_OPTIONS.$(BITS)))
    74 		../configure $(CONFIGURE_OPTIONS))
    75 	$(COMPONENT_POST_CONFIGURE_ACTION)
    75 	$(COMPONENT_POST_CONFIGURE_ACTION)
    76 	$(TOUCH) [email protected]
    76 	$(TOUCH) [email protected]
    77 
    77 
    78 # build the configured source
    78 # build the configured source
    79 $(COMPONENT_SRC)/build-%/.built:	$(COMPONENT_SRC)/build-%/.configured
    79 $(COMPONENT_SRC)/build-%/.built:	$(COMPONENT_SRC)/build-%/.configured