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