xref: /titanic_53/usr/src/lib/libsmbfs/Makefile.com (revision 4bff34e37def8a90f9194d81bc345c52ba20086a)
1*4bff34e3Sthurlow#
2*4bff34e3Sthurlow# CDDL HEADER START
3*4bff34e3Sthurlow#
4*4bff34e3Sthurlow# The contents of this file are subject to the terms of the
5*4bff34e3Sthurlow# Common Development and Distribution License (the "License").
6*4bff34e3Sthurlow# You may not use this file except in compliance with the License.
7*4bff34e3Sthurlow#
8*4bff34e3Sthurlow# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*4bff34e3Sthurlow# or http://www.opensolaris.org/os/licensing.
10*4bff34e3Sthurlow# See the License for the specific language governing permissions
11*4bff34e3Sthurlow# and limitations under the License.
12*4bff34e3Sthurlow#
13*4bff34e3Sthurlow# When distributing Covered Code, include this CDDL HEADER in each
14*4bff34e3Sthurlow# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*4bff34e3Sthurlow# If applicable, add the following below this CDDL HEADER, with the
16*4bff34e3Sthurlow# fields enclosed by brackets "[]" replaced with your own identifying
17*4bff34e3Sthurlow# information: Portions Copyright [yyyy] [name of copyright owner]
18*4bff34e3Sthurlow#
19*4bff34e3Sthurlow# CDDL HEADER END
20*4bff34e3Sthurlow#
21*4bff34e3Sthurlow#
22*4bff34e3Sthurlow# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23*4bff34e3Sthurlow# Use is subject to license terms.
24*4bff34e3Sthurlow#
25*4bff34e3Sthurlow# ident	"%Z%%M%	%I%	%E% SMI"
26*4bff34e3Sthurlow#
27*4bff34e3Sthurlow# lib/libsmbfs/Makefile.com
28*4bff34e3Sthurlow
29*4bff34e3SthurlowLIBRARY=	libsmbfs.a
30*4bff34e3SthurlowVERS=		.1
31*4bff34e3Sthurlow
32*4bff34e3Sthurlow# leaving out: kiconv.o
33*4bff34e3Sthurlow
34*4bff34e3SthurlowOBJECTS=\
35*4bff34e3Sthurlow	charsets.o \
36*4bff34e3Sthurlow	cfopt.o \
37*4bff34e3Sthurlow	ctx.o \
38*4bff34e3Sthurlow	derparse.o \
39*4bff34e3Sthurlow	file.o \
40*4bff34e3Sthurlow	keychain.o \
41*4bff34e3Sthurlow	mbuf.o \
42*4bff34e3Sthurlow	nb.o \
43*4bff34e3Sthurlow	nb_name.o \
44*4bff34e3Sthurlow	nb_net.o \
45*4bff34e3Sthurlow	nbns_rq.o \
46*4bff34e3Sthurlow	netshareenum.o \
47*4bff34e3Sthurlow	nls.o \
48*4bff34e3Sthurlow	print.o \
49*4bff34e3Sthurlow	rap.o \
50*4bff34e3Sthurlow	rcfile.o \
51*4bff34e3Sthurlow	rq.o \
52*4bff34e3Sthurlow	spnego.o \
53*4bff34e3Sthurlow	spnegoparse.o \
54*4bff34e3Sthurlow	subr.o \
55*4bff34e3Sthurlow	ui-sun.o
56*4bff34e3Sthurlow
57*4bff34e3Sthurlowinclude $(SRC)/lib/Makefile.lib
58*4bff34e3Sthurlow
59*4bff34e3SthurlowLIBS =		$(DYNLIB) $(LINTLIB)
60*4bff34e3Sthurlow
61*4bff34e3SthurlowSRCDIR=		../smb
62*4bff34e3Sthurlow
63*4bff34e3SthurlowSRCS=		$(OBJECTS:%.o=../smb/%.c)
64*4bff34e3Sthurlow
65*4bff34e3Sthurlow$(LINTLIB) :=	SRCS = $(SRCDIR)/$(LINTSRC)
66*4bff34e3Sthurlow
67*4bff34e3SthurlowC99MODE=	$(C99_ENABLE)
68*4bff34e3Sthurlow
69*4bff34e3SthurlowLDLIBS += -lsocket -lnsl -lc -lkrb5
70*4bff34e3Sthurlow
71*4bff34e3Sthurlow# normal warnings...
72*4bff34e3SthurlowCFLAGS	+=	$(CCVERBOSE)
73*4bff34e3Sthurlow
74*4bff34e3SthurlowCPPFLAGS += -D__EXTENSIONS__ -D_REENTRANT -DMIA \
75*4bff34e3Sthurlow	-I$(SRCDIR) -I.. -I$(SRC)/uts/common
76*4bff34e3Sthurlow
77*4bff34e3Sthurlow# uncomment these if you want to use dbx
78*4bff34e3Sthurlow#COPTFLAG = -g
79*4bff34e3Sthurlow#CTF_FLAGS =
80*4bff34e3Sthurlow#CTFCONVERT_O=
81*4bff34e3Sthurlow#CTFMERGE_LIB=
82*4bff34e3Sthurlow
83*4bff34e3Sthurlow# disable some of the less important lint
84*4bff34e3SthurlowLINTCHECKFLAGS	+= -erroff=E_FUNC_ARG_UNUSED
85*4bff34e3SthurlowLINTCHECKFLAGS	+= -erroff=E_FUNC_RET_ALWAYS_IGNOR2
86*4bff34e3SthurlowLINTCHECKFLAGS	+= -erroff=E_FUNC_RET_MAYBE_IGNORED2
87*4bff34e3SthurlowLINTCHECKFLAGS	+= -erroff=E_FUNC_VAR_UNUSED
88*4bff34e3SthurlowLINTCHECKFLAGS	+= -erroff=E_STATIC_UNUSED
89*4bff34e3SthurlowLINTCHECKFLAGS	+= -erroff=E_CONSTANT_CONDITION
90*4bff34e3SthurlowLINTCHECKFLAGS	+= -erroff=E_TRUE_LOGICAL_EXPR
91*4bff34e3Sthurlow
92*4bff34e3Sthurlow.KEEP_STATE:
93*4bff34e3Sthurlow
94*4bff34e3Sthurlowall:	$(LIBS)
95*4bff34e3Sthurlow
96*4bff34e3Sthurlowlint:	lintcheck
97*4bff34e3Sthurlow
98*4bff34e3Sthurlowinclude ../../Makefile.targ
99