Makefile revision b249c65cf0a7400e86a36ddab5c3fce085809859
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# CDDL HEADER START
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# The contents of this file are subject to the terms of the
f808c858fa61e7769218966759510a8b1190dfcfraf# Common Development and Distribution License (the "License").
f808c858fa61e7769218966759510a8b1190dfcfraf# You may not use this file except in compliance with the License.
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f808c858fa61e7769218966759510a8b1190dfcfraf# or http://www.opensolaris.org/os/licensing.
f808c858fa61e7769218966759510a8b1190dfcfraf# See the License for the specific language governing permissions
f808c858fa61e7769218966759510a8b1190dfcfraf# and limitations under the License.
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# When distributing Covered Code, include this CDDL HEADER in each
f808c858fa61e7769218966759510a8b1190dfcfraf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f808c858fa61e7769218966759510a8b1190dfcfraf# If applicable, add the following below this CDDL HEADER, with the
f808c858fa61e7769218966759510a8b1190dfcfraf# fields enclosed by brackets "[]" replaced with your own identifying
f808c858fa61e7769218966759510a8b1190dfcfraf# information: Portions Copyright [yyyy] [name of copyright owner]
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# CDDL HEADER END
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf#ident "%Z%%M% %I% %E% SMI"
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
f808c858fa61e7769218966759510a8b1190dfcfraf# Use is subject to license terms.
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafPROG= chown
f808c858fa61e7769218966759510a8b1190dfcfrafXPG4PROG= chown
f808c858fa61e7769218966759510a8b1190dfcfrafXD= exobjs.xpg4
f808c858fa61e7769218966759510a8b1190dfcfrafEXOBJS= chown.o
f808c858fa61e7769218966759510a8b1190dfcfrafXPG4EXOBJS= exobjs.xpg4/chown.o
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafinclude ../Makefile.cmd
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf$(XPG4) := CFLAGS += -DXPG4
f808c858fa61e7769218966759510a8b1190dfcfrafCPPFLAGS += -D_FILE_OFFSET_BITS=64
f808c858fa61e7769218966759510a8b1190dfcfrafLDLIBS += -lcmdutils -lsec
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf.KEEP_STATE:
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafall: $(PROG) $(XPG4)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf$(PROG): $(EXOBJS)
f808c858fa61e7769218966759510a8b1190dfcfraf $(LINK.c) -o $@ $(EXOBJS) $(LDLIBS)
f808c858fa61e7769218966759510a8b1190dfcfraf $(POST_PROCESS)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf$(XPG4): $(XD) $(XPG4EXOBJS)
f808c858fa61e7769218966759510a8b1190dfcfraf $(LINK.c) -o $@ $(XPG4EXOBJS) $(LDLIBS)
f808c858fa61e7769218966759510a8b1190dfcfraf $(POST_PROCESS)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafinstall: all $(ROOTPROG) $(ROOTXPG4PROG)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafclean:
f808c858fa61e7769218966759510a8b1190dfcfraf -@rm -rf $(EXOBJS) $(XD)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraflint: lint_PROG
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf$(XPG4EXOBJS): $(XD)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf$(XD)/%.o: %.c
f808c858fa61e7769218966759510a8b1190dfcfraf $(COMPILE.c) -o $@ $<
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf$(XD):
f808c858fa61e7769218966759510a8b1190dfcfraf -@mkdir -p $@
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafinclude ../Makefile.targ
f808c858fa61e7769218966759510a8b1190dfcfraf