xref: /titanic_52/usr/src/lib/libsmbfs/Makefile.com (revision 4eab410fb63816fe2c0ad0fd18b4c948613f6616)
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#
23# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
27#
28
29#
30# lib/libsmbfs/Makefile.com
31#
32
33LIBRARY=	libsmbfs.a
34VERS=		.1
35
36# leaving out: kiconv.o
37
38OBJ_LIB=\
39	acl_api.o \
40	acl_print.o \
41	charsets.o \
42	cfopt.o \
43	connect.o \
44	crypt.o \
45	ctx.o \
46	derparse.o \
47	file.o \
48	findvc.o \
49	getaddr.o \
50	iod_cl.o \
51	iod_wk.o \
52	keychain.o \
53	krb5ssp.o \
54	mbuf.o \
55	nb.o \
56	nb_name.o \
57	nb_net.o \
58	nb_ssn.o \
59	nbns_rq.o \
60	negprot.o \
61	netshareenum.o \
62	newvc.o \
63	nls.o \
64	ntlm.o \
65	ntlmssp.o \
66	print.o \
67	rap.o \
68	rcfile.o \
69	rq.o \
70	signing.o \
71	spnego.o \
72	spnegoparse.o \
73	ssnsetup.o \
74	ssp.o \
75	subr.o \
76	ui-sun.o \
77	utf_str.o
78
79OBJ_CMN= smbfs_ntacl.o
80
81OBJECTS= $(OBJ_LIB) $(OBJ_CMN)
82
83include $(SRC)/lib/Makefile.lib
84
85LIBS =		$(DYNLIB) $(LINTLIB)
86
87SRCDIR=		../smb
88CMNDIR=		$(SRC)/common/smbclnt
89
90SRCS=		$(OBJ_LIB:%.o=$(SRCDIR)/%.c) \
91		$(OBJ_CMN:%.o=$(CMNDIR)/%.c)
92
93$(LINTLIB) :=	SRCS = $(SRCDIR)/$(LINTSRC)
94
95C99MODE=	$(C99_ENABLE)
96
97LDLIBS += -lsocket -lnsl -lc -lmd -lpkcs11 -lkrb5 -lsec -lidmap
98
99# normal warnings...
100CFLAGS	+=	$(CCVERBOSE)
101
102CERRWARN +=	-_gcc=-Wno-uninitialized
103CERRWARN +=	-_gcc=-Wno-unused-variable
104
105CPPFLAGS += -D__EXTENSIONS__ -D_REENTRANT -DMIA \
106	-I$(SRCDIR) -I.. -I../netsmb \
107	-I$(SRC)/uts/common \
108	-I$(SRC)/common/smbclnt
109
110# Debugging
111${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG
112
113# uncomment these for dbx debugging
114#COPTFLAG = -g
115#CTF_FLAGS =
116#CTFCONVERT_O=
117#CTFMERGE_LIB=
118
119# Filter out the less important lint.
120# See lgrep.awk
121LGREP =	nawk -f $(SRCDIR)/lgrep.awk
122LTAIL	+=	2>&1 | $(LGREP)
123
124all:	$(LIBS)
125
126lint:	lintcheck_t
127
128include ../../Makefile.targ
129
130lintcheck_t: $$(SRCS)
131	$(LINT.c) $(LINTCHECKFLAGS) $(SRCS) $(LDLIBS) $(LTAIL)
132
133objs/%.o pics/%.o: $(CMNDIR)/%.c
134	$(COMPILE.c) -o $@ $<
135	$(POST_PROCESS_O)
136
137.KEEP_STATE:
138