Makefile revision c7e79765a5bdcd4e6f05ea8effc8c7ce07e8a37a
293N/A#
293N/A# CDDL HEADER START
293N/A#
293N/A# The contents of this file are subject to the terms of the
293N/A# Common Development and Distribution License (the "License").
293N/A# You may not use this file except in compliance with the License.
293N/A#
293N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
293N/A# or http://www.opensolaris.org/os/licensing.
293N/A# See the License for the specific language governing permissions
293N/A# and limitations under the License.
293N/A#
293N/A# When distributing Covered Code, include this CDDL HEADER in each
293N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
293N/A# If applicable, add the following below this CDDL HEADER, with the
293N/A# fields enclosed by brackets "[]" replaced with your own identifying
293N/A# information: Portions Copyright [yyyy] [name of copyright owner]
293N/A#
293N/A# CDDL HEADER END
293N/A#
293N/A#
293N/A# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
716N/A# Copyright 2014 Nexenta Systems, Inc. All rights reserved.
293N/A#
293N/A
293N/A
293N/APROG= smbd
293N/AOBJS= \
293N/A smbd_authsvc.o \
293N/A smbd_doorsvc.o \
819N/A smbd_join.o \
293N/A smbd_krb5lookup.o \
293N/A smbd_krb5ssp.o \
293N/A smbd_logon.o \
844N/A smbd_main.o \
844N/A smbd_nicmon.o \
293N/A smbd_ntlmssp.o \
293N/A smbd_pipesvc.o \
293N/A smbd_share_doorsvc.o \
293N/A smbd_spool.o \
293N/A smbd_syslog.o \
293N/A smbd_vss.o
293N/A
293N/ASRCS= $(OBJS:%.o=%.c)
293N/A
293N/Ainclude ../../Makefile.cmd
293N/A
293N/AMANIFEST= server.xml
293N/ASVCMETHOD= svc-smbd
293N/ALOGDLL= eventlog.dll
293N/A
293N/AROOTMANIFESTDIR = $(ROOTSVCSMB)
293N/AROOTVARSMBDLLDIR = $(ROOTVARSMB)/cvol/windows/system32
293N/AROOTVARSMBDLL= $(LOGDLL:%=$(ROOTVARSMBDLLDIR)/%)
293N/A
293N/A$(ROOTMANIFEST):= FILEMODE = 0444
716N/A$(ROOTSVCMETHOD):= FILEMODE = 0555
293N/A$(ROOTVARSMBDLL):= FILEMODE = 0755
293N/A
293N/ALINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2
293N/ALINTFLAGS += -xerroff=E_NAME_USED_NOT_DEF2
293N/A
293N/ACFLAGS += $(CCVERBOSE)
293N/ACPPFLAGS += -D_IPP_PRIVATE_STRUCTURES
293N/ACPPFLAGS += -D_REENTRANT
293N/ACPPFLAGS += -Dsyslog=smb_syslog
293N/A$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
293N/A
# Should not have to do this, but the Kerberos includes are a mess.
CPPFLAGS += -I $(ROOT)/usr/include/kerberosv5
C99MODE = -xc99=%all
C99LMODE = -Xc99=%all
LDFLAGS += -R/usr/lib/smbsrv
LDLIBS += -L$(ROOT)/usr/lib/smbsrv
# prefer to keep libs ordered by dependence
LDLIBS += -lmlsvc -lmlrpc -lsmbns -lsmb -lsmbfs -lgss
LDLIBS += -lzfs -lbsm -lscf -lcmdutils -lsocket -lnsl -lumem
$(PROG) := LDLIBS += -lkrb5
$(ENABLE_SMB_PRINTING) CPPFLAGS += -DHAVE_CUPS
ROOTSMBDDIR = $(ROOTLIB)/smbsrv
ROOTSMBDFILE = $(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)
.KEEP_STATE: