55
56 #
57 # Include common rules.
58 #
59 include $(UTSBASE)/intel/Makefile.intel
60
61 #
62 # Define targets
63 #
64 ALL_TARGET = $(LIBGEN)
65 LINT_TARGET = $(MODULE).lint
66 INSTALL_TARGET = $(GENUNIX) $(ROOTMODULE)
67
68 #
69 # Overrides
70 #
71 CLOBBERFILES += $(GENUNIX)
72 CLEANFILES += $(LIBSTUBS) $(LIBGEN)
73 BINARY =
74
75 #
76 # Non-patch genunix builds merge a version of the ip module called ipctf. This
77 # is to ensure that the common network-related types are included in genunix and
78 # can thus be uniquified out of other modules. We don't want to do this for
79 # patch builds, since we can't guarantee that ip and genunix will be in the same
80 # patch.
81 #
82 IPCTF_TARGET = $(IPCTF)
83 $(PATCH_BUILD)IPCTF_TARGET =
84
85 CPPFLAGS += -I$(SRC)/common
86 CPPFLAGS += -I$(SRC)/uts/common/fs/zfs
87
88 CPPFLAGS += -I$(UTSBASE)/i86pc
89
90 #
91 # For now, disable these lint checks; maintainers should endeavor
92 # to investigate and remove these for maximum lint coverage.
93 # Please do not carry these forward to new Makefiles.
94 #
95 LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
96 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
97 LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
98 LINTTAGS += -erroff=E_STATIC_UNUSED
99 LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
100 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
101
102 CERRWARN += -_gcc=-Wno-unused-label
103 CERRWARN += -_gcc=-Wno-unused-variable
104 CERRWARN += -_gcc=-Wno-unused-value
123
124 def: $(DEF_DEPS)
125
126 all: $(ALL_DEPS)
127
128 clean: $(CLEAN_DEPS)
129
130 clobber: $(CLOBBER_DEPS)
131
132 lint: $(LINT_DEPS)
133
134 modlintlib: $(MODLINTLIB_DEPS)
135
136 clean.lint: $(CLEAN_LINT_DEPS)
137
138 install: $(INSTALL_DEPS)
139
140 $(LIBGEN): $(GENUNIX) $(LIBSTUBS)
141 $(BUILD.SO) $(GENUNIX) $(LIBSTUBS)
142
143 $(IPCTF_TARGET) ipctf_target: FRC
144 @cd $(IPDRV_DIR); pwd; $(MAKE) ipctf.$(OBJS_DIR)
145 @pwd
146
147 $(GENUNIX): $(IPCTF_TARGET) $(OBJECTS)
148 $(LD) -r $(LDFLAGS) -o $@ $(OBJECTS)
149 $(CTFMERGE_GENUNIX_MERGE)
150 $(POST_PROCESS)
151
152 #
153 # Include common targets.
154 #
155 include $(UTSBASE)/intel/Makefile.targ
156
157 #
158 # Software workarounds for hardware "features".
159 #
160 include $(UTSBASE)/i86pc/Makefile.workarounds
161
162 ALL_DEFS += $(WORKAROUND_DEFS)
163
164 #
165 # Override.
166 #
167 $(MODULE).lint := GEN_LINT_LIB =
|
55
56 #
57 # Include common rules.
58 #
59 include $(UTSBASE)/intel/Makefile.intel
60
61 #
62 # Define targets
63 #
64 ALL_TARGET = $(LIBGEN)
65 LINT_TARGET = $(MODULE).lint
66 INSTALL_TARGET = $(GENUNIX) $(ROOTMODULE)
67
68 #
69 # Overrides
70 #
71 CLOBBERFILES += $(GENUNIX)
72 CLEANFILES += $(LIBSTUBS) $(LIBGEN)
73 BINARY =
74
75 CPPFLAGS += -I$(SRC)/common
76 CPPFLAGS += -I$(SRC)/uts/common/fs/zfs
77
78 CPPFLAGS += -I$(UTSBASE)/i86pc
79
80 #
81 # For now, disable these lint checks; maintainers should endeavor
82 # to investigate and remove these for maximum lint coverage.
83 # Please do not carry these forward to new Makefiles.
84 #
85 LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
86 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
87 LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
88 LINTTAGS += -erroff=E_STATIC_UNUSED
89 LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
90 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
91
92 CERRWARN += -_gcc=-Wno-unused-label
93 CERRWARN += -_gcc=-Wno-unused-variable
94 CERRWARN += -_gcc=-Wno-unused-value
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)
129
130 $(LIBGEN): $(GENUNIX) $(LIBSTUBS)
131 $(BUILD.SO) $(GENUNIX) $(LIBSTUBS)
132
133 $(GENUNIX): $(OBJECTS)
134 $(LD) -r $(LDFLAGS) -o $@ $(OBJECTS)
135 $(CTFMERGE_MODULE)
136 $(POST_PROCESS)
137
138 #
139 # Include common targets.
140 #
141 include $(UTSBASE)/intel/Makefile.targ
142
143 #
144 # Software workarounds for hardware "features".
145 #
146 include $(UTSBASE)/i86pc/Makefile.workarounds
147
148 ALL_DEFS += $(WORKAROUND_DEFS)
149
150 #
151 # Override.
152 #
153 $(MODULE).lint := GEN_LINT_LIB =
|