components/open-fabrics/rds-tools/Makefile
changeset 4661 353f8a998732
parent 4339 6501cf9c29f9
child 5624 8174ebe3b8ea
equal deleted inserted replaced
4660:0cca05cde869 4661:353f8a998732
    20 #
    20 #
    21 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
    21 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
    22 #
    22 #
    23 
    23 
    24 # OFED only builds with GCC
    24 # OFED only builds with GCC
    25 COMPILER=gcc3
    25 COMPILER=gcc
    26 
    26 
    27 include ../../../make-rules/shared-macros.mk
    27 include ../../../make-rules/shared-macros.mk
    28 
    28 
    29 COMPONENT_NAME=		rds-tools
    29 COMPONENT_NAME=		rds-tools
    30 COMPONENT_VERSION=	2.0.4
    30 COMPONENT_VERSION=	2.0.4
    41 CPPFLAGS +=	-I$(PROTO_DIR)/usr/include
    41 CPPFLAGS +=	-I$(PROTO_DIR)/usr/include
    42 CFLAGS +=	-O2 -Wall -D_XOPEN_SOURCE=500 -D__EXTENSIONS__ $(CPPFLAGS)
    42 CFLAGS +=	-O2 -Wall -D_XOPEN_SOURCE=500 -D__EXTENSIONS__ $(CPPFLAGS)
    43 
    43 
    44 LIBS +=	-lsocket -lnsl -llgrp -lkstat -libverbs
    44 LIBS +=	-lsocket -lnsl -llgrp -lkstat -libverbs
    45 
    45 
       
    46 CONFIGURE_OPTIONS +=	--bindir=$(USRBINDIR)
       
    47 
    46 COMPONENT_PREP_ACTION = \
    48 COMPONENT_PREP_ACTION = \
    47 	cp rds-vendor.c $(@D)/
    49 	cp rds-vendor.c $(@D)/
    48 
    50 
    49 CLEANUP_DIRS =	$(PROTOUSRBINDIR)/net
    51 CLEANUP_DIRS =	$(PROTOUSRBINDIR)/net
    50 
    52 
    60 COMPONENT_INSTALL_ENV += INSTALL=$(INSTALL)
    62 COMPONENT_INSTALL_ENV += INSTALL=$(INSTALL)
    61 
    63 
    62 COMPONENT_PRE_CONFIGURE_ACTION =	($(CLONEY) $(SOURCE_DIR) $(@D))
    64 COMPONENT_PRE_CONFIGURE_ACTION =	($(CLONEY) $(SOURCE_DIR) $(@D))
    63 
    65 
    64 # common targets
    66 # common targets
    65 configure:	$(CONFIGURE_32_and_64)
    67 configure:	$(CONFIGURE_64)
    66 
    68 
    67 build:		$(BUILD_32_and_64)
    69 build:		$(BUILD_64)
    68 
    70 
    69 install:	$(INSTALL_32_and_64)
    71 install:	$(INSTALL_64)
    70 
    72 
    71 test:		$(NO_TESTS)
    73 test:		$(NO_TESTS)
    72 
    74 
    73 system-test:    $(NO_TESTS)
    75 system-test:    $(NO_TESTS)
    74 
    76