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. 25*7b07063dSIgor Kozhukhov# Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com> 264bff34e3Sthurlow# 2712b65585SGordon Ross# Copyright 2013 Nexenta Systems, Inc. All rights reserved. 2812b65585SGordon Ross# 29613a2f6bSGordon Ross 30613a2f6bSGordon Ross# 314bff34e3Sthurlow# lib/libsmbfs/Makefile.com 32613a2f6bSGordon Ross# 334bff34e3Sthurlow 344bff34e3SthurlowLIBRARY= libsmbfs.a 354bff34e3SthurlowVERS= .1 364bff34e3Sthurlow 374bff34e3Sthurlow# leaving out: kiconv.o 384bff34e3Sthurlow 3902d09e03SGordon RossOBJ_LIB=\ 407568150aSgwr acl_api.o \ 417568150aSgwr acl_print.o \ 424bff34e3Sthurlow charsets.o \ 434bff34e3Sthurlow cfopt.o \ 44613a2f6bSGordon Ross connect.o \ 45613a2f6bSGordon Ross crypt.o \ 464bff34e3Sthurlow ctx.o \ 474bff34e3Sthurlow derparse.o \ 484bff34e3Sthurlow file.o \ 49613a2f6bSGordon Ross findvc.o \ 50613a2f6bSGordon Ross getaddr.o \ 51613a2f6bSGordon Ross iod_cl.o \ 52613a2f6bSGordon Ross iod_wk.o \ 534bff34e3Sthurlow keychain.o \ 54613a2f6bSGordon Ross krb5ssp.o \ 554bff34e3Sthurlow mbuf.o \ 564bff34e3Sthurlow nb.o \ 574bff34e3Sthurlow nb_name.o \ 584bff34e3Sthurlow nb_net.o \ 59613a2f6bSGordon Ross nb_ssn.o \ 604bff34e3Sthurlow nbns_rq.o \ 61613a2f6bSGordon Ross negprot.o \ 624bff34e3Sthurlow netshareenum.o \ 63613a2f6bSGordon Ross newvc.o \ 644bff34e3Sthurlow nls.o \ 65613a2f6bSGordon Ross ntlm.o \ 66613a2f6bSGordon Ross ntlmssp.o \ 674bff34e3Sthurlow print.o \ 684bff34e3Sthurlow rap.o \ 694bff34e3Sthurlow rcfile.o \ 704bff34e3Sthurlow rq.o \ 71613a2f6bSGordon Ross signing.o \ 724bff34e3Sthurlow spnego.o \ 734bff34e3Sthurlow spnegoparse.o \ 74613a2f6bSGordon Ross ssnsetup.o \ 75613a2f6bSGordon Ross ssp.o \ 764bff34e3Sthurlow subr.o \ 779c9af259SGordon Ross ui-sun.o \ 789c9af259SGordon Ross utf_str.o 794bff34e3Sthurlow 8002d09e03SGordon RossOBJ_CMN= smbfs_ntacl.o 8102d09e03SGordon Ross 8202d09e03SGordon RossOBJECTS= $(OBJ_LIB) $(OBJ_CMN) 8302d09e03SGordon Ross 844bff34e3Sthurlowinclude $(SRC)/lib/Makefile.lib 854bff34e3Sthurlow 864bff34e3SthurlowLIBS = $(DYNLIB) $(LINTLIB) 874bff34e3Sthurlow 884bff34e3SthurlowSRCDIR= ../smb 8902d09e03SGordon RossCMNDIR= $(SRC)/common/smbclnt 904bff34e3Sthurlow 9102d09e03SGordon RossSRCS= $(OBJ_LIB:%.o=$(SRCDIR)/%.c) \ 9202d09e03SGordon Ross $(OBJ_CMN:%.o=$(CMNDIR)/%.c) 934bff34e3Sthurlow 944bff34e3Sthurlow$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) 954bff34e3Sthurlow 964bff34e3SthurlowC99MODE= $(C99_ENABLE) 974bff34e3Sthurlow 98613a2f6bSGordon RossLDLIBS += -lsocket -lnsl -lc -lmd -lpkcs11 -lkrb5 -lsec -lidmap 994bff34e3Sthurlow 1004bff34e3Sthurlow# normal warnings... 1014bff34e3SthurlowCFLAGS += $(CCVERBOSE) 1024bff34e3Sthurlow 1037014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 1047014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 1057014882cSRichard Lowe 1064bff34e3SthurlowCPPFLAGS += -D__EXTENSIONS__ -D_REENTRANT -DMIA \ 10712b65585SGordon Ross -I$(SRCDIR) -I.. -I../netsmb \ 10802d09e03SGordon Ross -I$(SRC)/uts/common \ 10902d09e03SGordon Ross -I$(SRC)/common/smbclnt 1104bff34e3Sthurlow 111613a2f6bSGordon Ross# Debugging 112613a2f6bSGordon Ross${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG 113613a2f6bSGordon Ross 114613a2f6bSGordon Ross# uncomment these for dbx debugging 1154bff34e3Sthurlow#COPTFLAG = -g 1164bff34e3Sthurlow#CTF_FLAGS = 1174bff34e3Sthurlow#CTFCONVERT_O= 1184bff34e3Sthurlow#CTFMERGE_LIB= 1194bff34e3Sthurlow 12002d09e03SGordon Ross# Filter out the less important lint. 12102d09e03SGordon Ross# See lgrep.awk 122*7b07063dSIgor KozhukhovLGREP = $(AWK) -f $(SRCDIR)/lgrep.awk 12302d09e03SGordon RossLTAIL += 2>&1 | $(LGREP) 1244bff34e3Sthurlow 1254bff34e3Sthurlowall: $(LIBS) 1264bff34e3Sthurlow 12702d09e03SGordon Rosslint: lintcheck_t 1284bff34e3Sthurlow 1294bff34e3Sthurlowinclude ../../Makefile.targ 130613a2f6bSGordon Ross 13102d09e03SGordon Rosslintcheck_t: $$(SRCS) 13202d09e03SGordon Ross $(LINT.c) $(LINTCHECKFLAGS) $(SRCS) $(LDLIBS) $(LTAIL) 13302d09e03SGordon Ross 13402d09e03SGordon Rossobjs/%.o pics/%.o: $(CMNDIR)/%.c 13502d09e03SGordon Ross $(COMPILE.c) -o $@ $< 13602d09e03SGordon Ross $(POST_PROCESS_O) 13702d09e03SGordon Ross 138613a2f6bSGordon Ross.KEEP_STATE: 139