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