xref: /titanic_41/usr/src/lib/libsmbfs/Makefile.com (revision b7d3956b92a285d8dac2c7f5f7e28d2ef5347ef8)
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 2008 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27# lib/libsmbfs/Makefile.com
28
29LIBRARY=	libsmbfs.a
30VERS=		.1
31
32# leaving out: kiconv.o
33
34OBJECTS=\
35	acl_api.o \
36	acl_conv.o \
37	acl_print.o \
38	charsets.o \
39	cfopt.o \
40	ctx.o \
41	derparse.o \
42	file.o \
43	keychain.o \
44	mbuf.o \
45	nb.o \
46	nb_name.o \
47	nb_net.o \
48	nbns_rq.o \
49	netshareenum.o \
50	nls.o \
51	print.o \
52	rap.o \
53	rcfile.o \
54	rq.o \
55	spnego.o \
56	spnegoparse.o \
57	subr.o \
58	ui-sun.o
59
60include $(SRC)/lib/Makefile.lib
61
62LIBS =		$(DYNLIB) $(LINTLIB)
63
64SRCDIR=		../smb
65
66SRCS=		$(OBJECTS:%.o=../smb/%.c)
67
68$(LINTLIB) :=	SRCS = $(SRCDIR)/$(LINTSRC)
69
70C99MODE=	$(C99_ENABLE)
71
72LDLIBS += -lsocket -lnsl -lc -lkrb5 -lsec -lidmap
73
74# normal warnings...
75CFLAGS	+=	$(CCVERBOSE)
76
77CPPFLAGS += -D__EXTENSIONS__ -D_REENTRANT -DMIA \
78	-I$(SRCDIR) -I.. -I$(SRC)/uts/common
79
80# uncomment these if you want to use dbx
81#COPTFLAG = -g
82#CTF_FLAGS =
83#CTFCONVERT_O=
84#CTFMERGE_LIB=
85
86# disable some of the less important lint
87LINTCHECKFLAGS	+= -erroff=E_FUNC_ARG_UNUSED
88LINTCHECKFLAGS	+= -erroff=E_FUNC_RET_ALWAYS_IGNOR2
89LINTCHECKFLAGS	+= -erroff=E_FUNC_RET_MAYBE_IGNORED2
90LINTCHECKFLAGS	+= -erroff=E_FUNC_VAR_UNUSED
91LINTCHECKFLAGS	+= -erroff=E_STATIC_UNUSED
92LINTCHECKFLAGS	+= -erroff=E_CONSTANT_CONDITION
93LINTCHECKFLAGS	+= -erroff=E_TRUE_LOGICAL_EXPR
94
95.KEEP_STATE:
96
97all:	$(LIBS)
98
99lint:	lintcheck
100
101include ../../Makefile.targ
102