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 |
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= qperf |
28 COMPONENT_NAME= qperf |
30 COMPONENT_VERSION= 0.4.6 |
29 COMPONENT_VERSION= 0.4.6 |
31 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC)-0.1.gb81434e.tar.gz |
30 COMPONENT_ARCHIVE= $(COMPONENT_SRC)-0.1.gb81434e.tar.gz |
33 COMPONENT_ARCHIVE_HASH= \ |
31 COMPONENT_ARCHIVE_HASH= \ |
34 sha256:304b89d1b006c959cad3b132346a6d061526fe626953ef99c764df396e43f959 |
32 sha256:304b89d1b006c959cad3b132346a6d061526fe626953ef99c764df396e43f959 |
35 COMPONENT_ARCHIVE_URL= http://www.openfabrics.org/downloads/qperf/$(COMPONENT_ARCHIVE) |
|
36 COMPONENT_BUGDB= utility/ofuv_tools |
33 COMPONENT_BUGDB= utility/ofuv_tools |
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 LIBS += -lsocket -lnsl -lkstat -lrdmacm -libverbs |
37 LIBS += -lkstat -lrdmacm -libverbs |
43 |
|
44 CONFIGURE_OPTIONS += --bindir=$(USRBINDIR) |
|
45 |
38 |
46 COMPONENT_INSTALL_ENV += INSTALL="$(INSTALL) -m 755" |
39 COMPONENT_INSTALL_ENV += INSTALL="$(INSTALL) -m 755" |
47 |
40 |
48 COMPONENT_PRE_CONFIGURE_ACTION = \ |
41 COMPONENT_PRE_CONFIGURE_ACTION = \ |
49 (mkdir $(@D)/src ; cd $(@D)/src ; ln -s $(SOURCE_DIR)/src/help.txt ; \ |
42 (mkdir $(@D)/src ; cd $(@D)/src ; ln -s $(SOURCE_DIR)/src/help.txt ; \ |
50 ln -s $(SOURCE_DIR)/src/mkhelp ; ln -s $(SOURCE_DIR)/src/mkman) |
43 ln -s $(SOURCE_DIR)/src/mkhelp ; ln -s $(SOURCE_DIR)/src/mkman) |
51 |
44 |
52 # common targets |
|
53 configure: $(CONFIGURE_64) |
|
54 |
|
55 build: $(BUILD_64) |
|
56 |
|
57 install: $(INSTALL_64) |
|
58 |
|
59 test: $(NO_TESTS) |
|
60 |
|
61 system-test: $(NO_TESTS) |
|
62 |
|