xref: /titanic_50/usr/src/lib/smbsrv/libmlsvc/Makefile.com (revision 2ef9abdc6ea9bad985430325b12b90938a8cd18f)
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 2009 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25#
26
27LIBRARY =	libmlsvc.a
28VERS =		.1
29
30OBJS_COMMON =		\
31	dssetup_clnt.o	\
32	dssetup_svc.o	\
33	eventlog_svc.o	\
34	eventlog_syslog.o	\
35	lsalib.o	\
36	lsar_lookup.o	\
37	lsar_open.o	\
38	mlsvc_client.o	\
39	mlsvc_domain.o	\
40	mlsvc_init.o	\
41	mlsvc_lsa.o	\
42	mlsvc_netr.o	\
43	mlsvc_sam.o	\
44	mlsvc_util.o	\
45	mlsvc_wkssvc.o	\
46	msgsvc_svc.o	\
47	netdfs.o	\
48	netr_auth.o	\
49	netr_logon.o	\
50	samlib.o	\
51	samr_open.o	\
52	samr_lookup.o	\
53	smb_autohome.o	\
54	smb_logon.o	\
55	smb_share.o	\
56	spoolss_svc.o	\
57	srvsvc_clnt.o	\
58	srvsvc_svc.o	\
59	svcctl_scm.o	\
60	svcctl_svc.o	\
61	winreg_svc.o
62
63# Automatically generated from .ndl files
64NDLLIST =		\
65	dssetup		\
66	eventlog	\
67	lsarpc		\
68	msgsvc		\
69	netdfs		\
70	netlogon	\
71	samrpc		\
72	spoolss		\
73	srvsvc		\
74	svcctl		\
75	winreg
76
77OBJECTS=        $(OBJS_COMMON) $(NDLLIST:%=%_ndr.o)
78
79include ../../../Makefile.lib
80include ../../Makefile.lib
81
82INCS += -I$(SRC)/common/smbsrv
83
84LDLIBS +=	$(MACH_LDLIBS)
85LDLIBS += -lmlrpc -lsmbrdr -lsmb -lsmbns -lshare -lresolv -lnsl -lpkcs11 -lscf	\
86	-luutil -lc -lzfs
87
88CPPFLAGS += $(INCS) -D_REENTRANT
89
90SRCS=   $(OBJS_COMMON:%.o=$(SRCDIR)/%.c)        	\
91        $(OBJS_SHARED:%.o=$(SRC)/common/smbsrv/%.c)
92
93include ../../Makefile.targ
94include ../../../Makefile.targ
95