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# Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com> 26# 27# Copyright 2013 Nexenta Systems, Inc. All rights reserved. 28# 29# Copyright (c) 2018, Joyent, Inc. 30 31# 32# lib/libsmbfs/Makefile.com 33# 34 35LIBRARY= libsmbfs.a 36VERS= .1 37 38# leaving out: kiconv.o 39 40OBJ_LIB=\ 41 acl_api.o \ 42 acl_print.o \ 43 charsets.o \ 44 cfopt.o \ 45 connect.o \ 46 crypt.o \ 47 ctx.o \ 48 derparse.o \ 49 file.o \ 50 findvc.o \ 51 getaddr.o \ 52 iod_cl.o \ 53 iod_wk.o \ 54 keychain.o \ 55 krb5ssp.o \ 56 mbuf.o \ 57 nb.o \ 58 nb_name.o \ 59 nb_net.o \ 60 nb_ssn.o \ 61 nbns_rq.o \ 62 negprot.o \ 63 newvc.o \ 64 nls.o \ 65 ntlm.o \ 66 ntlmssp.o \ 67 print.o \ 68 rap.o \ 69 rcfile.o \ 70 rq.o \ 71 signing.o \ 72 spnego.o \ 73 spnegoparse.o \ 74 ssnsetup.o \ 75 ssp.o \ 76 subr.o \ 77 ui-sun.o \ 78 utf_str.o 79 80OBJ_CMN= smbfs_ntacl.o 81 82OBJECTS= $(OBJ_LIB) $(OBJ_CMN) 83 84include $(SRC)/lib/Makefile.lib 85 86LIBS = $(DYNLIB) $(LINTLIB) 87 88SRCDIR= ../smb 89CMNDIR= $(SRC)/common/smbclnt 90 91SRCS= $(OBJ_LIB:%.o=$(SRCDIR)/%.c) \ 92 $(OBJ_CMN:%.o=$(CMNDIR)/%.c) 93 94$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) 95 96CSTD= $(CSTD_GNU99) 97 98LDLIBS += -lsocket -lnsl -lc -lmd -lpkcs11 -lkrb5 -lsec -lidmap 99 100# normal warnings... 101CFLAGS += $(CCVERBOSE) 102 103CERRWARN += -_gcc=-Wno-uninitialized 104CERRWARN += -_gcc=-Wno-unused-variable 105 106# not linted 107SMATCH=off 108 109CPPFLAGS += -D__EXTENSIONS__ -D_REENTRANT -DMIA \ 110 -I$(SRCDIR) -I.. -I../netsmb \ 111 -I$(SRC)/uts/common \ 112 -I$(SRC)/common/smbclnt 113 114# Debugging 115${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG 116 117# Filter out the less important lint. 118# See lgrep.awk 119LGREP = $(AWK) -f $(SRCDIR)/lgrep.awk 120LTAIL += 2>&1 | $(LGREP) 121 122all: $(LIBS) 123 124lint: lintcheck_t 125 126include ../../Makefile.targ 127 128lintcheck_t: $$(SRCS) 129 $(LINT.c) $(LINTCHECKFLAGS) $(SRCS) $(LDLIBS) $(LTAIL) 130 131objs/%.o pics/%.o: $(CMNDIR)/%.c 132 $(COMPILE.c) -o $@ $< 133 $(POST_PROCESS_O) 134 135.KEEP_STATE: 136