8423b966893247e8c7296193fb12cd65926366b3Bob Halley#
8423b966893247e8c7296193fb12cd65926366b3Bob Halley# CDDL HEADER START
8423b966893247e8c7296193fb12cd65926366b3Bob Halley#
8423b966893247e8c7296193fb12cd65926366b3Bob Halley# The contents of this file are subject to the terms of the
8423b966893247e8c7296193fb12cd65926366b3Bob Halley# Common Development and Distribution License (the "License").
8423b966893247e8c7296193fb12cd65926366b3Bob Halley# You may not use this file except in compliance with the License.
8423b966893247e8c7296193fb12cd65926366b3Bob Halley#
8423b966893247e8c7296193fb12cd65926366b3Bob Halley# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8423b966893247e8c7296193fb12cd65926366b3Bob Halley# or http://www.opensolaris.org/os/licensing.
8423b966893247e8c7296193fb12cd65926366b3Bob Halley# See the License for the specific language governing permissions
8423b966893247e8c7296193fb12cd65926366b3Bob Halley# and limitations under the License.
8423b966893247e8c7296193fb12cd65926366b3Bob Halley#
8423b966893247e8c7296193fb12cd65926366b3Bob Halley# When distributing Covered Code, include this CDDL HEADER in each
8423b966893247e8c7296193fb12cd65926366b3Bob Halley# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8423b966893247e8c7296193fb12cd65926366b3Bob Halley# If applicable, add the following below this CDDL HEADER, with the
8423b966893247e8c7296193fb12cd65926366b3Bob Halley# fields enclosed by brackets "[]" replaced with your own identifying
8423b966893247e8c7296193fb12cd65926366b3Bob Halley# information: Portions Copyright [yyyy] [name of copyright owner]
8423b966893247e8c7296193fb12cd65926366b3Bob Halley#
8423b966893247e8c7296193fb12cd65926366b3Bob Halley# CDDL HEADER END
8423b966893247e8c7296193fb12cd65926366b3Bob Halley#
8423b966893247e8c7296193fb12cd65926366b3Bob Halley
8423b966893247e8c7296193fb12cd65926366b3Bob Halley#
8423b966893247e8c7296193fb12cd65926366b3Bob Halley# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
8423b966893247e8c7296193fb12cd65926366b3Bob Halley# Use is subject to license terms.
8423b966893247e8c7296193fb12cd65926366b3Bob Halley#
fccf7905e8a06067d49ec00c53d4d57a38a71e52Michael Graff
8423b966893247e8c7296193fb12cd65926366b3Bob Halley#
8423b966893247e8c7296193fb12cd65926366b3Bob Halley# cmd/fs.d/smbclnt/smbutil/Makefile
8423b966893247e8c7296193fb12cd65926366b3Bob Halley#
8423b966893247e8c7296193fb12cd65926366b3Bob Halley
8423b966893247e8c7296193fb12cd65926366b3Bob HalleyPROG= smbutil
8423b966893247e8c7296193fb12cd65926366b3Bob Halley
8198371caa8d6ef92120cd2e6f07b59ca86c1bd9Bob Halleyinclude $(SRC)/cmd/Makefile.cmd
3b1da4f989170b98aad368616af3f5aa43b9d50fBob Halley
3b1da4f989170b98aad368616af3f5aa43b9d50fBob HalleyOBJS= smbutil.o login.o lookup.o print.o status.o view.o
841988cf57fc91154b12ebcc5e55390353206267Bob Halley
841988cf57fc91154b12ebcc5e55390353206267Bob HalleySRCS= $(OBJS:%.o=%.c)
468ff4555b18e2a6688dd50f80fb7fd4ea6d353dBob HalleyPOFILE= smbutil_all.po
fccf7905e8a06067d49ec00c53d4d57a38a71e52Michael GraffPOFILES= $(OBJS:%.o=%.po)
8198371caa8d6ef92120cd2e6f07b59ca86c1bd9Bob HalleyCLOBBERFILES+= $(POFILE) $(POFILES)
468ff4555b18e2a6688dd50f80fb7fd4ea6d353dBob Halley
8423b966893247e8c7296193fb12cd65926366b3Bob HalleyC99MODE= $(C99_ENABLE)
14b50c163ede4c5cace667e3c6bdff32c5e57f31Michael Graff
14b50c163ede4c5cace667e3c6bdff32c5e57f31Michael GraffLDLIBS += -lsmbfs -lnsl
fccf7905e8a06067d49ec00c53d4d57a38a71e52Michael Graff
fccf7905e8a06067d49ec00c53d4d57a38a71e52Michael GraffCPPFLAGS += -I$(SRC)/lib/libsmbfs \
fccf7905e8a06067d49ec00c53d4d57a38a71e52Michael Graff -I$(SRC)/uts/common/smbclnt -I$(SRC)/uts/common
fccf7905e8a06067d49ec00c53d4d57a38a71e52Michael Graff
fccf7905e8a06067d49ec00c53d4d57a38a71e52Michael Graff# Debugging
fccf7905e8a06067d49ec00c53d4d57a38a71e52Michael Graff${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG
fccf7905e8a06067d49ec00c53d4d57a38a71e52Michael Graff
fccf7905e8a06067d49ec00c53d4d57a38a71e52Michael Graff# uncomment these for dbx debugging
fccf7905e8a06067d49ec00c53d4d57a38a71e52Michael Graff#COPTFLAG = -g
fccf7905e8a06067d49ec00c53d4d57a38a71e52Michael Graff#CTF_FLAGS =
fccf7905e8a06067d49ec00c53d4d57a38a71e52Michael Graff#CTFCONVERT_O=
25657e31a30257354d275e7b4848494d164b274eBob Halley#CTFMERGE_LIB=
8423b966893247e8c7296193fb12cd65926366b3Bob Halley
8423b966893247e8c7296193fb12cd65926366b3Bob Halley# disable some of the less important lint
8423b966893247e8c7296193fb12cd65926366b3Bob HalleyLINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
8423b966893247e8c7296193fb12cd65926366b3Bob HalleyLINTFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
8423b966893247e8c7296193fb12cd65926366b3Bob Halley
8423b966893247e8c7296193fb12cd65926366b3Bob Halleyall: $(PROG)
8423b966893247e8c7296193fb12cd65926366b3Bob Halley
8423b966893247e8c7296193fb12cd65926366b3Bob Halley$(PROG): $(OBJS)
8423b966893247e8c7296193fb12cd65926366b3Bob Halley $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
8423b966893247e8c7296193fb12cd65926366b3Bob Halley $(POST_PROCESS)
25657e31a30257354d275e7b4848494d164b274eBob Halley
8423b966893247e8c7296193fb12cd65926366b3Bob Halleyinstall: all $(ROOTPROG)
e690d225ad09e0b4617554c753b68abc82f0583aMichael Graff
8423b966893247e8c7296193fb12cd65926366b3Bob Halley$(ROOTPROG): $(PROG)
8423b966893247e8c7296193fb12cd65926366b3Bob Halley $(INS.file) $(PROG)
8423b966893247e8c7296193fb12cd65926366b3Bob Halley
8423b966893247e8c7296193fb12cd65926366b3Bob Halleycatalog: $(POFILE)
8423b966893247e8c7296193fb12cd65926366b3Bob Halley
8423b966893247e8c7296193fb12cd65926366b3Bob Halley$(POFILE): $(POFILES)
8423b966893247e8c7296193fb12cd65926366b3Bob Halley $(RM) $@
8423b966893247e8c7296193fb12cd65926366b3Bob Halley $(CAT) $(POFILES) > $@
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff
8423b966893247e8c7296193fb12cd65926366b3Bob Halleylint: lint_SRCS
8423b966893247e8c7296193fb12cd65926366b3Bob Halley
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graffclean :
8423b966893247e8c7296193fb12cd65926366b3Bob Halley $(RM) $(OBJS)
e690d225ad09e0b4617554c753b68abc82f0583aMichael Graff
8423b966893247e8c7296193fb12cd65926366b3Bob Halley.KEEP_STATE:
8198371caa8d6ef92120cd2e6f07b59ca86c1bd9Bob Halley
8198371caa8d6ef92120cd2e6f07b59ca86c1bd9Bob Halleyinclude ../../../Makefile.targ
8198371caa8d6ef92120cd2e6f07b59ca86c1bd9Bob Halley