1a6d42e7dSPeter Dunlap# 2a6d42e7dSPeter Dunlap# CDDL HEADER START 3a6d42e7dSPeter Dunlap# 4a6d42e7dSPeter Dunlap# The contents of this file are subject to the terms of the 5a6d42e7dSPeter Dunlap# Common Development and Distribution License (the "License"). 6a6d42e7dSPeter Dunlap# You may not use this file except in compliance with the License. 7a6d42e7dSPeter Dunlap# 8a6d42e7dSPeter Dunlap# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9a6d42e7dSPeter Dunlap# or http://www.opensolaris.org/os/licensing. 10a6d42e7dSPeter Dunlap# See the License for the specific language governing permissions 11a6d42e7dSPeter Dunlap# and limitations under the License. 12a6d42e7dSPeter Dunlap# 13a6d42e7dSPeter Dunlap# When distributing Covered Code, include this CDDL HEADER in each 14a6d42e7dSPeter Dunlap# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15a6d42e7dSPeter Dunlap# If applicable, add the following below this CDDL HEADER, with the 16a6d42e7dSPeter Dunlap# fields enclosed by brackets "[]" replaced with your own identifying 17a6d42e7dSPeter Dunlap# information: Portions Copyright [yyyy] [name of copyright owner] 18a6d42e7dSPeter Dunlap# 19a6d42e7dSPeter Dunlap# CDDL HEADER END 20a6d42e7dSPeter Dunlap# 21a6d42e7dSPeter Dunlap# 225de03f84SSue Gleeson# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23a6d42e7dSPeter Dunlap# Use is subject to license terms. 24a6d42e7dSPeter Dunlap# 25a6d42e7dSPeter Dunlap 26a6d42e7dSPeter DunlapLIBRARY= libiscsit.a 27a6d42e7dSPeter DunlapVERS= .1 28a6d42e7dSPeter Dunlap 29a6d42e7dSPeter DunlapISCSIT_OBJS_SHARED= iscsit_common.o 30a6d42e7dSPeter DunlapISCSI_OBJS_SHARED= base64.o 31a6d42e7dSPeter DunlapOBJS_COMMON= libiscsit.o 32a6d42e7dSPeter DunlapOBJECTS= $(OBJS_COMMON) $(ISCSIT_OBJS_SHARED) $(ISCSI_OBJS_SHARED) 33a6d42e7dSPeter Dunlap 34a6d42e7dSPeter Dunlapinclude ../../Makefile.lib 35a6d42e7dSPeter Dunlap 36a6d42e7dSPeter DunlapLIBS= $(DYNLIB) $(LINTLIB) 37a6d42e7dSPeter Dunlap 38a6d42e7dSPeter DunlapSRCDIR = ../common 39a6d42e7dSPeter Dunlap 40a6d42e7dSPeter DunlapINCS += -I$(SRCDIR) 41a6d42e7dSPeter Dunlap 42a6d42e7dSPeter DunlapC99MODE= -xc99=%all 43a6d42e7dSPeter DunlapC99LMODE= -Xc99=%all 445de03f84SSue GleesonLDLIBS += -lc -lnvpair -lstmf -luuid -lnsl -lscf 45a6d42e7dSPeter DunlapCPPFLAGS += $(INCS) -D_REENTRANT 46*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 47a6d42e7dSPeter Dunlap 48a6d42e7dSPeter DunlapSRCS= $(OBJS_COMMON:%.o=$(SRCDIR)/%.c) \ 49a6d42e7dSPeter Dunlap $(ISCSIT_OBJS_SHARED:%.o=$(SRC)/common/iscsit/%.c) \ 50a6d42e7dSPeter Dunlap $(ISCSI_OBJS_SHARED:%.o=$(SRC)/common/iscsi/%.c) 51a6d42e7dSPeter Dunlap$(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC) 52a6d42e7dSPeter Dunlap 53a6d42e7dSPeter Dunlap.KEEP_STATE: 54a6d42e7dSPeter Dunlap 55a6d42e7dSPeter Dunlapall: $(LIBS) 56a6d42e7dSPeter Dunlap 57a6d42e7dSPeter Dunlaplint: lintcheck 58a6d42e7dSPeter Dunlap 59a6d42e7dSPeter Dunlappics/%.o: ../../../common/iscsit/%.c 60a6d42e7dSPeter Dunlap $(COMPILE.c) -o $@ $< 61a6d42e7dSPeter Dunlap $(POST_PROCESS_O) 62a6d42e7dSPeter Dunlap 63a6d42e7dSPeter Dunlappics/%.o: ../../../common/iscsi/%.c 64a6d42e7dSPeter Dunlap $(COMPILE.c) -o $@ $< 65a6d42e7dSPeter Dunlap $(POST_PROCESS_O) 66a6d42e7dSPeter Dunlap 67a6d42e7dSPeter Dunlapinclude ../../Makefile.targ 68