14bff34e3Sthurlow# 24bff34e3Sthurlow# CDDL HEADER START 34bff34e3Sthurlow# 44bff34e3Sthurlow# The contents of this file are subject to the terms of the 54bff34e3Sthurlow# Common Development and Distribution License (the "License"). 64bff34e3Sthurlow# You may not use this file except in compliance with the License. 74bff34e3Sthurlow# 84bff34e3Sthurlow# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 94bff34e3Sthurlow# or http://www.opensolaris.org/os/licensing. 104bff34e3Sthurlow# See the License for the specific language governing permissions 114bff34e3Sthurlow# and limitations under the License. 124bff34e3Sthurlow# 134bff34e3Sthurlow# When distributing Covered Code, include this CDDL HEADER in each 144bff34e3Sthurlow# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 154bff34e3Sthurlow# If applicable, add the following below this CDDL HEADER, with the 164bff34e3Sthurlow# fields enclosed by brackets "[]" replaced with your own identifying 174bff34e3Sthurlow# information: Portions Copyright [yyyy] [name of copyright owner] 184bff34e3Sthurlow# 194bff34e3Sthurlow# CDDL HEADER END 204bff34e3Sthurlow# 21*613a2f6bSGordon Ross 224bff34e3Sthurlow# 23*613a2f6bSGordon Ross# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 244bff34e3Sthurlow# Use is subject to license terms. 254bff34e3Sthurlow# 26*613a2f6bSGordon Ross 274bff34e3Sthurlow# 284bff34e3Sthurlow# cmd/fs.d/smbclnt/smbutil/Makefile 294bff34e3Sthurlow# 304bff34e3Sthurlow 314bff34e3SthurlowPROG= smbutil 324bff34e3Sthurlow 334bff34e3Sthurlowinclude $(SRC)/cmd/Makefile.cmd 344bff34e3Sthurlow 354bff34e3SthurlowOBJS= smbutil.o login.o lookup.o print.o status.o view.o 36*613a2f6bSGordon Ross 374bff34e3SthurlowSRCS= $(OBJS:%.o=%.c) 384bff34e3SthurlowPOFILE= smbutil_all.po 394bff34e3SthurlowPOFILES= $(OBJS:%.o=%.po) 40*613a2f6bSGordon RossCLOBBERFILES+= $(POFILE) $(POFILES) 414bff34e3Sthurlow 424bff34e3SthurlowC99MODE= $(C99_ENABLE) 43*613a2f6bSGordon Ross 44*613a2f6bSGordon RossLDLIBS += -lsmbfs -lnsl 45*613a2f6bSGordon Ross 464bff34e3SthurlowCPPFLAGS += -I$(SRC)/lib/libsmbfs \ 474bff34e3Sthurlow -I$(SRC)/uts/common/smbclnt -I$(SRC)/uts/common 48*613a2f6bSGordon Ross 49*613a2f6bSGordon Ross# Debugging 50*613a2f6bSGordon Ross${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG 51*613a2f6bSGordon Ross 52*613a2f6bSGordon Ross# uncomment these for dbx debugging 53*613a2f6bSGordon Ross#COPTFLAG = -g 54*613a2f6bSGordon Ross#CTF_FLAGS = 55*613a2f6bSGordon Ross#CTFCONVERT_O= 56*613a2f6bSGordon Ross#CTFMERGE_LIB= 57*613a2f6bSGordon Ross 58*613a2f6bSGordon Ross# disable some of the less important lint 59*613a2f6bSGordon RossLINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2 60*613a2f6bSGordon RossLINTFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2 614bff34e3Sthurlow 624bff34e3Sthurlowall: $(PROG) 634bff34e3Sthurlow 644bff34e3Sthurlow$(PROG): $(OBJS) 654bff34e3Sthurlow $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 664bff34e3Sthurlow $(POST_PROCESS) 674bff34e3Sthurlow 684bff34e3Sthurlowinstall: all $(ROOTPROG) 694bff34e3Sthurlow 704bff34e3Sthurlow$(ROOTPROG): $(PROG) 714bff34e3Sthurlow $(INS.file) $(PROG) 724bff34e3Sthurlow 734bff34e3Sthurlowcatalog: $(POFILE) 744bff34e3Sthurlow 754bff34e3Sthurlow$(POFILE): $(POFILES) 764bff34e3Sthurlow $(RM) $@ 774bff34e3Sthurlow $(CAT) $(POFILES) > $@ 784bff34e3Sthurlow 79*613a2f6bSGordon Rosslint: lint_SRCS 80*613a2f6bSGordon Ross 814bff34e3Sthurlowclean : 824bff34e3Sthurlow $(RM) $(OBJS) 834bff34e3Sthurlow 84*613a2f6bSGordon Ross.KEEP_STATE: 85*613a2f6bSGordon Ross 86*613a2f6bSGordon Rossinclude ../../../Makefile.targ 87