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