|
1 # |
|
2 # CDDL HEADER START |
|
3 # |
|
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. |
|
7 # |
|
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. |
|
12 # |
|
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] |
|
18 # |
|
19 # CDDL HEADER END |
|
20 # |
|
21 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
|
22 # |
|
23 COMPILER = gcc |
|
24 include ../../../make-rules/shared-macros.mk |
|
25 |
|
26 COMPONENT_NAME= libsif |
|
27 COMPONENT_VERSION= 1.0 |
|
28 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
29 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
30 COMPONENT_ARCHIVE_HASH= \ |
|
31 sha256:501858b4b9d45ebe163d9136f7fb4d08708aaf91cc97c40059ae2a1b4737239d |
|
32 COMPONENT_SERVER= download.oracle.com |
|
33 COMPONENT_ARCHIVE_URL= http://$(COMPONENT_SERVER)/otn-pub/oss/networking/$(COMPONENT_ARCHIVE) |
|
34 |
|
35 include $(WS_TOP)/make-rules/prep.mk |
|
36 include $(WS_TOP)/make-rules/configure.mk |
|
37 include ../ofed.mk |
|
38 |
|
39 REMOVE_OLD_SRC= sif.h sif_user.h sif_int_user.h os_header.h psif_api.h psif_endian.h psif_hw_print.h psif_hw_data* psif_hw_setget* psif_hw_macro* kernel_types.h |
|
40 # --disable-libcheck is not a supported option for this component |
|
41 DISABLE_LIBCHECK= |
|
42 |
|
43 LIBS += -libverbs |
|
44 LDFLAGS += -L$(PROTO_DIR)/$(CONFIGURE_LIBDIR.$(BITS)) |
|
45 |
|
46 CONFIGURE_ENV += CPPFLAGS=" -DSOLARIS $(CPPFLAGS) -I../../include/sif/ -I../../include/psifapi/ -I../../$(COMPONENT_SRC)/src/ " |
|
47 |
|
48 CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)" |
|
49 |
|
50 COMPONENT_PREP_ACTION += cd $(COMPONENT_SRC)/src/ ; rm $(REMOVE_OLD_SRC) ; cd - ; \ |
|
51 (cd $(@D); \ |
|
52 autoreconf -ivf ; \ |
|
53 aclocal --force ; \ |
|
54 libtoolize --copy --force --ltdl ; \ |
|
55 autoconf --force ; \ |
|
56 autoheader --force) |
|
57 |
|
58 COMPONENT_POST_INSTALL_ACTION =\ |
|
59 $(RM) $(PROTO_DIR)/$(CONFIGURE_LIBDIR.32)/$(COMPONENT_NAME).la;\ |
|
60 $(RM) $(PROTO_DIR)/$(CONFIGURE_LIBDIR.64)/$(COMPONENT_NAME).la;\ |
|
61 |
|
62 # common targets |
|
63 configure: $(CONFIGURE_64) |
|
64 |
|
65 build_sparc: $(BUILD_64) |
|
66 |
|
67 build_i386: |
|
68 @echo "Not available." |
|
69 |
|
70 build: build_$(MACH) |
|
71 |
|
72 install_sparc: $(INSTALL_64) |
|
73 |
|
74 install_i386: |
|
75 @echo "Not available." |
|
76 |
|
77 install: install_$(MACH) |
|
78 |
|
79 # we're sparc-only |
|
80 ifeq ($(MACH), i386) |
|
81 PUBLISH_STAMP= |
|
82 endif |
|
83 |
|
84 test: $(NO_TESTS) |
|
85 |
|
86 system-test: $(NO_TESTS) |