components/pconsole/Makefile
changeset 5125 34cc580c62c2
parent 4339 6501cf9c29f9
child 5682 94c0ca64c022
equal deleted inserted replaced
5124:3a6b9e3809f7 5125:34cc580c62c2
    21 
    21 
    22 #
    22 #
    23 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
    24 #
    24 #
    25 
    25 
       
    26 BITS=64
    26 include ../../make-rules/shared-macros.mk
    27 include ../../make-rules/shared-macros.mk
    27 
    28 
    28 COMPONENT_NAME=		pconsole
    29 COMPONENT_NAME=		pconsole
    29 COMPONENT_VERSION=	1.0
    30 COMPONENT_VERSION=	1.0
    30 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    31 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    36 COMPONENT_BUGDB=	utility/pconsole
    37 COMPONENT_BUGDB=	utility/pconsole
    37 
    38 
    38 TPNO=			9270
    39 TPNO=			9270
    39 
    40 
    40 include $(WS_MAKE_RULES)/prep.mk
    41 include $(WS_MAKE_RULES)/prep.mk
       
    42 # DESTDIR doesn't work correctly; omit default directories.
       
    43 CONFIGURE_DEFAULT_DIRS=no
    41 include $(WS_MAKE_RULES)/configure.mk
    44 include $(WS_MAKE_RULES)/configure.mk
    42 include $(WS_MAKE_RULES)/ips.mk
    45 include $(WS_MAKE_RULES)/ips.mk
    43 
    46 
    44 # Required to configure correctly.
    47 # Required to configure correctly.
    45 COMPONENT_PRE_CONFIGURE_ACTION = \
    48 COMPONENT_PRE_CONFIGURE_ACTION = \
    46         ($(CLONEY) $(SOURCE_DIR) $(@D))
    49         ($(CLONEY) $(SOURCE_DIR) $(@D))
    47 
    50 
    48 # -I argument needed to find the generated config.h file.
    51 # -I argument needed to find the generated config.h file.  Also, pconsole
    49 # CC_BITS needed to ensure -m64 is used for 64-bit compile
    52 # configure.in forcibly overrides CFLAGS, so we override the compiler to
       
    53 # specify required flags.
    50 CONFIGURE_ENV += "CC=$(CC) -I. $(CC_BITS)"
    54 CONFIGURE_ENV += "CC=$(CC) -I. $(CC_BITS)"
    51 
       
    52 # If the configure options are not explicitly set, then configure fails with:
       
    53 # configure: warning: CC=/ws/onnv-tools/SUNWspro/sunstudio12.1/bin/cc: invalid host type
       
    54 # configure: warning: CXX=/ws/onnv-tools/SUNWspro/sunstudio12.1/bin/CC: invalid host type
       
    55 # configure: error: can only configure for one host and one target at a time
       
    56 CONFIGURE_OPTIONS = --prefix=$(CONFIGURE_PREFIX)
       
    57 
    55 
    58 ASLR_MODE = $(ASLR_ENABLE)
    56 ASLR_MODE = $(ASLR_ENABLE)
    59 
    57 
    60 # DESTDIR doesn't work correctly, so we specify some of the paths directly.
    58 # DESTDIR doesn't work correctly, so we specify some of the paths directly.
    61 COMPONENT_INSTALL_ARGS +=	prefix=$(PROTOUSRDIR)
    59 COMPONENT_INSTALL_ARGS +=	prefix=$(PROTOUSRDIR)