#
# 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
# 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 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# Copyright 2014 Nexenta Systems, Inc. All rights reserved.
#
VERS = .1
OBJS_LOCAL = \
# See also: $SRC/uts/common/Makefile.files
# NB: Intentionally ommitted, compared w/ the above:
# smb_cred, smb_fem, smb_idmap, smb_init, smb_kdoor
#
OBJS_FS_SMBSRV = \
smb_sd.o \
\
# Can't just link with -lsmb because of user vs kernel API
# i.e. can't call free with mem from kmem_alloc, which is
# what happens if we just link with -lsmb
OBJS_CMN_SMBSRV = \
OBJS_MISC = \
refstr.o \
OBJECTS = \
$(OBJS_LOCAL) \
$(OBJS_FS_SMBSRV) \
$(OBJS_CMN_SMBSRV) \
$(OBJS_MISC)
include ../../../Makefile.lib
include ../../Makefile.lib
# Force SOURCEDEBUG
CSOURCEDEBUGFLAGS = -g
CCSOURCEDEBUGFLAGS = -g
STRIP_STABS = :
# Note: need our sys includes _before_ ENVCPPFLAGS, proto etc.
LDLIBS += $(MACH_LDLIBS)
# Always want DEBUG here
all:
$(COMPILE.c) -o $@ $<
# Makefile.targ has rule for $(SRC)/common/smbsrv/%.c
include ../../Makefile.targ
include ../../../Makefile.targ