components/lua/Makefile
changeset 1265 d6a57c34a9a2
parent 1058 34d7aaa03423
child 1485 808df10bcc09
equal deleted inserted replaced
1264:51f059c08b40 1265:d6a57c34a9a2
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
    21 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
    22 #
    22 #
    23 include ../../make-rules/shared-macros.mk
    23 include ../../make-rules/shared-macros.mk
    24 
    24 
    25 COMPONENT_NAME=		lua
    25 COMPONENT_NAME=		lua
    26 COMPONENT_VERSION=	5.2.1
    26 COMPONENT_VERSION=	5.2.1
    55 COMPONENT_INSTALL_ARGS += INSTALL=$(INSTALL)
    55 COMPONENT_INSTALL_ARGS += INSTALL=$(INSTALL)
    56 COMPONENT_INSTALL_ARGS += INSTALL_TOP=$(PROTOUSRDIR)
    56 COMPONENT_INSTALL_ARGS += INSTALL_TOP=$(PROTOUSRDIR)
    57 $(INSTALL_64):	COMPONENT_INSTALL_ARGS += INSTALL_LIB=$(PROTOUSRLIBDIR64)
    57 $(INSTALL_64):	COMPONENT_INSTALL_ARGS += INSTALL_LIB=$(PROTOUSRLIBDIR64)
    58 $(INSTALL_64):	COMPONENT_INSTALL_ARGS += INSTALL_BIN=$(PROTOUSRBINDIR64)
    58 $(INSTALL_64):	COMPONENT_INSTALL_ARGS += INSTALL_BIN=$(PROTOUSRBINDIR64)
    59 
    59 
       
    60 $(BUILD_DIR)/lua-64.pc:		files/lua-64.pc
       
    61 	/bin/sed -e "s#MACH64#$(MACH64)#g" < $< > $@
       
    62 
    60 # common targets
    63 # common targets
    61 build:		$(BUILD_32_and_64)
    64 build:		$(BUILD_32_and_64)
    62 	
    65 	
    63 install:	$(INSTALL_32_and_64)
    66 install:	$(INSTALL_32_and_64) $(BUILD_DIR)/lua-64.pc
    64 		
    67 		
    65 test: 		install
    68 test: 		install
    66 		(gzip -dc $(LUA_TESTS).tar.gz | tar xopf -; \
    69 		(gzip -dc $(LUA_TESTS).tar.gz | tar xopf -; \
    67 		cd $(LUA_TESTS); $(ENV) LD_LIBRARY_PATH=$(PROTOUSRLIBDIR) \
    70 		cd $(LUA_TESTS); $(ENV) LD_LIBRARY_PATH=$(PROTOUSRLIBDIR) \
    68 		$(PROTOUSRBINDIR)/$(COMPONENT_NAME) -e"_U=true" all.lua; \
    71 		$(PROTOUSRBINDIR)/$(COMPONENT_NAME) -e"_U=true" all.lua; \