1*fca42680SGary Mills# 2*fca42680SGary Mills# CDDL HEADER START 3*fca42680SGary Mills# 4*fca42680SGary Mills# The contents of this file are subject to the terms of the 5*fca42680SGary Mills# Common Development and Distribution License, Version 1.0 only 6*fca42680SGary Mills# (the "License"). You may not use this file except in compliance 7*fca42680SGary Mills# with the License. 8*fca42680SGary Mills# 9*fca42680SGary Mills# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*fca42680SGary Mills# or http://www.opensolaris.org/os/licensing. 11*fca42680SGary Mills# See the License for the specific language governing permissions 12*fca42680SGary Mills# and limitations under the License. 13*fca42680SGary Mills# 14*fca42680SGary Mills# When distributing Covered Code, include this CDDL HEADER in each 15*fca42680SGary Mills# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*fca42680SGary Mills# If applicable, add the following below this CDDL HEADER, with the 17*fca42680SGary Mills# fields enclosed by brackets "[]" replaced with your own identifying 18*fca42680SGary Mills# information: Portions Copyright [yyyy] [name of copyright owner] 19*fca42680SGary Mills# 20*fca42680SGary Mills# CDDL HEADER END 21*fca42680SGary Mills# 22*fca42680SGary Mills# 23*fca42680SGary Mills# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24*fca42680SGary Mills# Use is subject to license terms. 25*fca42680SGary Mills# 26*fca42680SGary Mills# Copyright 2013 Nexenta Systems, Inc. All rights reserved. 27*fca42680SGary Mills# Copyright 2015 Gary Mills 28*fca42680SGary Mills# 29*fca42680SGary Mills 30*fca42680SGary MillsMODULE = libfksmbsrv.so 31*fca42680SGary MillsMDBTGT = proc 32*fca42680SGary Mills 33*fca42680SGary MillsMODSRCS = smbsrv.c list.c 34*fca42680SGary Mills 35*fca42680SGary Millsinclude ../../../../Makefile.cmd 36*fca42680SGary Millsinclude ../../../../Makefile.cmd.64 37*fca42680SGary Millsinclude ../../Makefile.sparcv9 38*fca42680SGary Millsinclude ../../../Makefile.module 39*fca42680SGary Mills 40*fca42680SGary MillsMODSRCS_DIR = ../../../common/modules/smbsrv 41*fca42680SGary MillsGENUNIX_DIR = ../../../common/modules/genunix 42*fca42680SGary Mills 43*fca42680SGary Mills# Note: need our sys includes _before_ ENVCPPFLAGS, proto etc. 44*fca42680SGary MillsCPPFLAGS.first += -I../../../../../lib/smbsrv/libfksmbsrv/common 45*fca42680SGary MillsCPPFLAGS.first += -I../../../../../lib/libfakekernel/common 46*fca42680SGary Mills 47*fca42680SGary MillsCPPFLAGS += -I../../../../../uts/common 48*fca42680SGary Mills 49*fca42680SGary MillsC99MODE= -xc99=%all 50*fca42680SGary MillsC99LMODE= -Xc99=%all 51*fca42680SGary Mills 52*fca42680SGary Millsdmod/%.o: $(GENUNIX_DIR)/%.c 53*fca42680SGary Mills $(COMPILE.c) -o $@ $< 54*fca42680SGary Mills $(CTFCONVERT_O) 55*fca42680SGary Mills 56*fca42680SGary Millsdmod/%.ln: $(GENUNIX_DIR)/%.c 57*fca42680SGary Mills $(LINT.c) -c $< 58