xref: /titanic_50/usr/src/lib/smbsrv/libmlsvc/Makefile.com (revision 356f72340a69936724c69f2f87fffa6f5887f885)
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 2014 Nexenta Systems, Inc.  All rights reserved.
24#
25
26LIBRARY =	libmlsvc.a
27VERS =		.1
28
29OBJS_COMMON =		\
30	dfs.o		\
31	dssetup_clnt.o	\
32	dssetup_svc.o	\
33	eventlog_svc.o	\
34	eventlog_log.o	\
35	lsalib.o	\
36	lsar_clnt.o	\
37	lsar_svc.o	\
38	mlsvc_client.o	\
39	mlsvc_domain.o	\
40	mlsvc_init.o	\
41	mlsvc_netr.o	\
42	mlsvc_util.o	\
43	msgsvc_svc.o	\
44	netdfs.o	\
45	netr_auth.o	\
46	netr_logon.o	\
47	samlib.o	\
48	samr_clnt.o	\
49	samr_svc.o	\
50	smb_autohome.o	\
51	smb_logon.o	\
52	smb_share.o	\
53	smb_quota.o	\
54	smbrdr_glue.o	\
55	spoolss_svc.o	\
56	srvsvc_clnt.o	\
57	srvsvc_sd.o	\
58	srvsvc_svc.o	\
59	svcctl_scm.o	\
60	svcctl_svc.o	\
61	winreg_svc.o	\
62	wkssvc_svc.o
63
64# Automatically generated from .ndl files
65NDLLIST =		\
66	dssetup		\
67	eventlog	\
68	lsarpc		\
69	msgsvc		\
70	netdfs		\
71	netlogon	\
72	samrpc		\
73	spoolss		\
74	srvsvc		\
75	svcctl		\
76	winreg
77
78OBJECTS=        $(OBJS_COMMON) $(NDLLIST:%=%_ndr.o)
79
80include ../../../Makefile.lib
81include ../../Makefile.lib
82
83INCS += -I$(SRC)/common/smbsrv
84
85LDLIBS +=	$(MACH_LDLIBS)
86LDLIBS += -lmlrpc -lsmb -lsmbns -lshare -lsmbfs -lnsl -lpkcs11 \
87	-lscf -lcmdutils -lsec -lavl -lnvpair -luutil -luuid -lgen -lzfs -lc
88
89CPPFLAGS += $(INCS) -D_REENTRANT
90CPPFLAGS += -Dsyslog=smb_syslog
91$(ENABLE_SMB_PRINTING) CPPFLAGS += -DHAVE_CUPS
92
93CERRWARN += -_gcc=-Wno-unused-function
94CERRWARN += -_gcc=-Wno-uninitialized
95
96SRCS=   $(OBJS_COMMON:%.o=$(SRCDIR)/%.c)
97
98include ../../Makefile.targ
99include ../../../Makefile.targ
100