Makefile revision 68b2bbf26c7040fea4281dcb58b81e7627e46f34
159N/A#
159N/A# CDDL HEADER START
606N/A#
159N/A# The contents of this file are subject to the terms of the
935N/A# Common Development and Distribution License (the "License").
159N/A# You may not use this file except in compliance with the License.
159N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A#
919N/A# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
919N/A# Copyright 2014 Nexenta Systems, Inc. All rights reserved.
919N/A#
159N/A
159N/A
159N/APROG= smbd
159N/AOBJS= \
493N/A smbd_doorsvc.o \
159N/A smbd_join.o \
159N/A smbd_logon.o \
851N/A smbd_main.o \
159N/A smbd_nicmon.o \
911N/A smbd_pipesvc.o \
911N/A smbd_share_doorsvc.o \
911N/A smbd_spool.o \
911N/A smbd_syslog.o \
159N/A smbd_vss.o
851N/A
606N/ASRCS= $(OBJS:%.o=%.c)
705N/A
705N/Ainclude ../../Makefile.cmd
705N/A
159N/AMANIFEST= server.xml
159N/ASVCMETHOD= svc-smbd
159N/ALOGDLL= eventlog.dll
493N/A
493N/AROOTMANIFESTDIR = $(ROOTSVCSMB)
159N/AROOTVARSMBDLLDIR = $(ROOTVARSMB)/cvol/windows/system32
606N/AROOTVARSMBDLL= $(LOGDLL:%=$(ROOTVARSMBDLLDIR)/%)
606N/A
606N/A$(ROOTMANIFEST):= FILEMODE = 0444
606N/A$(ROOTSVCMETHOD):= FILEMODE = 0555
891N/A$(ROOTVARSMBDLL):= FILEMODE = 0755
891N/A
606N/ALINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2
606N/A
159N/ACFLAGS += $(CCVERBOSE)
705N/ACPPFLAGS += -D_REENTRANT
910N/ACPPFLAGS += -Dsyslog=smb_syslog
159N/A$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
159N/A
159N/AC99MODE = -xc99=%all
935N/AC99LMODE = -Xc99=%all
935N/A
935N/ALDLIBS += -L$(ROOT)/usr/lib/smbsrv -lmlsvc -lmlrpc -lsmbns -lsmb \
705N/A -lzfs -lbsm -lsocket -lnsl -lscf -lumem -lcmdutils
935N/ALDFLAGS += -R/usr/lib/smbsrv
935N/A
935N/A$(ENABLE_SMB_PRINTING) CPPFLAGS += -DHAVE_CUPS
935N/A
935N/AROOTSMBDDIR = $(ROOTLIB)/smbsrv
935N/AROOTSMBDFILE = $(PROG:%=$(ROOTSMBDDIR)/%)
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)