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. 257b07063dSIgor Kozhukhov# Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com> 26613a2f6bSGordon Ross# 2740c0e231SGordon Ross# Copyright 2018 Nexenta Systems, Inc. All rights reserved. 2812b65585SGordon Ross# 2905ede3dbSJohn Levon# Copyright (c) 2018, Joyent, Inc. 30613a2f6bSGordon Ross 314bff34e3Sthurlow# 324bff34e3Sthurlow# lib/libsmbfs/Makefile.com 33613a2f6bSGordon Ross# 344bff34e3Sthurlow 354bff34e3SthurlowLIBRARY= libsmbfs.a 364bff34e3SthurlowVERS= .1 374bff34e3Sthurlow 384bff34e3Sthurlow# leaving out: kiconv.o 394bff34e3Sthurlow 4002d09e03SGordon RossOBJ_LIB=\ 417568150aSgwr acl_api.o \ 427568150aSgwr acl_print.o \ 434bff34e3Sthurlow charsets.o \ 444bff34e3Sthurlow cfopt.o \ 45613a2f6bSGordon Ross connect.o \ 46613a2f6bSGordon Ross crypt.o \ 474bff34e3Sthurlow ctx.o \ 484bff34e3Sthurlow derparse.o \ 494bff34e3Sthurlow file.o \ 50613a2f6bSGordon Ross findvc.o \ 51613a2f6bSGordon Ross getaddr.o \ 52613a2f6bSGordon Ross iod_cl.o \ 53613a2f6bSGordon Ross iod_wk.o \ 544bff34e3Sthurlow keychain.o \ 55613a2f6bSGordon Ross krb5ssp.o \ 564bff34e3Sthurlow mbuf.o \ 574bff34e3Sthurlow nb.o \ 584bff34e3Sthurlow nb_name.o \ 594bff34e3Sthurlow nb_net.o \ 604bff34e3Sthurlow nbns_rq.o \ 61613a2f6bSGordon Ross newvc.o \ 624bff34e3Sthurlow nls.o \ 63613a2f6bSGordon Ross ntlm.o \ 64613a2f6bSGordon Ross ntlmssp.o \ 654bff34e3Sthurlow print.o \ 664bff34e3Sthurlow rcfile.o \ 67adee6784SGordon Ross rc_scf.o \ 684bff34e3Sthurlow spnego.o \ 694bff34e3Sthurlow spnegoparse.o \ 70613a2f6bSGordon Ross ssp.o \ 714bff34e3Sthurlow subr.o \ 729c9af259SGordon Ross ui-sun.o \ 739c9af259SGordon Ross utf_str.o 744bff34e3Sthurlow 7505ede3dbSJohn LevonOBJ_CMN= smbfs_ntacl.o 7602d09e03SGordon Ross 7702d09e03SGordon RossOBJECTS= $(OBJ_LIB) $(OBJ_CMN) 7802d09e03SGordon Ross 794bff34e3Sthurlowinclude $(SRC)/lib/Makefile.lib 804bff34e3Sthurlow 81*241c90a0SRichard LoweLIBS = $(DYNLIB) 824bff34e3Sthurlow 834bff34e3SthurlowSRCDIR= ../smb 8402d09e03SGordon RossCMNDIR= $(SRC)/common/smbclnt 854bff34e3Sthurlow 8602d09e03SGordon RossSRCS= $(OBJ_LIB:%.o=$(SRCDIR)/%.c) \ 8702d09e03SGordon Ross $(OBJ_CMN:%.o=$(CMNDIR)/%.c) 884bff34e3Sthurlow 894bff34e3Sthurlow 90bd0ce624SYuri PankovCSTD= $(CSTD_GNU99) 914bff34e3Sthurlow 92adee6784SGordon RossLDLIBS += -lsocket -lnsl -lc -lmd -lpkcs11 -lkrb5 -lsec -lidmap -lscf -luuid 934bff34e3Sthurlow 944bff34e3Sthurlow# normal warnings... 9505ede3dbSJohn LevonCFLAGS += $(CCVERBOSE) 964bff34e3Sthurlow 97d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 987014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 997014882cSRichard Lowe 10005ede3dbSJohn Levon# not linted 10105ede3dbSJohn LevonSMATCH=off 10205ede3dbSJohn Levon 1034bff34e3SthurlowCPPFLAGS += -D__EXTENSIONS__ -D_REENTRANT -DMIA \ 10412b65585SGordon Ross -I$(SRCDIR) -I.. -I../netsmb \ 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 1114bff34e3Sthurlowall: $(LIBS) 1124bff34e3Sthurlow 1134bff34e3Sthurlow 1144bff34e3Sthurlowinclude ../../Makefile.targ 115613a2f6bSGordon Ross 11602d09e03SGordon Rossobjs/%.o pics/%.o: $(CMNDIR)/%.c 11702d09e03SGordon Ross $(COMPILE.c) -o $@ $< 11802d09e03SGordon Ross $(POST_PROCESS_O) 11902d09e03SGordon Ross 120613a2f6bSGordon Ross.KEEP_STATE: 121