Makefile revision e0ad97e30ea0a9af63c42d71690b5f387c763420
309N/A#
309N/A# CDDL HEADER START
1339N/A#
309N/A# The contents of this file are subject to the terms of the
1339N/A# Common Development and Distribution License (the "License").
309N/A# You may not use this file except in compliance with the License.
309N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A#
919N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
919N/A# Use is subject to license terms.
919N/A#
309N/A
309N/APROG= zfs
309N/AOBJS= zfs_main.o zfs_iter.o
309N/ASRCS= $(OBJS:%.o=%.c)
493N/APOFILES= zfs_main.po zfs_iter.po
309N/APOFILE= zfs.po
970N/A
977N/Ainclude ../Makefile.cmd
970N/Ainclude ../Makefile.ctf
970N/A
1339N/AFSTYPE= zfs
1339N/ALINKPROGS= mount umount
1339N/AROOTETCFSTYPE= $(ROOTETC)/fs/$(FSTYPE)
309N/AUSRLIBFSTYPE= $(ROOTLIB)/fs/$(FSTYPE)
1068N/A
309N/ALDLIBS += -lzfs -luutil -lumem -lnvpair
911N/A
1068N/AC99MODE= -xc99=%all
1068N/AC99LMODE= -Xc99=%all
911N/A
309N/ACPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT
1068N/A$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
309N/A
309N/A# lint complains about unused _umem_* functions
309N/ALINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2
493N/ALINTFLAGS64 += -xerroff=E_NAME_DEF_NOT_USED2
309N/A
970N/AROOTUSRSBINLINKS = $(PROG:%=$(ROOTUSRSBIN)/%)
970N/AUSRLIBFSTYPELINKS = $(LINKPROGS:%=$(USRLIBFSTYPE)/%)
970N/AROOTETCFSTYPELINKS = $(LINKPROGS:%=$(ROOTETCFSTYPE)/%)
1196N/A
1196N/A.KEEP_STATE:
1196N/A
1196N/A.PARALLEL:
309N/A
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