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 2018 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 nbns_rq.o \ 61 newvc.o \ 62 nls.o \ 63 ntlm.o \ 64 ntlmssp.o \ 65 print.o \ 66 rcfile.o \ 67 rc_scf.o \ 68 spnego.o \ 69 spnegoparse.o \ 70 ssp.o \ 71 subr.o \ 72 ui-sun.o \ 73 utf_str.o 74 75OBJ_CMN= smbfs_ntacl.o 76 77OBJECTS= $(OBJ_LIB) $(OBJ_CMN) 78 79include $(SRC)/lib/Makefile.lib 80 81LIBS = $(DYNLIB) $(LINTLIB) 82 83SRCDIR= ../smb 84CMNDIR= $(SRC)/common/smbclnt 85 86SRCS= $(OBJ_LIB:%.o=$(SRCDIR)/%.c) \ 87 $(OBJ_CMN:%.o=$(CMNDIR)/%.c) 88 89$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) 90 91CSTD= $(CSTD_GNU99) 92 93LDLIBS += -lsocket -lnsl -lc -lmd -lpkcs11 -lkrb5 -lsec -lidmap -lscf -luuid 94 95# normal warnings... 96CFLAGS += $(CCVERBOSE) 97 98CERRWARN += -_gcc=-Wno-uninitialized 99CERRWARN += -_gcc=-Wno-unused-variable 100 101# not linted 102SMATCH=off 103 104CPPFLAGS += -D__EXTENSIONS__ -D_REENTRANT -DMIA \ 105 -I$(SRCDIR) -I.. -I../netsmb \ 106 -I$(SRC)/uts/common \ 107 -I$(SRC)/common/smbclnt 108 109# This is pretty mature code, so let's just ignore these. 110LINTCHECKFLAGS += -erroff=E_INCONS_ARG_DECL2 111LINTCHECKFLAGS += -erroff=E_INCONS_VAL_TYPE_DECL2 112LINTCHECKFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2 113LINTCHECKFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2 114 115# Debugging 116${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG 117 118all: $(LIBS) 119 120lint: lintcheck 121 122include ../../Makefile.targ 123 124objs/%.o pics/%.o: $(CMNDIR)/%.c 125 $(COMPILE.c) -o $@ $< 126 $(POST_PROCESS_O) 127 128.KEEP_STATE: 129