71 # Define targets
72 #
73 ALL_TARGET = $(LIBGEN)
74 LINT_TARGET = $(MODULE).lint
75 INSTALL_TARGET = $(GENUNIX) $(ROOTMODULE)
76
77 #
78 # Override defaults
79 #
80 CLEANFILES += $(LIBSTUBS) $(LIBGEN)
81
82 LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/lint-libs/$(OBJS_DIR)
83 LINT_LIB = $(LINT_LIB_DIR)/llib-lunix.ln
84 GEN_LINT_LIB =
85
86 BINARY =
87
88 CLOBBERFILES += $(GENUNIX)
89
90 #
91 # Non-patch genunix builds merge a version of the ip module called ipctf. This
92 # is to ensure that the common network-related types are included in genunix and
93 # can thus be uniquified out of other modules. We don't want to do this for
94 # patch builds, since we can't guarantee that ip and genunix will be in the same
95 # patch.
96 #
97 IPCTF_TARGET = $(IPCTF)
98 $(PATCH_BUILD)IPCTF_TARGET =
99
100 #
101 # lint pass one enforcement
102 #
103 CFLAGS += $(CCVERBOSE)
104 CPPFLAGS += -I$(SRC)/common
105 CPPFLAGS += -I$(SRC)/uts/common/fs/zfs
106
107 INC_PATH += -I$(UTSBASE)/sun4
108
109 #
110 # For now, disable these lint checks; maintainers should endeavor
111 # to investigate and remove these for maximum lint coverage.
112 # Please do not carry these forward to new Makefiles.
113 #
114 LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
115 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
116 LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
117 LINTTAGS += -erroff=E_STATIC_UNUSED
118 LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
119 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
120
144
145 def: $(DEF_DEPS)
146
147 all: $(ALL_DEPS)
148
149 clean: $(CLEAN_DEPS)
150
151 clobber: $(CLOBBER_DEPS)
152
153 lint: $(LINT_DEPS)
154
155 modlintlib: $(MODLINTLIB_DEPS)
156
157 clean.lint: $(CLEAN_LINT_DEPS)
158
159 install: $(INSTALL_DEPS)
160
161 $(LIBGEN): $(GENUNIX) $(LIBSTUBS)
162 $(BUILD.SO) $(GENUNIX) $(LIBSTUBS)
163
164 $(GENUNIX): $(IPCTF_TARGET) $(OBJECTS)
165 @pwd
166 $(LD) -r $(LDFLAGS) -o $@ $(OBJECTS)
167 $(CTFMERGE_GENUNIX_MERGE)
168 $(POST_PROCESS)
169
170 $(OBJECTS): $(OBJS_DIR)
171
172 #
173 # Include common targets.
174 #
175 include $(UTSBASE)/sparc/Makefile.targ
176
177 #
178 # Include workarounds.
179 #
180 include $(UTSBASE)/$(PLATFORM)/Makefile.workarounds
181
182 ALL_DEFS += $(WORKAROUND_DEFS)
|
71 # Define targets
72 #
73 ALL_TARGET = $(LIBGEN)
74 LINT_TARGET = $(MODULE).lint
75 INSTALL_TARGET = $(GENUNIX) $(ROOTMODULE)
76
77 #
78 # Override defaults
79 #
80 CLEANFILES += $(LIBSTUBS) $(LIBGEN)
81
82 LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/lint-libs/$(OBJS_DIR)
83 LINT_LIB = $(LINT_LIB_DIR)/llib-lunix.ln
84 GEN_LINT_LIB =
85
86 BINARY =
87
88 CLOBBERFILES += $(GENUNIX)
89
90 #
91 # lint pass one enforcement
92 #
93 CFLAGS += $(CCVERBOSE)
94 CPPFLAGS += -I$(SRC)/common
95 CPPFLAGS += -I$(SRC)/uts/common/fs/zfs
96
97 INC_PATH += -I$(UTSBASE)/sun4
98
99 #
100 # For now, disable these lint checks; maintainers should endeavor
101 # to investigate and remove these for maximum lint coverage.
102 # Please do not carry these forward to new Makefiles.
103 #
104 LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
105 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
106 LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
107 LINTTAGS += -erroff=E_STATIC_UNUSED
108 LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
109 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
110
134
135 def: $(DEF_DEPS)
136
137 all: $(ALL_DEPS)
138
139 clean: $(CLEAN_DEPS)
140
141 clobber: $(CLOBBER_DEPS)
142
143 lint: $(LINT_DEPS)
144
145 modlintlib: $(MODLINTLIB_DEPS)
146
147 clean.lint: $(CLEAN_LINT_DEPS)
148
149 install: $(INSTALL_DEPS)
150
151 $(LIBGEN): $(GENUNIX) $(LIBSTUBS)
152 $(BUILD.SO) $(GENUNIX) $(LIBSTUBS)
153
154 $(GENUNIX): $(OBJECTS)
155 @pwd
156 $(LD) -r $(LDFLAGS) -o $@ $(OBJECTS)
157 $(CTFMERGE_MODULE)
158 $(POST_PROCESS)
159
160 $(OBJECTS): $(OBJS_DIR)
161
162 #
163 # Include common targets.
164 #
165 include $(UTSBASE)/sparc/Makefile.targ
166
167 #
168 # Include workarounds.
169 #
170 include $(UTSBASE)/$(PLATFORM)/Makefile.workarounds
171
172 ALL_DEFS += $(WORKAROUND_DEFS)
|