Makefile revision 86d7016b0051dd58772baafe5b5bcee51d560b05
2035N/A#
2035N/A# CDDL HEADER START
2035N/A#
2035N/A# The contents of this file are subject to the terms of the
2035N/A# Common Development and Distribution License (the "License").
2035N/A# You may not use this file except in compliance with the License.
2035N/A#
2035N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2035N/A# or http://www.opensolaris.org/os/licensing.
2035N/A# See the License for the specific language governing permissions
2035N/A# and limitations under the License.
2035N/A#
2035N/A# When distributing Covered Code, include this CDDL HEADER in each
2035N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2035N/A# If applicable, add the following below this CDDL HEADER, with the
2035N/A# fields enclosed by brackets "[]" replaced with your own identifying
2035N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2035N/A#
2035N/A# CDDL HEADER END
2035N/A#
2818N/A#
2035N/A# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
2035N/A# Copyright 2012 Nexenta Systems, Inc. All rights reserved.
2035N/A#
2035N/A
2035N/A
2035N/APROG= smbd
2035N/ASRCS= \
2035N/A smbd_doorsvc.c \
2035N/A smbd_join.c \
2035N/A smbd_logon.c \
2035N/A smbd_main.c \
2035N/A smbd_nicmon.c \
2035N/A smbd_opipe_doorsvc.c \
2818N/A smbd_share_doorsvc.c \
2818N/A smbd_spool.c \
2818N/A smbd_vss.c
2035N/A
2035N/Ainclude ../../Makefile.cmd
2035N/A
2035N/AMANIFEST= server.xml
2035N/ASVCMETHOD= svc-smbd
2035N/ALOGDLL= eventlog.dll
2035N/A
2035N/AROOTMANIFESTDIR = $(ROOTSVCSMB)
2035N/AROOTVARSMBDLLDIR = $(ROOTVARSMB)/cvol/windows/system32
2035N/AROOTVARSMBDLL= $(LOGDLL:%=$(ROOTVARSMBDLLDIR)/%)
2035N/A
2035N/A$(ROOTMANIFEST):= FILEMODE = 0444
2035N/A$(ROOTSVCMETHOD):= FILEMODE = 0555
2035N/A$(ROOTVARSMBDLL):= FILEMODE = 0755
2035N/A
2035N/Ainclude ../Makefile.smbsrv.defs
2035N/A
2035N/ALDLIBS += -L$(ROOT)/usr/lib/smbsrv -lmlsvc -lmlrpc -lsmbns -lsmb \
2035N/A -lzfs -lbsm -lsocket -lnsl -lscf -lumem -lcmdutils
2035N/ALDFLAGS += -R/usr/lib/smbsrv
2035N/A
2035N/A$(ENABLE_SMB_PRINTING) CPPFLAGS += -DHAVE_CUPS
2035N/A
2035N/AROOTSMBDDIR = $(ROOTLIB)/smbsrv
2035N/AROOTSMBDFILE = $(PROG:%=$(ROOTSMBDDIR)/%)
2035N/A
FILEMODE = 0444
$(ROOTSMBDFILE):= FILEMODE = 0555
$(ROOTSMBDDIR)/%: %
$(INS.file)
$(ROOTVARSMBDLLDIR)/%: %
$(INS.file)
all: $(PROG)
clean:
$(RM) $(OBJS)
lint: lint_SRCS
$(PROG): $(OBJS)
$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
$(POST_PROCESS)
check: $(CHKMANIFEST)
_msg:
include ../../Makefile.targ
install: all .WAIT $(ROOTETCDEFAULTFILES) $(ROOTMANIFEST) \
$(ROOTSMBDFILE) ${ROOTSVCMETHOD} $(ROOTVARSMBDLL)