1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21# 22# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. 23# Copyright 2020 Tintri by DDN, Inc. All rights reserved. 24# 25# Copyright (c) 2018, Joyent, Inc. 26 27LIBRARY = libmlsvc.a 28VERS = .1 29 30OBJS_COMMON = \ 31 dfs.o \ 32 dssetup_clnt.o \ 33 dssetup_svc.o \ 34 eventlog_svc.o \ 35 eventlog_log.o \ 36 lsalib.o \ 37 lsar_clnt.o \ 38 lsar_svc.o \ 39 mlsvc_client.o \ 40 mlsvc_domain.o \ 41 mlsvc_init.o \ 42 mlsvc_netr.o \ 43 mlsvc_util.o \ 44 msgsvc_svc.o \ 45 netdfs.o \ 46 netr_auth.o \ 47 netr_logon.o \ 48 netr_ssp.o \ 49 samlib.o \ 50 samr_clnt.o \ 51 samr_svc.o \ 52 smb_autohome.o \ 53 smb_logon.o \ 54 smb_share.o \ 55 smb_quota.o \ 56 smbrdr_glue.o \ 57 spoolss_svc.o \ 58 srvsvc_clnt.o \ 59 srvsvc_sd.o \ 60 srvsvc_svc.o \ 61 svcctl_scm.o \ 62 svcctl_svc.o \ 63 winreg_svc.o \ 64 wkssvc_svc.o 65 66# Automatically generated from .ndl files 67NDLLIST = \ 68 dssetup \ 69 eventlog \ 70 lsarpc \ 71 msgsvc \ 72 netdfs \ 73 netlogon \ 74 samrpc \ 75 spoolss \ 76 srvsvc \ 77 svcctl \ 78 winreg 79 80OBJECTS= $(OBJS_COMMON) $(NDLLIST:%=%_ndr.o) 81 82include ../../../Makefile.lib 83include ../../Makefile.lib 84 85INCS += -I$(SRC)/common/smbsrv 86INCS += -I$(SRC)/uts/common/smbsrv/ndl 87 88LDLIBS += $(MACH_LDLIBS) 89LDLIBS += -lmlrpc -lsmb -lsmbns -lshare -lsmbfs -lnsl -lpkcs11 -lmd \ 90 -lscf -lcmdutils -lsec -lavl -lnvpair -luutil -luuid -lgen -lzfs \ 91 -lresolv -lc 92 93CPPFLAGS += $(INCS) -D_REENTRANT 94CPPFLAGS += -Dsyslog=smb_syslog 95$(ENABLE_SMB_PRINTING) CPPFLAGS += -DHAVE_CUPS 96 97CERRWARN += -_gcc=-Wno-unused-function 98CERRWARN += $(CNOWARN_UNINIT) 99 100# not linted 101SMATCH=off 102 103 104SRCS= $(OBJS_COMMON:%.o=$(SRCDIR)/%.c) 105 106include ../../Makefile.targ 107include ../../../Makefile.targ 108