1da6c28aaSamw# 2da6c28aaSamw# CDDL HEADER START 3da6c28aaSamw# 4da6c28aaSamw# The contents of this file are subject to the terms of the 5da6c28aaSamw# Common Development and Distribution License (the "License"). 6da6c28aaSamw# You may not use this file except in compliance with the License. 7da6c28aaSamw# 8da6c28aaSamw# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9da6c28aaSamw# or http://www.opensolaris.org/os/licensing. 10da6c28aaSamw# See the License for the specific language governing permissions 11da6c28aaSamw# and limitations under the License. 12da6c28aaSamw# 13da6c28aaSamw# When distributing Covered Code, include this CDDL HEADER in each 14da6c28aaSamw# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15da6c28aaSamw# If applicable, add the following below this CDDL HEADER, with the 16da6c28aaSamw# fields enclosed by brackets "[]" replaced with your own identifying 17da6c28aaSamw# information: Portions Copyright [yyyy] [name of copyright owner] 18da6c28aaSamw# 19da6c28aaSamw# CDDL HEADER END 20da6c28aaSamw# 21da6c28aaSamw# 22148c5f43SAlan Wright# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. 23da6c28aaSamw# 2489dc44ceSjose borrego 25da6c28aaSamw 26da6c28aaSamwPROG= smbd 27da6c28aaSamwSRCS= \ 28da6c28aaSamw smbd_doorsvc.c \ 29da6c28aaSamw smbd_join.c \ 30da6c28aaSamw smbd_logon.c \ 31da6c28aaSamw smbd_main.c \ 32148c5f43SAlan Wright smbd_nicmon.c \ 333db3f65cSamw smbd_opipe_doorsvc.c \ 3489dc44ceSjose borrego smbd_share_doorsvc.c \ 35*fd9ee8b5Sjoyce mcintosh smbd_spool.c \ 3689dc44ceSjose borrego smbd_vss.c 37da6c28aaSamw 38da6c28aaSamwinclude ../../Makefile.cmd 39da6c28aaSamw 40da6c28aaSamwMANIFEST= server.xml 41eb1a3463STruong NguyenSVCMETHOD= svc-smbd 429fb67ea3Safshin salek ardakani - Sun Microsystems - Irvine United StatesLOGDLL= eventlog.dll 43da6c28aaSamw 44da6c28aaSamwROOTMANIFESTDIR = $(ROOTSVCSMB) 459fb67ea3Safshin salek ardakani - Sun Microsystems - Irvine United StatesROOTVARSMBDLLDIR = $(ROOTVARSMB)/cvol/windows/system32 469fb67ea3Safshin salek ardakani - Sun Microsystems - Irvine United StatesROOTVARSMBDLL= $(LOGDLL:%=$(ROOTVARSMBDLLDIR)/%) 47da6c28aaSamw 489fb67ea3Safshin salek ardakani - Sun Microsystems - Irvine United States$(ROOTMANIFEST):= FILEMODE = 0444 49eb1a3463STruong Nguyen$(ROOTSVCMETHOD):= FILEMODE = 0555 509fb67ea3Safshin salek ardakani - Sun Microsystems - Irvine United States$(ROOTVARSMBDLL):= FILEMODE = 0755 51eb1a3463STruong Nguyen 52da6c28aaSamwinclude ../Makefile.smbsrv.defs 53da6c28aaSamw 54a0aa776eSAlan WrightLDLIBS += -L$(ROOT)/usr/lib/smbsrv -lmlsvc -lmlrpc -lsmbns -lsmb \ 553c112a2bSEric Taylor -lzfs -lbsm -lsocket -lnsl -lscf -lumem -lcmdutils 5667e3a03eSrieLDFLAGS += -R/usr/lib/smbsrv 57da6c28aaSamw 58da6c28aaSamwROOTSMBDDIR = $(ROOTLIB)/smbsrv 59da6c28aaSamwROOTSMBDFILE = $(PROG:%=$(ROOTSMBDDIR)/%) 60da6c28aaSamw 61da6c28aaSamwFILEMODE = 0444 62da6c28aaSamw$(ROOTSMBDFILE):= FILEMODE = 0555 63da6c28aaSamw 64da6c28aaSamw$(ROOTSMBDDIR)/%: % 65da6c28aaSamw $(INS.file) 66da6c28aaSamw 679fb67ea3Safshin salek ardakani - Sun Microsystems - Irvine United States$(ROOTVARSMBDLLDIR)/%: % 689fb67ea3Safshin salek ardakani - Sun Microsystems - Irvine United States $(INS.file) 699fb67ea3Safshin salek ardakani - Sun Microsystems - Irvine United States 70da6c28aaSamwall: $(PROG) 71da6c28aaSamw 72da6c28aaSamwclean: 73da6c28aaSamw $(RM) $(OBJS) 74da6c28aaSamw 75da6c28aaSamwlint: lint_SRCS 76da6c28aaSamw 77da6c28aaSamw$(PROG): $(OBJS) 78da6c28aaSamw $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 79da6c28aaSamw $(POST_PROCESS) 80da6c28aaSamw 81da6c28aaSamwcheck: $(CHKMANIFEST) 82da6c28aaSamw 83da6c28aaSamw_msg: 84da6c28aaSamw 85da6c28aaSamwinclude ../../Makefile.targ 86da6c28aaSamw 87da6c28aaSamwinstall: all .WAIT $(ROOTETCDEFAULTFILES) $(ROOTMANIFEST) \ 889fb67ea3Safshin salek ardakani - Sun Microsystems - Irvine United States $(ROOTSMBDFILE) ${ROOTSVCMETHOD} $(ROOTVARSMBDLL) 89