Makefile revision fa9e4066f08beec538e775443c5be79dd423fcab
137N/A#
137N/A# CDDL HEADER START
137N/A#
137N/A# The contents of this file are subject to the terms of the
911N/A# Common Development and Distribution License, Version 1.0 only
851N/A# (the "License"). You may not use this file except in compliance
137N/A# with the License.
137N/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 2005 Sun Microsystems, Inc. All rights reserved.
919N/A# Use is subject to license terms.
919N/A#
137N/A# ident "%Z%%M% %I% %E% SMI"
137N/A#
137N/A
137N/APROG= zfs
493N/AOBJS= zfs_main.o zfs_iter.o
137N/ASRCS= $(OBJS:%.o=%.c)
137N/APOFILES= zfs_main.po zfs_iter.po
851N/APOFILE= zfs.po
137N/A
911N/Ainclude ../Makefile.cmd
911N/A
911N/AFSTYPE= zfs
911N/ALINKPROGS= mount umount
137N/AROOTETCFSTYPE= $(ROOTETC)/fs/$(FSTYPE)
137N/AUSRLIBFSTYPE= $(ROOTLIB)/fs/$(FSTYPE)
137N/A
137N/ALDLIBS += -lzfs -luutil -lumem
137N/A
137N/AC99MODE= -xc99=%all
137N/AC99LMODE= -Xc99=%all
137N/A
137N/ACPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT
493N/A
137N/A# lint complains about unused _umem_* functions
137N/ALINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2
137N/ALINTFLAGS64 += -xerroff=E_NAME_DEF_NOT_USED2
493N/A
137N/AROOTUSRSBINLINKS = $(PROG:%=$(ROOTUSRSBIN)/%)
137N/AUSRLIBFSTYPELINKS = $(LINKPROGS:%=$(USRLIBFSTYPE)/%)
493N/AROOTETCFSTYPELINKS = $(LINKPROGS:%=$(ROOTETCFSTYPE)/%)
137N/A
493N/A.KEEP_STATE:
137N/A
137N/A.PARALLEL:
137N/A
137N/Aall: $(PROG)
137N/A
$(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