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# 26*12b65585SGordon Ross# Copyright 2013 Nexenta Systems, Inc. All rights reserved. 27*12b65585SGordon Ross# 28613a2f6bSGordon Ross 29613a2f6bSGordon Ross# 304bff34e3Sthurlow# lib/libsmbfs/Makefile.com 31613a2f6bSGordon Ross# 324bff34e3Sthurlow 334bff34e3SthurlowLIBRARY= libsmbfs.a 344bff34e3SthurlowVERS= .1 354bff34e3Sthurlow 364bff34e3Sthurlow# leaving out: kiconv.o 374bff34e3Sthurlow 3802d09e03SGordon RossOBJ_LIB=\ 397568150aSgwr acl_api.o \ 407568150aSgwr acl_print.o \ 414bff34e3Sthurlow charsets.o \ 424bff34e3Sthurlow cfopt.o \ 43613a2f6bSGordon Ross connect.o \ 44613a2f6bSGordon Ross crypt.o \ 454bff34e3Sthurlow ctx.o \ 464bff34e3Sthurlow derparse.o \ 474bff34e3Sthurlow file.o \ 48613a2f6bSGordon Ross findvc.o \ 49613a2f6bSGordon Ross getaddr.o \ 50613a2f6bSGordon Ross iod_cl.o \ 51613a2f6bSGordon Ross iod_wk.o \ 524bff34e3Sthurlow keychain.o \ 53613a2f6bSGordon Ross krb5ssp.o \ 544bff34e3Sthurlow mbuf.o \ 554bff34e3Sthurlow nb.o \ 564bff34e3Sthurlow nb_name.o \ 574bff34e3Sthurlow nb_net.o \ 58613a2f6bSGordon Ross nb_ssn.o \ 594bff34e3Sthurlow nbns_rq.o \ 60613a2f6bSGordon Ross negprot.o \ 614bff34e3Sthurlow netshareenum.o \ 62613a2f6bSGordon Ross newvc.o \ 634bff34e3Sthurlow nls.o \ 64613a2f6bSGordon Ross ntlm.o \ 65613a2f6bSGordon Ross ntlmssp.o \ 664bff34e3Sthurlow print.o \ 674bff34e3Sthurlow rap.o \ 684bff34e3Sthurlow rcfile.o \ 694bff34e3Sthurlow rq.o \ 70613a2f6bSGordon Ross signing.o \ 714bff34e3Sthurlow spnego.o \ 724bff34e3Sthurlow spnegoparse.o \ 73613a2f6bSGordon Ross ssnsetup.o \ 74613a2f6bSGordon Ross ssp.o \ 754bff34e3Sthurlow subr.o \ 769c9af259SGordon Ross ui-sun.o \ 779c9af259SGordon Ross utf_str.o 784bff34e3Sthurlow 7902d09e03SGordon RossOBJ_CMN= smbfs_ntacl.o 8002d09e03SGordon Ross 8102d09e03SGordon RossOBJECTS= $(OBJ_LIB) $(OBJ_CMN) 8202d09e03SGordon Ross 834bff34e3Sthurlowinclude $(SRC)/lib/Makefile.lib 844bff34e3Sthurlow 854bff34e3SthurlowLIBS = $(DYNLIB) $(LINTLIB) 864bff34e3Sthurlow 874bff34e3SthurlowSRCDIR= ../smb 8802d09e03SGordon RossCMNDIR= $(SRC)/common/smbclnt 894bff34e3Sthurlow 9002d09e03SGordon RossSRCS= $(OBJ_LIB:%.o=$(SRCDIR)/%.c) \ 9102d09e03SGordon Ross $(OBJ_CMN:%.o=$(CMNDIR)/%.c) 924bff34e3Sthurlow 934bff34e3Sthurlow$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) 944bff34e3Sthurlow 954bff34e3SthurlowC99MODE= $(C99_ENABLE) 964bff34e3Sthurlow 97613a2f6bSGordon RossLDLIBS += -lsocket -lnsl -lc -lmd -lpkcs11 -lkrb5 -lsec -lidmap 984bff34e3Sthurlow 994bff34e3Sthurlow# normal warnings... 1004bff34e3SthurlowCFLAGS += $(CCVERBOSE) 1014bff34e3Sthurlow 1027014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 1037014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 1047014882cSRichard Lowe 1054bff34e3SthurlowCPPFLAGS += -D__EXTENSIONS__ -D_REENTRANT -DMIA \ 106*12b65585SGordon Ross -I$(SRCDIR) -I.. -I../netsmb \ 10702d09e03SGordon Ross -I$(SRC)/uts/common \ 10802d09e03SGordon Ross -I$(SRC)/common/smbclnt 1094bff34e3Sthurlow 110613a2f6bSGordon Ross# Debugging 111613a2f6bSGordon Ross${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG 112613a2f6bSGordon Ross 113613a2f6bSGordon Ross# uncomment these for dbx debugging 1144bff34e3Sthurlow#COPTFLAG = -g 1154bff34e3Sthurlow#CTF_FLAGS = 1164bff34e3Sthurlow#CTFCONVERT_O= 1174bff34e3Sthurlow#CTFMERGE_LIB= 1184bff34e3Sthurlow 11902d09e03SGordon Ross# Filter out the less important lint. 12002d09e03SGordon Ross# See lgrep.awk 12102d09e03SGordon RossLGREP = nawk -f $(SRCDIR)/lgrep.awk 12202d09e03SGordon RossLTAIL += 2>&1 | $(LGREP) 1234bff34e3Sthurlow 1244bff34e3Sthurlowall: $(LIBS) 1254bff34e3Sthurlow 12602d09e03SGordon Rosslint: lintcheck_t 1274bff34e3Sthurlow 1284bff34e3Sthurlowinclude ../../Makefile.targ 129613a2f6bSGordon Ross 13002d09e03SGordon Rosslintcheck_t: $$(SRCS) 13102d09e03SGordon Ross $(LINT.c) $(LINTCHECKFLAGS) $(SRCS) $(LDLIBS) $(LTAIL) 13202d09e03SGordon Ross 13302d09e03SGordon Rossobjs/%.o pics/%.o: $(CMNDIR)/%.c 13402d09e03SGordon Ross $(COMPILE.c) -o $@ $< 13502d09e03SGordon Ross $(POST_PROCESS_O) 13602d09e03SGordon Ross 137613a2f6bSGordon Ross.KEEP_STATE: 138