xref: /onnv-gate/usr/src/cmd/tar/Makefile (revision 12836:0d0733997434)
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
51676Sjpk# Common Development and Distribution License (the "License").
61676Sjpk# 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*12836Srich.burridge@oracle.com# Copyright (c) 1988, 2010, Oracle and/or its affiliates. All rights reserved.
230Sstevel@tonic-gate#
240Sstevel@tonic-gate
250Sstevel@tonic-gatePROG= tar
2689SmeemDEFAULTFILES= tar.dfl
274774Sas145665OBJS1=		tar.o
284774Sas145665OBJS=		$(OBJS1) getresponse.o
294774Sas145665SRCS=		$(OBJS1:%.o=%.c) $(SRC)/common/util/getresponse.c
300Sstevel@tonic-gate
310Sstevel@tonic-gateinclude ../Makefile.cmd
320Sstevel@tonic-gate
334774Sas145665CPPFLAGS += -D_FILE_OFFSET_BITS=64 -I $(SRC)/common/util
340Sstevel@tonic-gateDCFILE= $(PROG).dc
350Sstevel@tonic-gate
364774Sas145665LINTFLAGS += -u
376543SrieLDLIBS += -lsec -lcmdutils -lnvpair -ltsol
380Sstevel@tonic-gate
390Sstevel@tonic-gateCFLAGS += $(CCVERBOSE)
400Sstevel@tonic-gate
410Sstevel@tonic-gateCPPFLAGS += -DEUC
420Sstevel@tonic-gate
430Sstevel@tonic-gateROOTSYMLINK=	$(ROOTPROG)
440Sstevel@tonic-gate
450Sstevel@tonic-gateXGETFLAGS += -a -x tar.xcl
460Sstevel@tonic-gate
470Sstevel@tonic-gate.KEEP_STATE:
480Sstevel@tonic-gate
4989Smeemall: $(PROG)
500Sstevel@tonic-gate
5189Smeeminstall: all $(ROOTUSRSBINPROG) $(ROOTETCDEFAULTFILES) $(ROOTSYMLINK)
520Sstevel@tonic-gate	-$(RM) -r $(ROOTETCPROG)
530Sstevel@tonic-gate	-$(SYMLINK) ../usr/sbin/$(PROG) $(ROOTETCPROG)
540Sstevel@tonic-gate
550Sstevel@tonic-gate$(ROOTSYMLINK):
560Sstevel@tonic-gate	$(RM) $@; $(SYMLINK) ../sbin/$(PROG) $@
570Sstevel@tonic-gate
584774Sas145665$(PROG):	$(OBJS)
594774Sas145665	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
604774Sas145665	$(POST_PROCESS)
610Sstevel@tonic-gate
624774Sas145665%.o:	$(SRC)/common/util/%.c
634774Sas145665	$(COMPILE.c) $(OUTPUT_OPTION) $<
644774Sas145665	$(POST_PROCESS_O)
654774Sas145665
664774Sas145665clean:
674774Sas145665	$(RM) $(OBJS)
684774Sas145665
694774Sas145665lint:	lint_SRCS
700Sstevel@tonic-gate
710Sstevel@tonic-gate$(DCFILE):
720Sstevel@tonic-gate	$(RM) messages.po
730Sstevel@tonic-gate	$(XGETTEXT) -c TRANSLATION_NOTE -t $(PROG).c
740Sstevel@tonic-gate	$(SED) -e '/^domain/d' messages.po > $@
750Sstevel@tonic-gate	$(RM) messages.po
760Sstevel@tonic-gate
770Sstevel@tonic-gateinclude ../Makefile.targ
78