Makefile revision fa9e4066f08beec538e775443c5be79dd423fcab
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# CDDL HEADER START
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# The contents of this file are subject to the terms of the
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Common Development and Distribution License, Version 1.0 only
fa9e4066f08beec538e775443c5be79dd423fcabahrens# (the "License"). You may not use this file except in compliance
fa9e4066f08beec538e775443c5be79dd423fcabahrens# with the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fa9e4066f08beec538e775443c5be79dd423fcabahrens# or http://www.opensolaris.org/os/licensing.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# See the License for the specific language governing permissions
fa9e4066f08beec538e775443c5be79dd423fcabahrens# and limitations under the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# When distributing Covered Code, include this CDDL HEADER in each
fa9e4066f08beec538e775443c5be79dd423fcabahrens# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# If applicable, add the following below this CDDL HEADER, with the
fa9e4066f08beec538e775443c5be79dd423fcabahrens# fields enclosed by brackets "[]" replaced with your own identifying
fa9e4066f08beec538e775443c5be79dd423fcabahrens# information: Portions Copyright [yyyy] [name of copyright owner]
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# CDDL HEADER END
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Use is subject to license terms.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# ident "%Z%%M% %I% %E% SMI"
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensPROG= zpool
fa9e4066f08beec538e775443c5be79dd423fcabahrensOBJS= zpool_main.o zpool_vdev.o zpool_iter.o zpool_util.o zpool_dataset.o
fa9e4066f08beec538e775443c5be79dd423fcabahrensSRCS= $(OBJS:%.o=%.c)
fa9e4066f08beec538e775443c5be79dd423fcabahrensPOFILES= zpool_main.po zpool_vdev.po zpool_iter.po zpool_util.po \
fa9e4066f08beec538e775443c5be79dd423fcabahrens zpool_dataset.po
fa9e4066f08beec538e775443c5be79dd423fcabahrensPOFILE= zpool.po
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensinclude ../Makefile.cmd
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensLDLIBS += -lzfs -lnvpair -ldevid -lefi -ldiskmgt -luutil -lumem
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensCPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens# lint complains about unused _umem_* functions
fa9e4066f08beec538e775443c5be79dd423fcabahrensLINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2
fa9e4066f08beec538e775443c5be79dd423fcabahrensLINTFLAGS64 += -xerroff=E_NAME_DEF_NOT_USED2
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensCACHEDIR= $(ROOTETC)/zfs
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensROOTUSRSBINLINKS = $(PROG:%=$(ROOTUSRSBIN)/%)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens.KEEP_STATE:
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens.PARALLEL:
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensall: $(PROG)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens$(PROG): $(OBJS)
fa9e4066f08beec538e775443c5be79dd423fcabahrens $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
fa9e4066f08beec538e775443c5be79dd423fcabahrens $(POST_PROCESS)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensinstall: all $(ROOTSBINPROG) $(CACHEDIR) $(ROOTUSRSBINLINKS)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens$(CACHEDIR):
fa9e4066f08beec538e775443c5be79dd423fcabahrens $(INS.dir)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens$(POFILE): $(POFILES)
fa9e4066f08beec538e775443c5be79dd423fcabahrens $(RM) $@
fa9e4066f08beec538e775443c5be79dd423fcabahrens cat $(POFILES) > $@
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensclean:
fa9e4066f08beec538e775443c5be79dd423fcabahrens $(RM) $(OBJS)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrenslint: lint_SRCS
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Links from /usr/sbin to /sbin
fa9e4066f08beec538e775443c5be79dd423fcabahrens$(ROOTUSRSBINLINKS):
fa9e4066f08beec538e775443c5be79dd423fcabahrens -$(RM) $@; $(SYMLINK) ../../sbin/$(@F) $@
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensFRC:
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensinclude ../Makefile.targ