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