components/perl512/Makefile
changeset 1283 992606b944e8
parent 1206 8f71b436e7f7
child 2225 f064d3d3190d
equal deleted inserted replaced
1282:16201bef295c 1283:992606b944e8
    89 			    -Dmyhostname="localhost" \
    89 			    -Dmyhostname="localhost" \
    90 			    -Dmksymlinks \
    90 			    -Dmksymlinks \
    91 			    -O \
    91 			    -O \
    92 			    -de
    92 			    -de
    93 
    93 
       
    94 CONFIGURE_THREAD_OPTIONS =  -Dusethreads \
       
    95 			    -Duseithreads
       
    96 
    94 COMPONENT_POST_CONFIGURE_ACTION = \
    97 COMPONENT_POST_CONFIGURE_ACTION = \
    95 	(cd $(@D); \
    98 	(cd $(@D); \
    96 	    cp config.sh config.sh_orig ; \
    99 	    cp config.sh config.sh_orig ; \
    97 	    gawk \
   100 	    gawk \
    98 	    '/^myuname=/{print $$1" localhost "$$3" "$$5" "$$6" "$$7"\047"} ; \
   101 	    '/^myuname=/{print $$1" localhost "$$3" "$$5" "$$6" "$$7"\047"} ; \
   114 # use cc.  Trying to avoid the full path so it doesn't end up in
   117 # use cc.  Trying to avoid the full path so it doesn't end up in
   115 # perl's config.
   118 # perl's config.
   116 #
   119 #
   117 COMPONENT_BUILD_ENV	+=	PATH=$(dir $(CC.studio.32)):$(PATH)
   120 COMPONENT_BUILD_ENV	+=	PATH=$(dir $(CC.studio.32)):$(PATH)
   118 
   121 
       
   122 # ST=single-thread.  MT=multi-thread.  The only difference in the build is that
       
   123 # $(CONFIGURE_THREAD_OPTIONS) gets added to $(CONFIGURE_OPTIONS) in the MT case.
       
   124 #
       
   125 ST_VARIANT =	$(BUILD_DIR)/$(MACH32)-st
       
   126 MT_VARIANT =	$(BUILD_DIR)/$(MACH32)-mt
       
   127 
       
   128 VARIANTS =	$(MT_VARIANT) $(ST_VARIANT)
       
   129 
       
   130 $(VARIANTS:%=%/.configured):	BITS=32
       
   131 
       
   132 $(MT_VARIANT)/.configured:	CONFIGURE_OPTIONS += $(CONFIGURE_THREAD_OPTIONS)
       
   133 
       
   134 BUILD_32 =	$(VARIANTS:%=%/.built)
       
   135 INSTALL_32 =	$(VARIANTS:%=%/.installed)
       
   136 TEST_32 =	$(VARIANTS:%=%/.tested)
       
   137 
   119 build:		$(BUILD_32)
   138 build:		$(BUILD_32)
   120 
   139 
   121 install:	$(INSTALL_32)
   140 install:	$(INSTALL_32)
   122 
   141 
   123 test:		$(TEST_32)
   142 test:		$(TEST_32)