Makefile revision 0a586cea3ceec7e5e50e7e54c745082a7a333ac2
0N/A#
2362N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
2362N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2362N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
2362N/A#
2362N/A# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
2362N/A# Use is subject to license terms.
0N/A#
0N/A
0N/APROG= zfs
0N/AOBJS= zfs_main.o zfs_iter.o
0N/ASRCS= $(OBJS:%.o=%.c)
0N/APOFILES= zfs_main.po zfs_iter.po
0N/APOFILE= zfs.po
0N/A
0N/Ainclude ../Makefile.cmd
0N/Ainclude ../Makefile.ctf
0N/A
0N/AFSTYPE= zfs
0N/ALINKPROGS= mount umount
0N/AROOTETCFSTYPE= $(ROOTETC)/fs/$(FSTYPE)
0N/AUSRLIBFSTYPE= $(ROOTLIB)/fs/$(FSTYPE)
0N/A
0N/ALDLIBS += -lzfs -luutil -lumem -lnvpair
0N/A
0N/AINCS += -I../../common/zfs
0N/A
0N/AC99MODE= -xc99=%all
0N/AC99LMODE= -Xc99=%all
0N/A
0N/ACPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT $(INCS)
0N/A$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
0N/A
0N/A# lint complains about unused _umem_* functions
0N/ALINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2
0N/ALINTFLAGS64 += -xerroff=E_NAME_DEF_NOT_USED2
0N/A
0N/AROOTUSRSBINLINKS = $(PROG:%=$(ROOTUSRSBIN)/%)
0N/AUSRLIBFSTYPELINKS = $(LINKPROGS:%=$(USRLIBFSTYPE)/%)
0N/AROOTETCFSTYPELINKS = $(LINKPROGS:%=$(ROOTETCFSTYPE)/%)
0N/A
0N/A.KEEP_STATE:
0N/A
0N/A.PARALLEL:
all: $(PROG)
$(PROG): $(OBJS)
$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
$(POST_PROCESS)
install: all $(ROOTSBINPROG) $(ROOTUSRSBINLINKS) $(USRLIBFSTYPELINKS) \
$(ROOTETCFSTYPELINKS)
$(POFILE): $(POFILES)
$(RM) $@
cat $(POFILES) > $@
clean:
$(RM) $(OBJS)
lint: lint_SRCS
# Links from /usr/sbin to /sbin
$(ROOTUSRSBINLINKS):
-$(RM) $@; $(SYMLINK) ../../sbin/$(PROG) $@
# Links from /usr/lib/fs/zfs to /sbin
$(USRLIBFSTYPELINKS):
-$(RM) $@; $(SYMLINK) ../../../../sbin/$(PROG) $@
# Links from /etc/fs/zfs to /sbin
$(ROOTETCFSTYPELINKS):
-$(RM) $@; $(SYMLINK) ../../../sbin/$(PROG) $@
FRC:
include ../Makefile.targ