xref: /titanic_44/usr/src/lib/libsmbfs/Makefile.com (revision 1e4c938b57d1656808e4112127ff1dce3eba5314)
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
100CPPFLAGS += -D__EXTENSIONS__ -D_REENTRANT -DMIA \
101	-I$(SRCDIR) -I.. \
102	-I$(SRC)/uts/common \
103	-I$(SRC)/common/smbclnt
104
105# Debugging
106${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG
107
108# uncomment these for dbx debugging
109#COPTFLAG = -g
110#CTF_FLAGS =
111#CTFCONVERT_O=
112#CTFMERGE_LIB=
113
114# Filter out the less important lint.
115# See lgrep.awk
116LGREP =	nawk -f $(SRCDIR)/lgrep.awk
117LTAIL	+=	2>&1 | $(LGREP)
118
119all:	$(LIBS)
120
121lint:	lintcheck_t
122
123include ../../Makefile.targ
124
125lintcheck_t: $$(SRCS)
126	$(LINT.c) $(LINTCHECKFLAGS) $(SRCS) $(LDLIBS) $(LTAIL)
127
128objs/%.o pics/%.o: $(CMNDIR)/%.c
129	$(COMPILE.c) -o $@ $<
130	$(POST_PROCESS_O)
131
132.KEEP_STATE:
133