da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# CDDL HEADER START
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# The contents of this file are subject to the terms of the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Common Development and Distribution License (the "License").
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# You may not use this file except in compliance with the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# or http://www.opensolaris.org/os/licensing.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# See the License for the specific language governing permissions
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# and limitations under the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# When distributing Covered Code, include this CDDL HEADER in each
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# If applicable, add the following below this CDDL HEADER, with the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# fields enclosed by brackets "[]" replaced with your own identifying
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# information: Portions Copyright [yyyy] [name of copyright owner]
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# CDDL HEADER END
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
148c5f43199ca0b43fc8e3b643aab11cd66ea327Alan Wright# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
b819cea2f73f98c5662230cc9affc8cc84f77fcfGordon Ross# Copyright 2014 Nexenta Systems, Inc. All rights reserved.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
89dc44ce9705974a8bc4a39f1e878a0491a5be61jose borrego
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwPROG= smbd
b819cea2f73f98c5662230cc9affc8cc84f77fcfGordon RossOBJS= \
12b65585e720714b31036daaa2b30eb76014048eGordon Ross smbd_authsvc.o \
b819cea2f73f98c5662230cc9affc8cc84f77fcfGordon Ross smbd_doorsvc.o \
b819cea2f73f98c5662230cc9affc8cc84f77fcfGordon Ross smbd_join.o \
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross smbd_krb5lookup.o \
12b65585e720714b31036daaa2b30eb76014048eGordon Ross smbd_krb5ssp.o \
b819cea2f73f98c5662230cc9affc8cc84f77fcfGordon Ross smbd_logon.o \
b819cea2f73f98c5662230cc9affc8cc84f77fcfGordon Ross smbd_main.o \
b819cea2f73f98c5662230cc9affc8cc84f77fcfGordon Ross smbd_nicmon.o \
12b65585e720714b31036daaa2b30eb76014048eGordon Ross smbd_ntlmssp.o \
68b2bbf26c7040fea4281dcb58b81e7627e46f34Gordon Ross smbd_pipesvc.o \
b819cea2f73f98c5662230cc9affc8cc84f77fcfGordon Ross smbd_share_doorsvc.o \
b819cea2f73f98c5662230cc9affc8cc84f77fcfGordon Ross smbd_spool.o \
b819cea2f73f98c5662230cc9affc8cc84f77fcfGordon Ross smbd_syslog.o \
b819cea2f73f98c5662230cc9affc8cc84f77fcfGordon Ross smbd_vss.o
b819cea2f73f98c5662230cc9affc8cc84f77fcfGordon Ross
b819cea2f73f98c5662230cc9affc8cc84f77fcfGordon RossSRCS= $(OBJS:%.o=%.c)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinclude ../../Makefile.cmd
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
eb1a34638eba7c5add1421327f3eb225a8ea7518Truong NguyenMANIFEST= server.xml
eb1a34638eba7c5add1421327f3eb225a8ea7518Truong NguyenSVCMETHOD= svc-smbd
9fb67ea305c66b6a297583b9b0db6796b0dfe497afshin salek ardakani - Sun Microsystems - Irvine United StatesLOGDLL= eventlog.dll
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwROOTMANIFESTDIR = $(ROOTSVCSMB)
9fb67ea305c66b6a297583b9b0db6796b0dfe497afshin salek ardakani - Sun Microsystems - Irvine United StatesROOTVARSMBDLLDIR = $(ROOTVARSMB)/cvol/windows/system32
9fb67ea305c66b6a297583b9b0db6796b0dfe497afshin salek ardakani - Sun Microsystems - Irvine United StatesROOTVARSMBDLL= $(LOGDLL:%=$(ROOTVARSMBDLLDIR)/%)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
9fb67ea305c66b6a297583b9b0db6796b0dfe497afshin salek ardakani - Sun Microsystems - Irvine United States$(ROOTMANIFEST):= FILEMODE = 0444
eb1a34638eba7c5add1421327f3eb225a8ea7518Truong Nguyen$(ROOTSVCMETHOD):= FILEMODE = 0555
9fb67ea305c66b6a297583b9b0db6796b0dfe497afshin salek ardakani - Sun Microsystems - Irvine United States$(ROOTVARSMBDLL):= FILEMODE = 0755
eb1a34638eba7c5add1421327f3eb225a8ea7518Truong Nguyen
b819cea2f73f98c5662230cc9affc8cc84f77fcfGordon RossLINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2
12b65585e720714b31036daaa2b30eb76014048eGordon RossLINTFLAGS += -xerroff=E_NAME_USED_NOT_DEF2
b819cea2f73f98c5662230cc9affc8cc84f77fcfGordon Ross
b819cea2f73f98c5662230cc9affc8cc84f77fcfGordon RossCFLAGS += $(CCVERBOSE)
c7e79765a5bdcd4e6f05ea8effc8c7ce07e8a37aAlexander PyhalovCPPFLAGS += -D_IPP_PRIVATE_STRUCTURES
b819cea2f73f98c5662230cc9affc8cc84f77fcfGordon RossCPPFLAGS += -D_REENTRANT
b819cea2f73f98c5662230cc9affc8cc84f77fcfGordon RossCPPFLAGS += -Dsyslog=smb_syslog
b819cea2f73f98c5662230cc9affc8cc84f77fcfGordon Ross$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
b819cea2f73f98c5662230cc9affc8cc84f77fcfGordon Ross
12b65585e720714b31036daaa2b30eb76014048eGordon Ross# Should not have to do this, but the Kerberos includes are a mess.
12b65585e720714b31036daaa2b30eb76014048eGordon RossCPPFLAGS += -I $(ROOT)/usr/include/kerberosv5
12b65585e720714b31036daaa2b30eb76014048eGordon Ross
b819cea2f73f98c5662230cc9affc8cc84f77fcfGordon RossC99MODE = -xc99=%all
b819cea2f73f98c5662230cc9affc8cc84f77fcfGordon RossC99LMODE = -Xc99=%all
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
67e3a03ed4a2813074d36330f062ed6e593a4937rieLDFLAGS += -R/usr/lib/smbsrv
12b65585e720714b31036daaa2b30eb76014048eGordon RossLDLIBS += -L$(ROOT)/usr/lib/smbsrv
12b65585e720714b31036daaa2b30eb76014048eGordon Ross# prefer to keep libs ordered by dependence
12b65585e720714b31036daaa2b30eb76014048eGordon RossLDLIBS += -lmlsvc -lmlrpc -lsmbns -lsmb -lsmbfs -lgss
12b65585e720714b31036daaa2b30eb76014048eGordon RossLDLIBS += -lzfs -lbsm -lscf -lcmdutils -lsocket -lnsl -lumem
12b65585e720714b31036daaa2b30eb76014048eGordon Ross$(PROG) := LDLIBS += -lkrb5
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
86d7016b0051dd58772baafe5b5bcee51d560b05Gordon Ross$(ENABLE_SMB_PRINTING) CPPFLAGS += -DHAVE_CUPS
86d7016b0051dd58772baafe5b5bcee51d560b05Gordon Ross
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwROOTSMBDDIR = $(ROOTLIB)/smbsrv
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwROOTSMBDFILE = $(PROG:%=$(ROOTSMBDDIR)/%)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwFILEMODE = 0444
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw$(ROOTSMBDFILE):= FILEMODE = 0555
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw$(ROOTSMBDDIR)/%: %
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw $(INS.file)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
9fb67ea305c66b6a297583b9b0db6796b0dfe497afshin salek ardakani - Sun Microsystems - Irvine United States$(ROOTVARSMBDLLDIR)/%: %
9fb67ea305c66b6a297583b9b0db6796b0dfe497afshin salek ardakani - Sun Microsystems - Irvine United States $(INS.file)
9fb67ea305c66b6a297583b9b0db6796b0dfe497afshin salek ardakani - Sun Microsystems - Irvine United States
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwall: $(PROG)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwclean:
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw $(RM) $(OBJS)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwlint: lint_SRCS
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw$(PROG): $(OBJS)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw $(POST_PROCESS)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwcheck: $(CHKMANIFEST)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw_msg:
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinclude ../../Makefile.targ
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinstall: all .WAIT $(ROOTETCDEFAULTFILES) $(ROOTMANIFEST) \
9fb67ea305c66b6a297583b9b0db6796b0dfe497afshin salek ardakani - Sun Microsystems - Irvine United States $(ROOTSMBDFILE) ${ROOTSVCMETHOD} $(ROOTVARSMBDLL)
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross.KEEP_STATE: