1dbed73cbSSangeeta Misra# 2dbed73cbSSangeeta Misra# CDDL HEADER START 3dbed73cbSSangeeta Misra# 4dbed73cbSSangeeta Misra# The contents of this file are subject to the terms of the 5dbed73cbSSangeeta Misra# Common Development and Distribution License (the "License"). 6dbed73cbSSangeeta Misra# You may not use this file except in compliance with the License. 7dbed73cbSSangeeta Misra# 8dbed73cbSSangeeta Misra# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9dbed73cbSSangeeta Misra# or http://www.opensolaris.org/os/licensing. 10dbed73cbSSangeeta Misra# See the License for the specific language governing permissions 11dbed73cbSSangeeta Misra# and limitations under the License. 12dbed73cbSSangeeta Misra# 13dbed73cbSSangeeta Misra# When distributing Covered Code, include this CDDL HEADER in each 14dbed73cbSSangeeta Misra# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15dbed73cbSSangeeta Misra# If applicable, add the following below this CDDL HEADER, with the 16dbed73cbSSangeeta Misra# fields enclosed by brackets "[]" replaced with your own identifying 17dbed73cbSSangeeta Misra# information: Portions Copyright [yyyy] [name of copyright owner] 18dbed73cbSSangeeta Misra# 19dbed73cbSSangeeta Misra# CDDL HEADER END 20dbed73cbSSangeeta Misra# 21dbed73cbSSangeeta Misra# 22*a9cb953cSSangeeta Misra# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. 23dbed73cbSSangeeta Misra# 24dbed73cbSSangeeta Misra 25dbed73cbSSangeeta MisraLIBRARY = libilb.a 26dbed73cbSSangeeta MisraVERS = .1 27dbed73cbSSangeeta Misra 28dbed73cbSSangeeta MisraLIB_OBJS = ilb_sg.o ilb_comm.o ilb_subr.o ilb_rules.o 29dbed73cbSSangeeta MisraLIB_OBJS += ilb_hc.o ilb_nat.o 30dbed73cbSSangeeta Misra 31dbed73cbSSangeeta Misra# We don't have a userland-accessible implementation of list handling 32dbed73cbSSangeeta Misra# so we use the one in uts (filched off libzpool) 33dbed73cbSSangeeta MisraLIST_OBJS = list.o 34dbed73cbSSangeeta MisraOBJECTS = $(LIB_OBJS) $(LIST_OBJS) 35dbed73cbSSangeeta Misra 36dbed73cbSSangeeta Misrainclude ../../Makefile.lib 37dbed73cbSSangeeta Misra 38dbed73cbSSangeeta MisraLIB_SRCS= $(LIB_OBJS:%.o=$(SRCDIR)/%.c) 39dbed73cbSSangeeta MisraLIBS = $(DYNLIB) $(LINTLIB) 40dbed73cbSSangeeta MisraINCS += -I../common -I$(SRC)/uts/common 41dbed73cbSSangeeta MisraLDLIBS += -lc 42dbed73cbSSangeeta Misra 43dbed73cbSSangeeta MisraSRCDIR = ../common 44dbed73cbSSangeeta Misra$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) 45dbed73cbSSangeeta Misra 46dbed73cbSSangeeta MisraC99MODE = $(C99_ENABLE) 47dbed73cbSSangeeta Misra 48dbed73cbSSangeeta MisraCFLAGS += -mt $(CCVERBOSE) 49dbed73cbSSangeeta MisraCPPFLAGS += $(INCS) 50dbed73cbSSangeeta MisraLDLIBS += -lsocket 51dbed73cbSSangeeta Misra 52dbed73cbSSangeeta Misra.KEEP_STATE: 53dbed73cbSSangeeta Misra 54dbed73cbSSangeeta Misraall: $(LIBS) 55dbed73cbSSangeeta Misra 56dbed73cbSSangeeta Misralint: $(LIB_SRCS) 57dbed73cbSSangeeta Misra $(LINT.c) $(LINTCHECKFLAGS) $(LIB_SRCS) $(LDLIBS) 58dbed73cbSSangeeta Misra 59dbed73cbSSangeeta Misrainclude ../../Makefile.targ 60dbed73cbSSangeeta Misra 61dbed73cbSSangeeta Misra# the below is needed to get list.o built 62dbed73cbSSangeeta Misrapics/%.o: ../../../uts/common/os/%.c 63dbed73cbSSangeeta Misra $(COMPILE.c) -o $@ $< 64dbed73cbSSangeeta Misra $(POST_PROCESS_O) 65