xref: /titanic_44/usr/src/cmd/tar/Makefile (revision 99ebb4ca412cb0a19d77a3899a87c055b9c30fa8)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27# cmd/tar/Makefile
28
29PROG= tar
30DEFAULTFILES= tar.dfl
31
32include ../Makefile.cmd
33
34CPPFLAGS += -D_FILE_OFFSET_BITS=64
35DCFILE= $(PROG).dc
36
37LAZYLIBS = $(ZLAZYLOAD) -ltsol $(ZNOLAZYLOAD)
38lint := LAZYLIBS = -ltsol
39LDLIBS += -lsec $(LAZYLIBS)
40
41CFLAGS += $(CCVERBOSE)
42
43# This flag is being added only for SCO (x86) compatibility
44CFLAGS += $(iBCS2FLAG)
45
46CPPFLAGS += -DEUC
47
48ROOTSYMLINK=	$(ROOTPROG)
49
50XGETFLAGS += -a -x tar.xcl
51
52.KEEP_STATE:
53
54all: $(PROG)
55
56install: all $(ROOTUSRSBINPROG) $(ROOTETCDEFAULTFILES) $(ROOTSYMLINK)
57	-$(RM) -r $(ROOTETCPROG)
58	-$(SYMLINK) ../usr/sbin/$(PROG) $(ROOTETCPROG)
59
60$(ROOTSYMLINK):
61	$(RM) $@; $(SYMLINK) ../sbin/$(PROG) $@
62
63clean:
64
65lint:	lint_PROG
66
67$(DCFILE):
68	$(RM) messages.po
69	$(XGETTEXT) -c TRANSLATION_NOTE -t $(PROG).c
70	$(SED) -e '/^domain/d' messages.po > $@
71	$(RM) messages.po
72
73include ../Makefile.targ
74