components/python/twisted/Makefile
changeset 1890 5a4ef66c42bf
parent 1434 c782e620dd26
child 1907 446472de62e9
equal deleted inserted replaced
1889:7251578a5ce7 1890:5a4ef66c42bf
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 
    21 
    22 #
    22 #
    23 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
    24 #
    24 #
    25 
    25 
    26 include ../../../make-rules/shared-macros.mk
    26 include ../../../make-rules/shared-macros.mk
    27 
    27 
    28 COMPONENT_NAME=		Twisted
    28 COMPONENT_NAME=		Twisted
    38 include $(WS_TOP)/make-rules/prep.mk
    38 include $(WS_TOP)/make-rules/prep.mk
    39 include $(WS_TOP)/make-rules/setup.py.mk
    39 include $(WS_TOP)/make-rules/setup.py.mk
    40 include $(WS_TOP)/make-rules/ips.mk
    40 include $(WS_TOP)/make-rules/ips.mk
    41 
    41 
    42 COMPONENT_TEST_DIR= $(COMPONENT_SRC) 
    42 COMPONENT_TEST_DIR= $(COMPONENT_SRC) 
    43 COMPONENT_TEST_CMD= $(@D)/scripts-2.6/trial twisted
    43 COMPONENT_TEST_CMD= $(@D)/scripts-$(PYTHON_VERSION)/trial twisted
    44 COMPONENT_TEST_ARGS=""
    44 COMPONENT_TEST_ARGS=""
    45 
    45 
    46 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    46 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    47 
    47 
       
    48 # Needed to get around a broken /usr/lib/python2.7/config/Makefile
       
    49 # See CR #16837431.
       
    50 LD=$(CC)
       
    51 LDSHARED=$(CC) -G
       
    52 PYTHON_ENV += CC="$(CC)"
       
    53 PYTHON_ENV += LDSHARED="$(LDSHARED)"
       
    54 PYTHON_ENV += LD="$(LD)"
       
    55 PYTHON_ENV += CFLAGS="$(CFLAGS)"
       
    56 COMPONENT_INSTALL_ENV += $(PYTHON_ENV)
       
    57 
    48 # common targets
    58 # common targets
    49 build:          $(BUILD_32_and_64)
    59 build:		$(BUILD_32_and_64)
    50 
    60 
    51 install:        $(INSTALL_32_and_64)
    61 install:	$(INSTALL_32_and_64)
    52 
    62 
    53 # There are no automated tests yet, but the built-in unit tests can be run
    63 # There are no automated tests yet, but the built-in unit tests can be run
    54 # manually with:
    64 # manually with:
    55 #
    65 #
    56 # $ cd .../components/python/twisted/Twisted-10.1.0
    66 # $ cd .../components/python/twisted/Twisted-10.1.0
    57 # $ ../build/i86-2.6/scripts-2.6/trial twisted
    67 # $ ../build/i86-2.6/scripts-2.6/trial twisted
    58 # $ ../build/i86-2.7/scripts-2.7/trial twisted
    68 # $ ../build/i86-2.7/scripts-2.7/trial twisted
    59 #
    69 #
    60 test:           $(TEST_32_and_64)
    70 test:		$(TEST_32_and_64)
    61 
    71 
    62 BUILD_PKG_DEPENDENCIES =        $(BUILD_TOOLS)
    72 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
    63 
    73 
    64 include $(WS_TOP)/make-rules/depend.mk
    74 include $(WS_TOP)/make-rules/depend.mk