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
30 #
31 # lib/libsmbfs/Makefile.com
32 #
33
34 LIBRARY= libsmbfs.a
35 VERS= .1
36
37 # leaving out: kiconv.o
38
39 OBJ_LIB=\
40 acl_api.o \
41 acl_print.o \
42 charsets.o \
43 cfopt.o \
44 connect.o \
45 crypt.o \
46 ctx.o \
47 derparse.o \
48 file.o \
85 LIBS = $(DYNLIB) $(LINTLIB)
86
87 SRCDIR= ../smb
88 CMNDIR= $(SRC)/common/smbclnt
89
90 SRCS= $(OBJ_LIB:%.o=$(SRCDIR)/%.c) \
91 $(OBJ_CMN:%.o=$(CMNDIR)/%.c)
92
93 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
94
95 CSTD= $(CSTD_GNU99)
96
97 LDLIBS += -lsocket -lnsl -lc -lmd -lpkcs11 -lkrb5 -lsec -lidmap
98
99 # normal warnings...
100 CFLAGS += $(CCVERBOSE)
101
102 CERRWARN += -_gcc=-Wno-uninitialized
103 CERRWARN += -_gcc=-Wno-unused-variable
104
105 CPPFLAGS += -D__EXTENSIONS__ -D_REENTRANT -DMIA \
106 -I$(SRCDIR) -I.. -I../netsmb \
107 -I$(SRC)/uts/common \
108 -I$(SRC)/common/smbclnt
109
110 # Debugging
111 ${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG
112
113 # uncomment these for dbx debugging
114 #COPTFLAG = -g
115 #CTF_FLAGS =
116 #CTFCONVERT_O=
117 #CTFMERGE_LIB=
118
119 # Filter out the less important lint.
120 # See lgrep.awk
121 LGREP = $(AWK) -f $(SRCDIR)/lgrep.awk
122 LTAIL += 2>&1 | $(LGREP)
123
124 all: $(LIBS)
|
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
35 LIBRARY= libsmbfs.a
36 VERS= .1
37
38 # leaving out: kiconv.o
39
40 OBJ_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 \
86 LIBS = $(DYNLIB) $(LINTLIB)
87
88 SRCDIR= ../smb
89 CMNDIR= $(SRC)/common/smbclnt
90
91 SRCS= $(OBJ_LIB:%.o=$(SRCDIR)/%.c) \
92 $(OBJ_CMN:%.o=$(CMNDIR)/%.c)
93
94 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
95
96 CSTD= $(CSTD_GNU99)
97
98 LDLIBS += -lsocket -lnsl -lc -lmd -lpkcs11 -lkrb5 -lsec -lidmap
99
100 # normal warnings...
101 CFLAGS += $(CCVERBOSE)
102
103 CERRWARN += -_gcc=-Wno-uninitialized
104 CERRWARN += -_gcc=-Wno-unused-variable
105
106 # not linted
107 SMATCH=off
108
109 CPPFLAGS += -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 # uncomment these for dbx debugging
118 #COPTFLAG = -g
119 #CTF_FLAGS =
120 #CTFCONVERT_O=
121 #CTFMERGE_LIB=
122
123 # Filter out the less important lint.
124 # See lgrep.awk
125 LGREP = $(AWK) -f $(SRCDIR)/lgrep.awk
126 LTAIL += 2>&1 | $(LGREP)
127
128 all: $(LIBS)
|