components/open-fabrics/libmlx4/Makefile
changeset 1196 cba083182ade
parent 800 2ad056ed89ec
child 2225 f064d3d3190d
child 3996 20c0f21bbe1e
equal deleted inserted replaced
1195:71686832cf20 1196:cba083182ade
    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=		libmlx4
    25 COMPONENT_NAME=		libmlx4
    26 COMPONENT_VERSION=	1.0.1
    26 COMPONENT_VERSION=	1.0.1
    42 
    42 
    43 CONFIGURE_ENV +=	CPPFLAGS="$(CPPFLAGS)"
    43 CONFIGURE_ENV +=	CPPFLAGS="$(CPPFLAGS)"
    44 
    44 
    45 CONFIGURE_OPTIONS +=	LDFLAGS="$(LDFLAGS)"
    45 CONFIGURE_OPTIONS +=	LDFLAGS="$(LDFLAGS)"
    46 
    46 
    47 COMPONENT_PREP_ACTION += (cd $(@D) ; \
    47 COMPONENT_PREP_ACTION += (if [ x$(MACH) = "xi386" ]; then \
       
    48 		cp mlx4.driver.i386 $(@D)/mlx4.driver; \
       
    49 		else \
       
    50 		cp mlx4.driver.sparc $(@D)/mlx4.driver; \
       
    51 		fi; \
       
    52 		cd $(@D) ; \
    48 		aclocal --force ; \
    53 		aclocal --force ; \
    49 		libtoolize --copy --force --ltdl ; \
    54 		libtoolize --copy --force --ltdl ; \
    50 		autoconf --force ; \
    55 		autoconf --force ; \
    51 		autoheader --force)
    56 		autoheader --force)
    52 
    57