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.
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.
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]
23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 # Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
27 # Copyright 2013 Nexenta Systems, Inc. All rights reserved.
31 # lib/libsmbfs/Makefile.com
37 # leaving out: kiconv.o
80 OBJ_CMN= smbfs_ntacl.o
82 OBJECTS= $(OBJ_LIB) $(OBJ_CMN)
84 include $(SRC)/lib/Makefile.lib
86 LIBS = $(DYNLIB) $(LINTLIB)
89 CMNDIR= $(SRC)/common/smbclnt
91 SRCS= $(OBJ_LIB:%.o=$(SRCDIR)/%.c) \
92 $(OBJ_CMN:%.o=$(CMNDIR)/%.c)
94 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
96 C99MODE= $(C99_ENABLE)
98 LDLIBS += -lsocket -lnsl -lc -lmd -lpkcs11 -lkrb5 -lsec -lidmap
101 CFLAGS += $(CCVERBOSE)
103 CERRWARN += -_gcc=-Wno-uninitialized
104 CERRWARN += -_gcc=-Wno-unused-variable
106 CPPFLAGS += -D__EXTENSIONS__ -D_REENTRANT -DMIA \
107 -I$(SRCDIR) -I.. -I../netsmb \
108 -I$(SRC)/uts/common \
109 -I$(SRC)/common/smbclnt
112 ${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG
114 # uncomment these for dbx debugging
120 # Filter out the less important lint.
122 LGREP = $(AWK) -f $(SRCDIR)/lgrep.awk
123 LTAIL += 2>&1 | $(LGREP)
129 include ../../Makefile.targ
131 lintcheck_t: $$(SRCS)
132 $(LINT.c) $(LINTCHECKFLAGS) $(SRCS) $(LDLIBS) $(LTAIL)
134 objs/%.o pics/%.o: $(CMNDIR)/%.c
135 $(COMPILE.c) -o $@ $<