xref: /titanic_51/usr/src/lib/smbsrv/libsmb/Makefile.com (revision 12b65585e720714b31036daaa2b30eb76014048e)
1da6c28aaSamw#
2da6c28aaSamw# CDDL HEADER START
3da6c28aaSamw#
4da6c28aaSamw# The contents of this file are subject to the terms of the
5da6c28aaSamw# Common Development and Distribution License (the "License").
6da6c28aaSamw# You may not use this file except in compliance with the License.
7da6c28aaSamw#
8da6c28aaSamw# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9da6c28aaSamw# or http://www.opensolaris.org/os/licensing.
10da6c28aaSamw# See the License for the specific language governing permissions
11da6c28aaSamw# and limitations under the License.
12da6c28aaSamw#
13da6c28aaSamw# When distributing Covered Code, include this CDDL HEADER in each
14da6c28aaSamw# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15da6c28aaSamw# If applicable, add the following below this CDDL HEADER, with the
16da6c28aaSamw# fields enclosed by brackets "[]" replaced with your own identifying
17da6c28aaSamw# information: Portions Copyright [yyyy] [name of copyright owner]
18da6c28aaSamw#
19da6c28aaSamw# CDDL HEADER END
20da6c28aaSamw#
21da6c28aaSamw#
22148c5f43SAlan Wright# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
23b819cea2SGordon Ross# Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
24da6c28aaSamw#
25da6c28aaSamw
26da6c28aaSamwLIBRARY= libsmb.a
27da6c28aaSamwVERS= .1
28da6c28aaSamw
29da6c28aaSamwOBJS_SHARED = 			\
309fb67ea3Safshin salek ardakani - Sun Microsystems - Irvine United States	smb_door_legacy.o 	\
317f667e74Sjose borrego	smb_inet.o		\
32da6c28aaSamw	smb_msgbuf.o		\
33da6c28aaSamw	smb_native.o		\
34da6c28aaSamw	smb_oem.o		\
35da6c28aaSamw	smb_sid.o		\
36da6c28aaSamw	smb_string.o 		\
37da6c28aaSamw	smb_token.o		\
38da6c28aaSamw	smb_token_xdr.o		\
39da6c28aaSamw	smb_utf8.o		\
409fb67ea3Safshin salek ardakani - Sun Microsystems - Irvine United States	smb_xdr.o
41da6c28aaSamw
42da6c28aaSamwOBJS_COMMON = 			\
4329bd2886SAlan Wright	smb_acl.o		\
44da6c28aaSamw	smb_auth.o 		\
459fb67ea3Safshin salek ardakani - Sun Microsystems - Irvine United States	smb_cache.o		\
46da6c28aaSamw	smb_cfg.o		\
47da6c28aaSamw	smb_crypt.o		\
48da6c28aaSamw	smb_ctxbuf.o		\
49da6c28aaSamw	smb_domain.o		\
50da6c28aaSamw	smb_door_encdec.o	\
51da6c28aaSamw	smb_doorclnt.o		\
52da6c28aaSamw	smb_ht.o		\
53da6c28aaSamw	smb_idmap.o		\
54da6c28aaSamw	smb_info.o		\
5529bd2886SAlan Wright	smb_kmod.o		\
56dc20a302Sas200622	smb_lgrp.o		\
577b59d02dSjb150015	smb_nic.o		\
58da6c28aaSamw	smb_pwdutil.o		\
59da6c28aaSamw	smb_privilege.o		\
609fb67ea3Safshin salek ardakani - Sun Microsystems - Irvine United States	smb_reparse.o		\
617f667e74Sjose borrego	smb_sam.o		\
62da6c28aaSamw	smb_scfutil.o		\
6329bd2886SAlan Wright	smb_sd.o		\
64148c5f43SAlan Wright	smb_status_tbl.o	\
65b819cea2SGordon Ross	smb_syslog.o		\
66da6c28aaSamw	smb_util.o		\
67da6c28aaSamw	smb_wksids.o
68da6c28aaSamw
69da6c28aaSamwOBJECTS=	$(OBJS_COMMON) $(OBJS_SHARED)
70da6c28aaSamw
71da6c28aaSamwinclude ../../../Makefile.lib
72da6c28aaSamwinclude ../../Makefile.lib
73da6c28aaSamw
74da6c28aaSamwINCS += -I$(SRC)/common/smbsrv
75*12b65585SGordon RossINCS += -I$(SRC)/lib/libsmbfs/smb
76da6c28aaSamw
77a7fe1d5bSAndy StormontLINTCHECKFLAGS += -erroff=E_INCONS_ARG_DECL2
78b819cea2SGordon RossLINTCHECKFLAGS += -erroff=E_BAD_FORMAT_STR2
79a7fe1d5bSAndy Stormont
8055bf511dSas200622LDLIBS +=	$(MACH_LDLIBS)
81*12b65585SGordon Ross# perfer to keep libs ordered by dependence
821ed6b69aSGordon RossLDLIBS +=	-lscf -lmd -luuid -lpkcs11 -lcryptoutil
83*12b65585SGordon RossLDLIBS +=	-lsec -lidmap -lreparse -lcmdutils -lavl
84*12b65585SGordon RossLDLIBS +=	-lnvpair -lresolv -lsocket -lnsl -lc
85da6c28aaSamwCPPFLAGS +=	$(INCS) -D_REENTRANT
86b819cea2SGordon RossCPPFLAGS +=	-Dsyslog=smb_syslog
877014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-uninitialized
887014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-char-subscripts
897014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-switch
90da6c28aaSamw
91da6c28aaSamwSRCS=   $(OBJS_COMMON:%.o=$(SRCDIR)/%.c)	\
92da6c28aaSamw	$(OBJS_SHARED:%.o=$(SRC)/common/smbsrv/%.c)
93da6c28aaSamw
94da6c28aaSamwinclude ../../Makefile.targ
95da6c28aaSamwinclude ../../../Makefile.targ
96