xref: /onnv-gate/usr/src/cmd/xargs/Makefile (revision 4774:cdf5747c54d6)
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
53231Scf46844# Common Development and Distribution License (the "License").
63231Scf46844# 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#
220Sstevel@tonic-gate#ident	"%Z%%M%	%I%	%E% SMI"
230Sstevel@tonic-gate#
24*4774Sas145665# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
250Sstevel@tonic-gate# Use is subject to license terms.
260Sstevel@tonic-gate#
270Sstevel@tonic-gate
28*4774Sas145665PROG= 			xargs
293231Scf46844# /usr/xpg6/bin/xargs is a symlink to /usr/bin/xargs
30*4774Sas145665ROOTXPG6SYMLINK= 	$(ROOTXPG6BIN)/xargs
31*4774Sas145665
32*4774Sas145665OBJS1=			xargs.o
33*4774Sas145665OBJS=			$(OBJS1) getresponse.o
34*4774Sas145665SRCS=			$(OBJS1:%.o=%.c) $(SRC)/common/util/getresponse.c
350Sstevel@tonic-gate
360Sstevel@tonic-gateinclude ../Makefile.cmd
370Sstevel@tonic-gate
38*4774Sas145665CPPFLAGS += -I $(SRC)/common/util
39*4774Sas145665LINTFLAGS += -u
40*4774Sas145665
410Sstevel@tonic-gate.KEEP_STATE:
420Sstevel@tonic-gate
433231Scf46844all: $(PROG)
440Sstevel@tonic-gate
453231Scf46844install: all $(ROOTPROG) $(ROOTXPG6SYMLINK)
460Sstevel@tonic-gate
47*4774Sas145665$(PROG):	$(OBJS)
48*4774Sas145665	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
49*4774Sas145665	$(POST_PROCESS)
50*4774Sas145665
51*4774Sas145665%.o:	$(SRC)/common/util/%.c
52*4774Sas145665	$(COMPILE.c) $(OUTPUT_OPTION) $<
53*4774Sas145665	$(POST_PROCESS_O)
54*4774Sas145665
553231Scf46844$(ROOTXPG6SYMLINK):	$(ROOTPROG)
563231Scf46844	-$(RM)	$@
573231Scf46844	-$(SYMLINK)	../../bin/$(PROG) $@
580Sstevel@tonic-gate
590Sstevel@tonic-gateclean:
60*4774Sas145665	$(RM) $(OBJS)
610Sstevel@tonic-gate
62*4774Sas145665lint:	lint_SRCS
630Sstevel@tonic-gate
640Sstevel@tonic-gateinclude ../Makefile.targ
65