gcc-6: use $(GNU_ARCH) in manifest
[unleashed-userland.git] / components / open-fabrics / ibutils / Makefile
blob8644156d233fe0831f88592e1da7545921cd7d7e
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
21 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
23 include ../../../make-rules/shared-macros.mk
25 COMPONENT_NAME= ibutils
26 COMPONENT_VERSION= 1.5.7
27 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
28 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
29 COMPONENT_ARCHIVE_HASH= \
30 sha256:8db2fcb20102c37e7037826c58b899092df034aac870d3d50a13263746f17f18
31 COMPONENT_ARCHIVE_URL= https://www.openfabrics.org/downloads/ibutils/$(COMPONENT_ARCHIVE)
33 include $(WS_TOP)/make-rules/prep.mk
34 include $(WS_TOP)/make-rules/configure.mk
35 include ../ofed.mk
37 LIBS += -lsocket -lnsl -lopensm -losmvendor -losmcomp -libumad -libmad
39 # we want to use the libcheck here
40 DISABLE_LIBCHECK=
42 CONFIGURE_ENV += INSTALL_DATA="$(INSTALL) -m 644"
44 CONFIGURE_OPTIONS += --with-osm=$(PROTO_DIR)/usr
46 PROTOMAN = $(PROTO_DIR)/$(CONFIGURE_MANDIR)
48 CLEANUP_FILES =\
49 $(PROTOUSRLIBDIR)/libibdm.la\
50 $(PROTOUSRLIBDIR)/libibdmcom.la\
51 $(PROTOUSRLIBDIR)/libibdm.a\
52 $(PROTOUSRLIBDIR)/libibdm.so\
53 $(PROTOUSRLIBDIR)/libibdm.so.1 \
54 $(PROTOUSRLIBDIR)/libibdmcom.a\
55 $(PROTOUSRLIBDIR)/libibdm.so.1.1.1 \
56 $(PROTOUSRLIBDIR)/libibdmcom.so\
57 $(PROTOUSRLIBDIR)/libibdmcom.so.1 \
58 $(PROTOUSRLIBDIR)/libibdmcom.so.1.1.1\
59 $(PROTOUSRLIBDIR)/libibsysapi.a\
60 $(PROTOUSRLIBDIR)/libibsysapi.la \
61 $(PROTOUSRLIBDIR)/libibsysapi.so\
62 $(PROTOUSRLIBDIR)/libibsysapi.so.1 \
63 $(PROTOUSRLIBDIR)/libibsysapi.so.1.0.0 \
64 $(PROTOUSRBINDIR)/ibtopodiff\
65 $(PROTOUSRBINDIR)/git_version.tcl \
66 $(PROTOUSRBINDIR)/ibdmsh*\
67 $(PROTOUSRBINDIR)/ibdmtr* \
68 $(PROTOUSRBINDIR)/ibdmchk*\
69 $(PROTOUSRBINDIR)/ibdiagui* \
70 $(PROTOUSRBINDIR)/ibnlparse*\
71 $(PROTOUSRBINDIR)/ibdiagpath* \
72 $(PROTOMAN)/man1//ibdmsh.1 \
73 $(PROTOMAN)/man1//ibdmtr.1\
74 $(PROTOMAN)/man1//ibdmchk.1\
75 $(PROTOMAN)/man1//ibdiagui.1 \
76 $(PROTOMAN)/man1//ibdiagpath.1\
77 $(PROTOMAN)/man1//ibtopodiff.1 \
78 $(PROTOMAN)/man1//ibdm-ibnl-file.1\
79 $(PROTOMAN)/man1//ibdm-topo-file.1 \
80 $(PROTOMAN)/man3//ibnd_discover_fabric.3\
81 $(PROTOMAN)/man3//ibnd_find_node_dr.3 \
82 $(PROTOMAN)/man3//ibnd_find_node_guid.3\
83 $(PROTOMAN)/man3//ibnd_iter_nodes.3 \
84 $(PROTOMAN)/man3//ibnd_iter_nodes_type.3\
85 $(PROTOMAN)/man3//ibnd_show_progress.3 \
87 CLEANUP_DIRS=\
88 $(PROTOUSRINCDIR)/ibdm\
89 $(PROTOUSRLIBDIR)/ibdiagui1.*\
90 $(PROTOUSRLIBDIR)/ibdiagpath1.*
92 COMPONENT_POST_INSTALL_ACTION=\
93 $(RM) $(CLEANUP_FILES);\
94 $(RM) -r $(CLEANUP_DIRS)
96 # common targets
97 build: $(BUILD_32)
99 install: $(INSTALL_32)
101 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
103 test: $(NO_TESTS)
105 include $(WS_TOP)/make-rules/depend.mk