Merge remote-tracking branch 'origin/master'
[unleashed/lotheac.git] / usr / src / cmd / tar / Makefile
blob4c1d33d377ea2ed11801ac2b29460f466933e55a
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
22 # Copyright (c) 1988, 2010, Oracle and/or its affiliates. All rights reserved.
23 # Copyright (c) 2018, Joyent, Inc.
26 PROG= tar
27 DEFAULTFILES= tar.dfl
28 OBJS1= tar.o
29 OBJS= $(OBJS1) getresponse.o
30 SRCS= $(OBJS1:%.o=%.c) $(SRC)/common/util/getresponse.c
32 include ../Makefile.cmd
34 CPPFLAGS += -I $(SRC)/common/util
35 DCFILE= $(PROG).dc
37 LDLIBS += -lsec -lcmdutils -lnvpair
39 CERRWARN += -Wno-uninitialized
41 # not linted
42 SMATCH=off
44 CPPFLAGS += -DEUC
46 ROOTSYMLINK= $(ROOTPROG)
48 XGETFLAGS += -a -x tar.xcl
50 .KEEP_STATE:
52 all: $(PROG)
54 install: all $(ROOTUSRSBINPROG) $(ROOTETCDEFAULTFILES) $(ROOTSYMLINK)
56 $(ROOTSYMLINK):
57 $(RM) $@; $(SYMLINK) ../sbin/$(PROG) $@
59 $(PROG): $(OBJS)
60 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
61 $(POST_PROCESS)
63 %.o: $(SRC)/common/util/%.c
64 $(COMPILE.c) $(OUTPUT_OPTION) $<
65 $(POST_PROCESS_O)
67 clean:
68 $(RM) $(OBJS)
71 $(DCFILE):
72 $(RM) messages.po
73 $(XGETTEXT) -c TRANSLATION_NOTE -t $(PROG).c
74 $(SED) -e '/^domain/d' messages.po > $@
75 $(RM) messages.po
77 include ../Makefile.targ