17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 545916cd2Sjpk# Common Development and Distribution License (the "License"). 645916cd2Sjpk# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 217c478bd9Sstevel@tonic-gate# 22cc22b130SRich Burridge# Copyright (c) 1988, 2010, Oracle and/or its affiliates. All rights reserved. 235661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc. 247c478bd9Sstevel@tonic-gate# 257c478bd9Sstevel@tonic-gate 267c478bd9Sstevel@tonic-gatePROG= tar 27a7872406SmeemDEFAULTFILES= tar.dfl 283d63ea05Sas145665OBJS1= tar.o 293d63ea05Sas145665OBJS= $(OBJS1) getresponse.o 303d63ea05Sas145665SRCS= $(OBJS1:%.o=%.c) $(SRC)/common/util/getresponse.c 317c478bd9Sstevel@tonic-gate 327c478bd9Sstevel@tonic-gateinclude ../Makefile.cmd 337c478bd9Sstevel@tonic-gate 343d63ea05Sas145665CPPFLAGS += -D_FILE_OFFSET_BITS=64 -I $(SRC)/common/util 357c478bd9Sstevel@tonic-gateDCFILE= $(PROG).dc 367c478bd9Sstevel@tonic-gate 373d63ea05Sas145665LINTFLAGS += -u 3867e3a03eSrieLDLIBS += -lsec -lcmdutils -lnvpair -ltsol 397c478bd9Sstevel@tonic-gate 407c478bd9Sstevel@tonic-gateCFLAGS += $(CCVERBOSE) 41*d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 427c478bd9Sstevel@tonic-gate 435661bb76SJohn Levon# not linted 445661bb76SJohn LevonSMATCH=off 455661bb76SJohn Levon 467c478bd9Sstevel@tonic-gateCPPFLAGS += -DEUC 477c478bd9Sstevel@tonic-gate 487c478bd9Sstevel@tonic-gateROOTSYMLINK= $(ROOTPROG) 497c478bd9Sstevel@tonic-gate 507c478bd9Sstevel@tonic-gateXGETFLAGS += -a -x tar.xcl 517c478bd9Sstevel@tonic-gate 527c478bd9Sstevel@tonic-gate.KEEP_STATE: 537c478bd9Sstevel@tonic-gate 54a7872406Smeemall: $(PROG) 557c478bd9Sstevel@tonic-gate 56a7872406Smeeminstall: all $(ROOTUSRSBINPROG) $(ROOTETCDEFAULTFILES) $(ROOTSYMLINK) 577c478bd9Sstevel@tonic-gate -$(RM) -r $(ROOTETCPROG) 587c478bd9Sstevel@tonic-gate -$(SYMLINK) ../usr/sbin/$(PROG) $(ROOTETCPROG) 597c478bd9Sstevel@tonic-gate 607c478bd9Sstevel@tonic-gate$(ROOTSYMLINK): 617c478bd9Sstevel@tonic-gate $(RM) $@; $(SYMLINK) ../sbin/$(PROG) $@ 627c478bd9Sstevel@tonic-gate 633d63ea05Sas145665$(PROG): $(OBJS) 643d63ea05Sas145665 $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 653d63ea05Sas145665 $(POST_PROCESS) 667c478bd9Sstevel@tonic-gate 673d63ea05Sas145665%.o: $(SRC)/common/util/%.c 683d63ea05Sas145665 $(COMPILE.c) $(OUTPUT_OPTION) $< 693d63ea05Sas145665 $(POST_PROCESS_O) 703d63ea05Sas145665 713d63ea05Sas145665clean: 723d63ea05Sas145665 $(RM) $(OBJS) 733d63ea05Sas145665 743d63ea05Sas145665lint: lint_SRCS 757c478bd9Sstevel@tonic-gate 767c478bd9Sstevel@tonic-gate$(DCFILE): 777c478bd9Sstevel@tonic-gate $(RM) messages.po 787c478bd9Sstevel@tonic-gate $(XGETTEXT) -c TRANSLATION_NOTE -t $(PROG).c 797c478bd9Sstevel@tonic-gate $(SED) -e '/^domain/d' messages.po > $@ 807c478bd9Sstevel@tonic-gate $(RM) messages.po 817c478bd9Sstevel@tonic-gate 827c478bd9Sstevel@tonic-gateinclude ../Makefile.targ 83