4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# CDDL HEADER START
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# The contents of this file are subject to the terms of the
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Common Development and Distribution License (the "License").
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# You may not use this file except in compliance with the License.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# or http://www.opensolaris.org/os/licensing.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# See the License for the specific language governing permissions
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# and limitations under the License.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# When distributing Covered Code, include this CDDL HEADER in each
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# If applicable, add the following below this CDDL HEADER, with the
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# fields enclosed by brackets "[]" replaced with your own identifying
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# information: Portions Copyright [yyyy] [name of copyright owner]
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# CDDL HEADER END
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Use is subject to license terms.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# cmd/fs.d/smbclnt/smbutil/Makefile
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowPROG= smbutil
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowinclude $(SRC)/cmd/Makefile.cmd
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowOBJS= smbutil.o login.o lookup.o print.o status.o view.o
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross
4bff34e37def8a90f9194d81bc345c52ba20086athurlowSRCS= $(OBJS:%.o=%.c)
4bff34e37def8a90f9194d81bc345c52ba20086athurlowPOFILE= smbutil_all.po
4bff34e37def8a90f9194d81bc345c52ba20086athurlowPOFILES= $(OBJS:%.o=%.po)
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon RossCLOBBERFILES+= $(POFILE) $(POFILES)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowC99MODE= $(C99_ENABLE)
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon RossLDLIBS += -lsmbfs -lnsl
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross
4bff34e37def8a90f9194d81bc345c52ba20086athurlowCPPFLAGS += -I$(SRC)/lib/libsmbfs \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow -I$(SRC)/uts/common/smbclnt -I$(SRC)/uts/common
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# Debugging
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# uncomment these for dbx debugging
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross#COPTFLAG = -g
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross#CTF_FLAGS =
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross#CTFCONVERT_O=
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross#CTFMERGE_LIB=
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# disable some of the less important lint
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon RossLINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon RossLINTFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowall: $(PROG)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow$(PROG): $(OBJS)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow $(POST_PROCESS)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowinstall: all $(ROOTPROG)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow$(ROOTPROG): $(PROG)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow $(INS.file) $(PROG)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowcatalog: $(POFILE)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow$(POFILE): $(POFILES)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow $(RM) $@
4bff34e37def8a90f9194d81bc345c52ba20086athurlow $(CAT) $(POFILES) > $@
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Rosslint: lint_SRCS
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross
4bff34e37def8a90f9194d81bc345c52ba20086athurlowclean :
4bff34e37def8a90f9194d81bc345c52ba20086athurlow $(RM) $(OBJS)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross.KEEP_STATE:
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Rossinclude ../../../Makefile.targ