1*8329232eSGordon Ross# 2*8329232eSGordon Ross# CDDL HEADER START 3*8329232eSGordon Ross# 4*8329232eSGordon Ross# The contents of this file are subject to the terms of the 5*8329232eSGordon Ross# Common Development and Distribution License, Version 1.0 only 6*8329232eSGordon Ross# (the "License"). You may not use this file except in compliance 7*8329232eSGordon Ross# with the License. 8*8329232eSGordon Ross# 9*8329232eSGordon Ross# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*8329232eSGordon Ross# or http://www.opensolaris.org/os/licensing. 11*8329232eSGordon Ross# See the License for the specific language governing permissions 12*8329232eSGordon Ross# and limitations under the License. 13*8329232eSGordon Ross# 14*8329232eSGordon Ross# When distributing Covered Code, include this CDDL HEADER in each 15*8329232eSGordon Ross# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*8329232eSGordon Ross# If applicable, add the following below this CDDL HEADER, with the 17*8329232eSGordon Ross# fields enclosed by brackets "[]" replaced with your own identifying 18*8329232eSGordon Ross# information: Portions Copyright [yyyy] [name of copyright owner] 19*8329232eSGordon Ross# 20*8329232eSGordon Ross# CDDL HEADER END 21*8329232eSGordon Ross# 22*8329232eSGordon Ross# 23*8329232eSGordon Ross# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24*8329232eSGordon Ross# Use is subject to license terms. 25*8329232eSGordon Ross# 26*8329232eSGordon Ross# Copyright 2017 Nexenta Systems, Inc. All rights reserved. 27*8329232eSGordon Ross# 28*8329232eSGordon Ross 29*8329232eSGordon RossMODULE = libfknsmb.so 30*8329232eSGordon RossMDBTGT = proc 31*8329232eSGordon Ross 32*8329232eSGordon RossMODSRCS = nsmb.c 33*8329232eSGordon Ross 34*8329232eSGordon Rossinclude ../../../../Makefile.cmd 35*8329232eSGordon Rossinclude ../../../../Makefile.cmd.64 36*8329232eSGordon Rossinclude ../../Makefile.amd64 37*8329232eSGordon Rossinclude ../../../Makefile.module 38*8329232eSGordon Ross 39*8329232eSGordon RossMODSRCS_DIR = ../../../common/modules/nsmb 40*8329232eSGordon Ross 41*8329232eSGordon Ross# Note: need our sys includes _before_ ENVCPPFLAGS, proto etc. 42*8329232eSGordon RossCPPFLAGS.first += -I$(SRC)/lib/smbclnt/libfknsmb/common 43*8329232eSGordon RossCPPFLAGS.first += -I$(SRC)/lib/libfakekernel/common 44*8329232eSGordon Ross 45*8329232eSGordon RossCPPFLAGS += -I$(SRC)/uts/common/fs/smbclnt/ 46*8329232eSGordon RossCPPFLAGS += -I$(SRC)/uts/common 47*8329232eSGordon RossCPPFLAGS += -D_FAKE_KERNEL 48*8329232eSGordon Ross 49*8329232eSGordon RossCSTD= $(CSTD_GNU99) 50