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 # uts/intel/nsmb/Makefile
23 #
24 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
25 # Use is subject to license terms.
26 #
27
28 #
29 # intel architecture dependent
30 #
31
32 #
33 # Path to the base of the uts directory tree (usually /usr/src/uts).
34 #
35 UTSBASE = ../..
36
37 #
38 # Define the module and object file sets.
39 #
40 MODULE = nsmb
41 OBJECTS = $(NSMB_OBJS:%=$(OBJS_DIR)/%)
42 LINTS = $(NSMB_OBJS:%.o=$(LINTS_DIR)/%.ln)
43 ROOTMODULE = $(USR_DRV_DIR)/$(MODULE)
44 CONF_SRCDIR = $(UTSBASE)/common/fs/smbclnt/netsmb
45 OFFSETS_SRC = $(CONF_SRCDIR)/offsets.in
46 IOC_CHECK_H = $(OBJS_DIR)/ioc_check.h
82 INSTALL_TARGET_obj64 = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
83
84 #
85 # Now the normal overrides...
86 #
87 MODSTUBS_DIR = $(OBJS_DIR)
88 $(MODSTUBS_O) := AS_CPPFLAGS += -DNSMB_MODULE
89 CLEANFILES += $(MODSTUBS_O) $(IOC_CHECK_H)
90 CERRWARN += -erroff=E_STATEMENT_NOT_REACHED
91 INC_PATH += -I$(UTSBASE)/common/fs/smbclnt
92 LDFLAGS += -dy -Ncrypto/md4 -Ncrypto/md5 -Nmisc/tlimod
93
94 # Until CR 4994570 is fixed...
95 LINTTAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2
96
97 # The mb_put/md_get functions are intentionally used with and without
98 # return value checks, so filter those out like LGREP.2 does.
99 LGREP.nsmb = egrep -v ' ignored: (mb_init|mb_put|md_get)'
100 LTAIL += 2>&1 | $(LGREP.2) | $(LGREP.nsmb) || true
101
102 #
103 # Default build targets.
104 #
105 .KEEP_STATE:
106
107 def: $(DEF_DEPS)
108
109 all: $(ALL_DEPS)
110
111 clean: $(CLEAN_DEPS)
112
113 clobber: $(CLOBBER_DEPS)
114
115 lint: $(LINT_DEPS)
116
117 modlintlib: $(MODLINTLIB_DEPS)
118
119 clean.lint: $(CLEAN_LINT_DEPS)
120
121 install: $(INSTALL_DEPS)
|
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 # uts/intel/nsmb/Makefile
23 #
24 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
25 # Use is subject to license terms.
26 #
27 # Copyright (c) 2018, Joyent, Inc.
28
29 #
30 # intel architecture dependent
31 #
32
33 #
34 # Path to the base of the uts directory tree (usually /usr/src/uts).
35 #
36 UTSBASE = ../..
37
38 #
39 # Define the module and object file sets.
40 #
41 MODULE = nsmb
42 OBJECTS = $(NSMB_OBJS:%=$(OBJS_DIR)/%)
43 LINTS = $(NSMB_OBJS:%.o=$(LINTS_DIR)/%.ln)
44 ROOTMODULE = $(USR_DRV_DIR)/$(MODULE)
45 CONF_SRCDIR = $(UTSBASE)/common/fs/smbclnt/netsmb
46 OFFSETS_SRC = $(CONF_SRCDIR)/offsets.in
47 IOC_CHECK_H = $(OBJS_DIR)/ioc_check.h
83 INSTALL_TARGET_obj64 = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
84
85 #
86 # Now the normal overrides...
87 #
88 MODSTUBS_DIR = $(OBJS_DIR)
89 $(MODSTUBS_O) := AS_CPPFLAGS += -DNSMB_MODULE
90 CLEANFILES += $(MODSTUBS_O) $(IOC_CHECK_H)
91 CERRWARN += -erroff=E_STATEMENT_NOT_REACHED
92 INC_PATH += -I$(UTSBASE)/common/fs/smbclnt
93 LDFLAGS += -dy -Ncrypto/md4 -Ncrypto/md5 -Nmisc/tlimod
94
95 # Until CR 4994570 is fixed...
96 LINTTAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2
97
98 # The mb_put/md_get functions are intentionally used with and without
99 # return value checks, so filter those out like LGREP.2 does.
100 LGREP.nsmb = egrep -v ' ignored: (mb_init|mb_put|md_get)'
101 LTAIL += 2>&1 | $(LGREP.2) | $(LGREP.nsmb) || true
102
103 # same for smatch
104 SMOFF += all_func_returns
105
106 # needs work
107 SMOFF += signed,deref_check
108
109 #
110 # Default build targets.
111 #
112 .KEEP_STATE:
113
114 def: $(DEF_DEPS)
115
116 all: $(ALL_DEPS)
117
118 clean: $(CLEAN_DEPS)
119
120 clobber: $(CLOBBER_DEPS)
121
122 lint: $(LINT_DEPS)
123
124 modlintlib: $(MODLINTLIB_DEPS)
125
126 clean.lint: $(CLEAN_LINT_DEPS)
127
128 install: $(INSTALL_DEPS)
|