xref: /titanic_44/usr/src/lib/libsmbfs/Makefile.com (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
14bff34e3Sthurlow#
24bff34e3Sthurlow# CDDL HEADER START
34bff34e3Sthurlow#
44bff34e3Sthurlow# The contents of this file are subject to the terms of the
54bff34e3Sthurlow# Common Development and Distribution License (the "License").
64bff34e3Sthurlow# You may not use this file except in compliance with the License.
74bff34e3Sthurlow#
84bff34e3Sthurlow# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
94bff34e3Sthurlow# or http://www.opensolaris.org/os/licensing.
104bff34e3Sthurlow# See the License for the specific language governing permissions
114bff34e3Sthurlow# and limitations under the License.
124bff34e3Sthurlow#
134bff34e3Sthurlow# When distributing Covered Code, include this CDDL HEADER in each
144bff34e3Sthurlow# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
154bff34e3Sthurlow# If applicable, add the following below this CDDL HEADER, with the
164bff34e3Sthurlow# fields enclosed by brackets "[]" replaced with your own identifying
174bff34e3Sthurlow# information: Portions Copyright [yyyy] [name of copyright owner]
184bff34e3Sthurlow#
194bff34e3Sthurlow# CDDL HEADER END
204bff34e3Sthurlow#
21613a2f6bSGordon Ross
224bff34e3Sthurlow#
23613a2f6bSGordon Ross# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
244bff34e3Sthurlow# Use is subject to license terms.
254bff34e3Sthurlow#
26613a2f6bSGordon Ross
27613a2f6bSGordon Ross#
284bff34e3Sthurlow# lib/libsmbfs/Makefile.com
29613a2f6bSGordon Ross#
304bff34e3Sthurlow
314bff34e3SthurlowLIBRARY=	libsmbfs.a
324bff34e3SthurlowVERS=		.1
334bff34e3Sthurlow
344bff34e3Sthurlow# leaving out: kiconv.o
354bff34e3Sthurlow
3602d09e03SGordon RossOBJ_LIB=\
377568150aSgwr	acl_api.o \
387568150aSgwr	acl_print.o \
394bff34e3Sthurlow	charsets.o \
404bff34e3Sthurlow	cfopt.o \
41613a2f6bSGordon Ross	connect.o \
42613a2f6bSGordon Ross	crypt.o \
434bff34e3Sthurlow	ctx.o \
444bff34e3Sthurlow	derparse.o \
454bff34e3Sthurlow	file.o \
46613a2f6bSGordon Ross	findvc.o \
47613a2f6bSGordon Ross	getaddr.o \
48613a2f6bSGordon Ross	iod_cl.o \
49613a2f6bSGordon Ross	iod_wk.o \
504bff34e3Sthurlow	keychain.o \
51613a2f6bSGordon Ross	krb5ssp.o \
524bff34e3Sthurlow	mbuf.o \
534bff34e3Sthurlow	nb.o \
544bff34e3Sthurlow	nb_name.o \
554bff34e3Sthurlow	nb_net.o \
56613a2f6bSGordon Ross	nb_ssn.o \
574bff34e3Sthurlow	nbns_rq.o \
58613a2f6bSGordon Ross	negprot.o \
594bff34e3Sthurlow	netshareenum.o \
60613a2f6bSGordon Ross	newvc.o \
614bff34e3Sthurlow	nls.o \
62613a2f6bSGordon Ross	ntlm.o \
63613a2f6bSGordon Ross	ntlmssp.o \
644bff34e3Sthurlow	print.o \
654bff34e3Sthurlow	rap.o \
664bff34e3Sthurlow	rcfile.o \
674bff34e3Sthurlow	rq.o \
68613a2f6bSGordon Ross	signing.o \
694bff34e3Sthurlow	spnego.o \
704bff34e3Sthurlow	spnegoparse.o \
71613a2f6bSGordon Ross	ssnsetup.o \
72613a2f6bSGordon Ross	ssp.o \
734bff34e3Sthurlow	subr.o \
749c9af259SGordon Ross	ui-sun.o \
759c9af259SGordon Ross	utf_str.o
764bff34e3Sthurlow
7702d09e03SGordon RossOBJ_CMN= smbfs_ntacl.o
7802d09e03SGordon Ross
7902d09e03SGordon RossOBJECTS= $(OBJ_LIB) $(OBJ_CMN)
8002d09e03SGordon Ross
814bff34e3Sthurlowinclude $(SRC)/lib/Makefile.lib
824bff34e3Sthurlow
834bff34e3SthurlowLIBS =		$(DYNLIB) $(LINTLIB)
844bff34e3Sthurlow
854bff34e3SthurlowSRCDIR=		../smb
8602d09e03SGordon RossCMNDIR=		$(SRC)/common/smbclnt
874bff34e3Sthurlow
8802d09e03SGordon RossSRCS=		$(OBJ_LIB:%.o=$(SRCDIR)/%.c) \
8902d09e03SGordon Ross		$(OBJ_CMN:%.o=$(CMNDIR)/%.c)
904bff34e3Sthurlow
914bff34e3Sthurlow$(LINTLIB) :=	SRCS = $(SRCDIR)/$(LINTSRC)
924bff34e3Sthurlow
934bff34e3SthurlowC99MODE=	$(C99_ENABLE)
944bff34e3Sthurlow
95613a2f6bSGordon RossLDLIBS += -lsocket -lnsl -lc -lmd -lpkcs11 -lkrb5 -lsec -lidmap
964bff34e3Sthurlow
974bff34e3Sthurlow# normal warnings...
984bff34e3SthurlowCFLAGS	+=	$(CCVERBOSE)
994bff34e3Sthurlow
100*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-uninitialized
101*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-variable
102*7014882cSRichard Lowe
1034bff34e3SthurlowCPPFLAGS += -D__EXTENSIONS__ -D_REENTRANT -DMIA \
10402d09e03SGordon Ross	-I$(SRCDIR) -I.. \
10502d09e03SGordon Ross	-I$(SRC)/uts/common \
10602d09e03SGordon Ross	-I$(SRC)/common/smbclnt
1074bff34e3Sthurlow
108613a2f6bSGordon Ross# Debugging
109613a2f6bSGordon Ross${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG
110613a2f6bSGordon Ross
111613a2f6bSGordon Ross# uncomment these for dbx debugging
1124bff34e3Sthurlow#COPTFLAG = -g
1134bff34e3Sthurlow#CTF_FLAGS =
1144bff34e3Sthurlow#CTFCONVERT_O=
1154bff34e3Sthurlow#CTFMERGE_LIB=
1164bff34e3Sthurlow
11702d09e03SGordon Ross# Filter out the less important lint.
11802d09e03SGordon Ross# See lgrep.awk
11902d09e03SGordon RossLGREP =	nawk -f $(SRCDIR)/lgrep.awk
12002d09e03SGordon RossLTAIL	+=	2>&1 | $(LGREP)
1214bff34e3Sthurlow
1224bff34e3Sthurlowall:	$(LIBS)
1234bff34e3Sthurlow
12402d09e03SGordon Rosslint:	lintcheck_t
1254bff34e3Sthurlow
1264bff34e3Sthurlowinclude ../../Makefile.targ
127613a2f6bSGordon Ross
12802d09e03SGordon Rosslintcheck_t: $$(SRCS)
12902d09e03SGordon Ross	$(LINT.c) $(LINTCHECKFLAGS) $(SRCS) $(LDLIBS) $(LTAIL)
13002d09e03SGordon Ross
13102d09e03SGordon Rossobjs/%.o pics/%.o: $(CMNDIR)/%.c
13202d09e03SGordon Ross	$(COMPILE.c) -o $@ $<
13302d09e03SGordon Ross	$(POST_PROCESS_O)
13402d09e03SGordon Ross
135613a2f6bSGordon Ross.KEEP_STATE:
136