xref: /titanic_41/usr/src/lib/sun_sas/Makefile.com (revision c4d0f8e20378692ddfbc3b59b98ff27a6feb2b55)
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#
22# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25#
26
27LIBRARY =	libsun_sas.a
28VERS =		.1
29
30OBJECTS	=	devtree_hba_disco.o \
31	      	devtree_device_disco.o \
32	      	devtree_phy_disco.o \
33	      	devlink_disco.o \
34	      	event.o \
35	      	verify.o \
36	      	SMHBA_RegisterLibrary.o \
37	      	Sun_sasLoadLibrary.o \
38	      	Sun_sasGetNumberOfAdapters.o \
39	      	Sun_sasGetTargetMapping.o \
40	      	Sun_sasGetAdapterName.o \
41		Sun_sasGetAdapterAttributes.o \
42		Sun_sasGetAdapterPortAttributes.o \
43		Sun_sasGetDiscoveredPortAttributes.o \
44		Sun_sasGetPortAttributesByWWN.o \
45		Sun_sasGetSASPhyAttributes.o \
46		Sun_sasGetPortType.o \
47	      	Sun_sasGetNumberOfPorts.o \
48	      	Sun_sasGetVersion.o \
49	      	Sun_sasGetPhyStatistics.o \
50	      	Sun_sasGetVendorLibraryAttributes.o \
51	      	Sun_sasFreeLibrary.o \
52	      	Sun_sasOpenAdapter.o \
53	      	Sun_sasCloseAdapter.o \
54	      	Sun_sasRefreshInformation.o \
55	      	Sun_sasRefreshAdapterConfiguration.o \
56	      	Sun_sasGetLUNStatistics.o \
57	      	Sun_sasGetProtocolStatistics.o \
58	      	Sun_sasGetPersistentBinding.o \
59	      	Sun_sasSetPersistentBinding.o \
60		Sun_sasSendSMPPassThru.o \
61		Sun_sasScsiInquiry.o \
62		Sun_sasScsiReportLUNs.o \
63		Sun_sasScsiReadCapacity.o \
64		sun_sas.o \
65		log.o
66
67include ../../Makefile.lib
68
69LIBS =		$(DYNLIB)
70SRCDIR=		../common
71
72INCS +=		-I$(SRCDIR)
73INCS +=		-I$(SRC)/lib/smhba/common
74INCS +=		-I$(SRC)/lib/hbaapi/common
75INCS +=		-I$(SRC)/lib/libdevid
76
77CFLAGS +=	-mt
78CFLAGS +=	$(CCVERBOSE)
79CFLAGS64 +=	-mt
80CFLAGS64 +=	$(CCVERBOSE)
81CPPFLAGS +=	$(INCS) -D_POSIX_PTHREAD_SEMANTICS
82CPPFLAGS +=	-DBUILD_TIME='"Wed Feb 4 12:00:00 2009"'
83
84CERRWARN +=	-_gcc=-Wno-parentheses
85CERRWARN +=	-_gcc=-Wno-unused-value
86
87LDLIBS		+= -ldevinfo
88LDLIBS		+= -lsysevent
89LDLIBS		+= -lnvpair
90LDLIBS		+= -lc
91LDLIBS		+= -lkstat
92LDLIBS		+= -ldevid
93
94$(LINTLIB) := SRCS=	$(SRCDIR)/$(LINTSRC)
95
96.KEEP_STATE:
97
98all: $(LIBS)
99
100lint: lintcheck
101
102include ../../Makefile.targ
103