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