components/readline/Makefile
changeset 4768 36f47c0b202b
parent 4609 c87d757fa091
child 4815 6deafddbd89b
equal deleted inserted replaced
4767:8e8393bb8142 4768:36f47c0b202b
    75 
    75 
    76 # Master test results are the same for 32-bit and 64-bit, so override
    76 # Master test results are the same for 32-bit and 64-bit, so override
    77 # here, rather than create multiple identical master files.
    77 # here, rather than create multiple identical master files.
    78 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
    78 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
    79 
    79 
       
    80 # Needed to build the test program.
       
    81 COMPONENT_PRE_SYSTEM_TEST_ACTION += \
       
    82 	(cd $(@D) ; $(GMAKE) libreadline.a ) ;
       
    83 
       
    84 # Build the test program.
       
    85 COMPONENT_PRE_SYSTEM_TEST_ACTION += \
       
    86 	(cd $(@D)/examples ; $(GMAKE) rlcat ) ;
       
    87 
       
    88 # Get correct libreadline.so.6 from the proto area.
       
    89 TEST_LIBPATH.32 =       $(PROTOUSRLIBDIR)
       
    90 TEST_LIBPATH.64 =       $(PROTOUSRLIBDIR64)
       
    91 COMPONENT_TEST_ENV +=   LD_LIBRARY_PATH=$(TEST_LIBPATH.$(BITS))
       
    92 
       
    93 COMPONENT_SYSTEM_TEST_DIR =	$(@D)/examples
       
    94 COMPONENT_SYSTEM_TEST_CMD =	$(CAT) $(SOURCE_DIR)/examples/Inputrc | ./rlcat
       
    95 COMPONENT_SYSTEM_TEST_TARGETS =
       
    96 
    80 # Macros to configure, build, and install the old version for the time being.
    97 # Macros to configure, build, and install the old version for the time being.
    81 BUILD_OLD_DIR_32 = $(COMPONENT_DIR)/build/$(COMPONENT_VERSION_1)-$(MACH32)
    98 BUILD_OLD_DIR_32 = $(COMPONENT_DIR)/build/$(COMPONENT_VERSION_1)-$(MACH32)
    82 BUILD_OLD_DIR_64 = $(COMPONENT_DIR)/build/$(COMPONENT_VERSION_1)-$(MACH64)
    99 BUILD_OLD_DIR_64 = $(COMPONENT_DIR)/build/$(COMPONENT_VERSION_1)-$(MACH64)
    83 
   100 
    84 $(BUILD_OLD_DIR_32)/.configured: CONFIGURE_SCRIPT = $(SOURCE_DIR_1)/configure
   101 $(BUILD_OLD_DIR_32)/.configured: CONFIGURE_SCRIPT = $(SOURCE_DIR_1)/configure
   118 
   135 
   119 build:		$(BUILD_32_and_64)
   136 build:		$(BUILD_32_and_64)
   120 
   137 
   121 install:	$(INSTALL_32_and_64)
   138 install:	$(INSTALL_32_and_64)
   122 
   139 
   123 test:		$(TEST_32_and_64)
   140 test:		install $(TEST_32_and_64)
   124 
   141 
   125 system-test:    $(SYSTEM_TESTS_NOT_IMPLEMENTED)
   142 system-test:    configure $(SYSTEM_TEST_32_and_64)
   126 
   143 
   127 
   144 
   128 REQUIRED_PACKAGES += system/library
   145 REQUIRED_PACKAGES += system/library