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. 237c478bd9Sstevel@tonic-gate# 247c478bd9Sstevel@tonic-gate 257c478bd9Sstevel@tonic-gatePROG= tar 26a7872406SmeemDEFAULTFILES= tar.dfl 273d63ea05Sas145665OBJS1= tar.o 283d63ea05Sas145665OBJS= $(OBJS1) getresponse.o 293d63ea05Sas145665SRCS= $(OBJS1:%.o=%.c) $(SRC)/common/util/getresponse.c 307c478bd9Sstevel@tonic-gate 317c478bd9Sstevel@tonic-gateinclude ../Makefile.cmd 327c478bd9Sstevel@tonic-gate 333d63ea05Sas145665CPPFLAGS += -D_FILE_OFFSET_BITS=64 -I $(SRC)/common/util 347c478bd9Sstevel@tonic-gateDCFILE= $(PROG).dc 357c478bd9Sstevel@tonic-gate 363d63ea05Sas145665LINTFLAGS += -u 3767e3a03eSrieLDLIBS += -lsec -lcmdutils -lnvpair -ltsol 387c478bd9Sstevel@tonic-gate 397c478bd9Sstevel@tonic-gateCFLAGS += $(CCVERBOSE) 40*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 417c478bd9Sstevel@tonic-gate 427c478bd9Sstevel@tonic-gateCPPFLAGS += -DEUC 437c478bd9Sstevel@tonic-gate 447c478bd9Sstevel@tonic-gateROOTSYMLINK= $(ROOTPROG) 457c478bd9Sstevel@tonic-gate 467c478bd9Sstevel@tonic-gateXGETFLAGS += -a -x tar.xcl 477c478bd9Sstevel@tonic-gate 487c478bd9Sstevel@tonic-gate.KEEP_STATE: 497c478bd9Sstevel@tonic-gate 50a7872406Smeemall: $(PROG) 517c478bd9Sstevel@tonic-gate 52a7872406Smeeminstall: all $(ROOTUSRSBINPROG) $(ROOTETCDEFAULTFILES) $(ROOTSYMLINK) 537c478bd9Sstevel@tonic-gate -$(RM) -r $(ROOTETCPROG) 547c478bd9Sstevel@tonic-gate -$(SYMLINK) ../usr/sbin/$(PROG) $(ROOTETCPROG) 557c478bd9Sstevel@tonic-gate 567c478bd9Sstevel@tonic-gate$(ROOTSYMLINK): 577c478bd9Sstevel@tonic-gate $(RM) $@; $(SYMLINK) ../sbin/$(PROG) $@ 587c478bd9Sstevel@tonic-gate 593d63ea05Sas145665$(PROG): $(OBJS) 603d63ea05Sas145665 $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 613d63ea05Sas145665 $(POST_PROCESS) 627c478bd9Sstevel@tonic-gate 633d63ea05Sas145665%.o: $(SRC)/common/util/%.c 643d63ea05Sas145665 $(COMPILE.c) $(OUTPUT_OPTION) $< 653d63ea05Sas145665 $(POST_PROCESS_O) 663d63ea05Sas145665 673d63ea05Sas145665clean: 683d63ea05Sas145665 $(RM) $(OBJS) 693d63ea05Sas145665 703d63ea05Sas145665lint: lint_SRCS 717c478bd9Sstevel@tonic-gate 727c478bd9Sstevel@tonic-gate$(DCFILE): 737c478bd9Sstevel@tonic-gate $(RM) messages.po 747c478bd9Sstevel@tonic-gate $(XGETTEXT) -c TRANSLATION_NOTE -t $(PROG).c 757c478bd9Sstevel@tonic-gate $(SED) -e '/^domain/d' messages.po > $@ 767c478bd9Sstevel@tonic-gate $(RM) messages.po 777c478bd9Sstevel@tonic-gate 787c478bd9Sstevel@tonic-gateinclude ../Makefile.targ 79