Makefile revision e0ad97e30ea0a9af63c42d71690b5f387c763420
970N/A#
970N/A# CDDL HEADER START
970N/A#
970N/A# The contents of this file are subject to the terms of the
1072N/A# Common Development and Distribution License (the "License").
970N/A# You may not use this file except in compliance with the License.
970N/A#
970N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
970N/A# or http://www.opensolaris.org/os/licensing.
970N/A# See the License for the specific language governing permissions
970N/A# and limitations under the License.
970N/A#
970N/A# When distributing Covered Code, include this CDDL HEADER in each
970N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
970N/A# If applicable, add the following below this CDDL HEADER, with the
970N/A# fields enclosed by brackets "[]" replaced with your own identifying
970N/A# information: Portions Copyright [yyyy] [name of copyright owner]
970N/A#
970N/A# CDDL HEADER END
970N/A#
970N/A#
970N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
970N/A# Use is subject to license terms.
970N/A#
970N/A
970N/APROG= zpool
970N/AOBJS= zpool_main.o zpool_vdev.o zpool_iter.o zpool_util.o
970N/ASRCS= $(OBJS:%.o=%.c)
970N/APOFILES=$(OBJS:%.o=%.po)
970N/APOFILE= zpool.po
970N/A
970N/Ainclude ../Makefile.cmd
970N/Ainclude ../Makefile.ctf
970N/A
970N/ASTATCOMMONDIR = $(SRC)/cmd/stat/common
970N/A
970N/ASTAT_COMMON_OBJS = timestamp.o
970N/ASTAT_COMMON_SRCS = $(STAT_COMMON_OBJS:%.o=$(STATCOMMONDIR)/%.c)
970N/ASRCS += $(STAT_COMMON_SRCS)
970N/A
970N/ALDLIBS += -lzfs -lnvpair -ldevid -lefi -ldiskmgt -luutil -lumem
970N/A
970N/AINCS += -I../../common/zfs -I$(STATCOMMONDIR)
1105N/A
970N/ACPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT $(INCS)
970N/A$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
970N/A
970N/A# lint complains about unused _umem_* functions
970N/ALINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2
970N/ALINTFLAGS64 += -xerroff=E_NAME_DEF_NOT_USED2
970N/A
970N/AROOTUSRSBINLINKS = $(PROG:%=$(ROOTUSRSBIN)/%)
970N/A
970N/A.KEEP_STATE:
970N/A
970N/Aall: $(PROG)
970N/A
970N/A$(PROG): $(OBJS) $(STAT_COMMON_OBJS)
970N/A $(LINK.c) -o $@ $(OBJS) $(STAT_COMMON_OBJS) $(LDLIBS)
970N/A $(POST_PROCESS)
970N/A
970N/A%.o: $(STATCOMMONDIR)/%.c
970N/A $(COMPILE.c) $<
970N/A $(POST_PROCESS_O)
970N/A
970N/Ainstall: all $(ROOTSBINPROG) $(ROOTUSRSBINLINKS)
970N/A
970N/A$(POFILE): $(POFILES)
970N/A $(RM) $@
1130N/A $(CAT) $(POFILES) > $@
970N/A
970N/Aclean:
970N/A $(RM) $(OBJS) $(STAT_COMMON_OBJS)
970N/A
970N/Alint: lint_SRCS
970N/A
970N/A# Links from /usr/sbin to /sbin
970N/A$(ROOTUSRSBINLINKS):
970N/A -$(RM) $@; $(SYMLINK) ../../sbin/$(@F) $@
970N/A
970N/Ainclude ../Makefile.targ
970N/A