10Sstevel@tonic-gate# 20Sstevel@tonic-gate# CDDL HEADER START 30Sstevel@tonic-gate# 40Sstevel@tonic-gate# The contents of this file are subject to the terms of the 52522Sraf# Common Development and Distribution License (the "License"). 62522Sraf# You may not use this file except in compliance with the License. 70Sstevel@tonic-gate# 80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate# See the License for the specific language governing permissions 110Sstevel@tonic-gate# and limitations under the License. 120Sstevel@tonic-gate# 130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate# 190Sstevel@tonic-gate# CDDL HEADER END 200Sstevel@tonic-gate# 210Sstevel@tonic-gate# 22*12710SEric.Taylor@Sun.COM# Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. 230Sstevel@tonic-gate# 240Sstevel@tonic-gate 250Sstevel@tonic-gateLIBRARY= libcmdutils.a 260Sstevel@tonic-gateVERS= .1 27*12710SEric.Taylor@Sun.COMCMD_OBJS= avltree.o sysattrs.o writefile.o process_xattrs.o 28*12710SEric.Taylor@Sun.COMCOM_OBJS= list.o 29*12710SEric.Taylor@Sun.COMOBJECTS= $(CMD_OBJS) $(COM_OBJS) 300Sstevel@tonic-gate 310Sstevel@tonic-gateinclude ../../Makefile.lib 320Sstevel@tonic-gateinclude ../../Makefile.rootfs 330Sstevel@tonic-gate 340Sstevel@tonic-gateLIBS = $(DYNLIB) $(LINTLIB) 350Sstevel@tonic-gate 365331SamwLDLIBS += -lc -lavl -lnvpair 370Sstevel@tonic-gate 380Sstevel@tonic-gateSRCDIR = ../common 39*12710SEric.Taylor@Sun.COM 40*12710SEric.Taylor@Sun.COMCOMDIR= $(SRC)/common/list 41*12710SEric.Taylor@Sun.COMSRCS= \ 42*12710SEric.Taylor@Sun.COM $(CMD_OBJS:%.o=$(SRCDIR)/%.c) \ 43*12710SEric.Taylor@Sun.COM $(COM_OBJS:%.o=$(COMDIR)/%.c) 44*12710SEric.Taylor@Sun.COM 452522Sraf$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) 460Sstevel@tonic-gate 470Sstevel@tonic-gateCFLAGS += $(CCVERBOSE) 480Sstevel@tonic-gate 490Sstevel@tonic-gate# All commands using the common avltree interfaces must 500Sstevel@tonic-gate# be largefile aware. 515331SamwCPPFLAGS += -I.. -I../../common/inc -D_REENTRANT -D_FILE_OFFSET_BITS=64 520Sstevel@tonic-gate 530Sstevel@tonic-gate.KEEP_STATE: 540Sstevel@tonic-gate 556812Srafall: $(LIBS) 560Sstevel@tonic-gate 570Sstevel@tonic-gatelint: lintcheck 580Sstevel@tonic-gate 59*12710SEric.Taylor@Sun.COMpics/%.o: $(COMDIR)/%.c 60*12710SEric.Taylor@Sun.COM $(COMPILE.c) -o $@ $< 61*12710SEric.Taylor@Sun.COM $(POST_PROCESS_O) 62*12710SEric.Taylor@Sun.COM 630Sstevel@tonic-gateinclude ../../Makefile.targ 64