Makefile revision 736
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# CDDL HEADER START
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# The contents of this file are subject to the terms of the
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Common Development and Distribution License (the "License").
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# You may not use this file except in compliance with the License.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# or http://www.opensolaris.org/os/licensing.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# See the License for the specific language governing permissions
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# and limitations under the License.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# When distributing Covered Code, include this CDDL HEADER in each
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# If applicable, add the following below this CDDL HEADER, with the
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# fields enclosed by brackets "[]" replaced with your own identifying
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# information: Portions Copyright [yyyy] [name of copyright owner]
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
16b55a35cff91315d261d1baa776138af465c4e4fuankg# CDDL HEADER END
16b55a35cff91315d261d1baa776138af465c4e4fuankg#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesinclude ../../../make-rules/shared-macros.mk
16b55a35cff91315d261d1baa776138af465c4e4fuankg
16b55a35cff91315d261d1baa776138af465c4e4fuankgCOMPONENT_NAME= rds-tools
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCOMPONENT_VERSION= 2.0.4
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCOMPONENT_ARCHIVE_HASH= sha1:f8ee78327cfaa74eb13232b0276db297d6d5cdbe
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCOMPONENT_ARCHIVE_URL= http://www.openfabrics.org/downloads/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesinclude $(WS_TOP)/make-rules/prep.mk
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesinclude $(WS_TOP)/make-rules/configure.mk
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesinclude ../ofed.mk
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCPPFLAGS += -I$(PROTO_DIR)/usr/include
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCFLAGS += -O2 -Wall -D_XOPEN_SOURCE=500 -D__EXTENSIONS__ $(CPPFLAGS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesLIBS += -lsocket -lnsl -llgrp -lkstat -libverbs
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCOMPONENT_PREP_ACTION = \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes cp rds-vendor.c $(@D)/
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCLEANUP_DIRS = $(PROTOUSRBINDIR)/net
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCLEANUP_FILES =\
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man7/rds.7\
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man7rds-rdma.7
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCOMPONENT_POST_INSTALL_ACTION =\
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(RM) $(CLEANUP_FILES);\
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(RM) $(CLEANUP_DIRS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCOMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCOMPONENT_INSTALL_ENV += INSTALL=$(INSTALL)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# common targets
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesbuild: $(BUILD_32_and_64)
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesinstall: $(INSTALL_32_and_64)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholestest: $(NO_TESTS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesinclude $(WS_TOP)/make-rules/depend.mk
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes