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 |
|
22 # |
21 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
22 # |
24 # |
23 |
25 BUILD_BITS= 64_and_32 |
24 # OFED only builds with GCC |
26 include ../ofed-component-macros.mk |
25 COMPILER=gcc |
|
26 |
|
27 include ../../../make-rules/shared-macros.mk |
|
28 |
27 |
29 COMPONENT_NAME= libmlx4 |
28 COMPONENT_NAME= libmlx4 |
30 COMPONENT_VERSION= 1.0.1 |
29 COMPONENT_VERSION= 1.0.1 |
31 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC)-1.18.gb810a27.tar.gz |
30 COMPONENT_ARCHIVE= $(COMPONENT_SRC)-1.18.gb810a27.tar.gz |
33 COMPONENT_ARCHIVE_HASH= \ |
31 COMPONENT_ARCHIVE_HASH= \ |
34 sha256:ac3aa335d5749a8edc471630b1f5049122c8b7b66bab88c299e255122028e19c |
32 sha256:ac3aa335d5749a8edc471630b1f5049122c8b7b66bab88c299e255122028e19c |
35 COMPONENT_ARCHIVE_URL= http://www.openfabrics.org/downloads/libmlx4/$(COMPONENT_ARCHIVE) |
|
36 COMPONENT_BUGDB= library/ofuv_lib |
33 COMPONENT_BUGDB= library/ofuv_lib |
37 |
34 |
38 include $(WS_MAKE_RULES)/prep.mk |
35 include ../ofed-component.mk |
39 include $(WS_MAKE_RULES)/configure.mk |
|
40 include ../ofed.mk |
|
41 |
36 |
42 # --disable-libcheck is not a supported option for this component |
37 # --disable-libcheck is not a supported option for this component |
43 DISABLE_LIBCHECK= |
38 DISABLE_LIBCHECK= |
44 |
39 |
45 LIBS += -libverbs |
40 LIBS= -libverbs |
46 LDFLAGS += -L$(PROTO_DIR)/$(CONFIGURE_LIBDIR.$(BITS)) |
41 LDFLAGS += -L$(PROTO_DIR)/$(CONFIGURE_LIBDIR.$(BITS)) |
47 |
|
48 CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)" |
|
49 |
|
50 CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)" |
|
51 |
42 |
52 # requires an older automake to reconfigure |
43 # requires an older automake to reconfigure |
53 COMPONENT_PREP_ACTION += (if [ x$(MACH) = "xi386" ]; then \ |
44 COMPONENT_PREP_ACTION += (if [ x$(MACH) = "xi386" ]; then \ |
54 cp mlx4.driver.i386 $(@D)/mlx4.driver; \ |
45 cp mlx4.driver.i386 $(@D)/mlx4.driver; \ |
55 else \ |
46 else \ |
63 |
54 |
64 COMPONENT_POST_INSTALL_ACTION =\ |
55 COMPONENT_POST_INSTALL_ACTION =\ |
65 $(RM) $(PROTO_DIR)/$(CONFIGURE_LIBDIR.32)/$(COMPONENT_NAME).la;\ |
56 $(RM) $(PROTO_DIR)/$(CONFIGURE_LIBDIR.32)/$(COMPONENT_NAME).la;\ |
66 $(RM) $(PROTO_DIR)/$(CONFIGURE_LIBDIR.64)/$(COMPONENT_NAME).la;\ |
57 $(RM) $(PROTO_DIR)/$(CONFIGURE_LIBDIR.64)/$(COMPONENT_NAME).la;\ |
67 |
58 |
68 # common targets |
|
69 configure: $(CONFIGURE_32_and_64) |
|
70 |
|
71 build: $(BUILD_32_and_64) |
|
72 |
|
73 install: $(INSTALL_32_and_64) |
|
74 |
|
75 test: $(NO_TESTS) |
|
76 |
|
77 system-test: $(NO_TESTS) |
|
78 |
|