#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
#
#
# lib/libsmbfs/Makefile.com
#
LIBRARY= libsmbfs.a
VERS= .1
# leaving out: kiconv.o
OBJ_LIB=\
smbfs_acl.o \
smbfs_connect.o \
smbfs_crypt.o \
smbfs_ctx.o \
smbfs_derparse.o \
smbfs_door.o \
smbfs_file.o \
smbfs_gss.o \
smbfs_iod_cl.o \
smbfs_keychain.o \
smbfs_mbuf.o \
smbfs_nb.o \
smbfs_nb_ssn.o \
smbfs_nbns_rq.o \
smbfs_negprot.o \
smbfs_ntlm.o \
smbfs_ntlmssp.o \
smbfs_print.o \
smbfs_pwdutil.o \
smbfs_rq.o \
smbfs_signing.o \
smbfs_spnego.o \
smbfs_spnegoparse.o \
smbfs_ssnsetup.o \
smbfs_ssp.o \
smbfs_utf_str.o \
smbfs_util.o \
smbfs_vc.o \
OBJ_CMN= smbfs_ntacl.o
OBJECTS= $(OBJ_LIB) $(OBJ_CMN)
include $(SRC)/lib/Makefile.lib
LIBS = $(DYNLIB) $(LINTLIB)
SRCDIR= ../common
CMNDIR= $(SRC)/common/smbclnt
SRCS= $(OBJ_LIB:%.o=$(SRCDIR)/%.c) \
$(OBJ_CMN:%.o=$(CMNDIR)/%.c)
$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
C99MODE= $(C99_ENABLE)
LDLIBS += -lscf -lsocket -lnsl -lc -lmd -lpkcs11 -lsec -lidmap -lnvpair \
-lgss -lsmbns -lsmb
# normal warnings...
CFLAGS += $(CCVERBOSE)
CPPFLAGS += -D__EXTENSIONS__ -D_REENTRANT -DMIA \
-I$(SRCDIR) -I.. \
-I$(SRC)/uts/common \
-I$(SRC)/common/smbclnt \
-I$(SRC)/lib/gss_mechs/mech_krb5/include
# Debugging
${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG
# uncomment these for dbx debugging
#COPTFLAG = -g
#CTF_FLAGS =
#CTFCONVERT_O=
#CTFMERGE_LIB=
# Filter out the less important lint.
# See lgrep.awk
LGREP = nawk -f $(SRCDIR)/lgrep.awk
LTAIL += 2>&1 | $(LGREP)
all: stub $(LIBS)
lint: lintcheck_t
include ../../Makefile.targ
lintcheck_t: $$(SRCS)
$(LINT.c) $(LINTCHECKFLAGS) $(SRCS) $(LDLIBS) $(LTAIL)
objs/%.o pics/%.o: $(CMNDIR)/%.c
$(COMPILE.c) -o $@ $<
$(POST_PROCESS_O)
.KEEP_STATE: