53 # Define targets
54 #
55 ALL_TARGET = $(BINARY)
56 LINT_TARGET = $(MODULE).lint
57 INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
58
59 #
60 # Override defaults to build a unique, local modstubs.o.
61 #
62 MODSTUBS_DIR = $(OBJS_DIR)
63 CFLAGS += $(CCVERBOSE)
64 LDFLAGS += -dy -Nfs/devfs -Nmisc/dls
65 INC_PATH += -I$(UTSBASE)/common/fs/zfs
66 INC_PATH += -I$(UTSBASE)/common/io/bpf
67
68 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
69 LINTTAGS += -erroff=E_STATIC_UNUSED
70
71 CERRWARN += -_gcc=-Wno-parentheses
72 CERRWARN += -_gcc=-Wno-unused-label
73 CERRWARN += -_gcc=-Wno-uninitialized
74
75 #
76 # Default build targets.
77 #
78 .KEEP_STATE:
79
80 def: $(DEF_DEPS)
81
82 all: $(ALL_DEPS)
83
84 clean: $(CLEAN_DEPS)
85
86 clobber: $(CLOBBER_DEPS)
87
88 lint: $(LINT_DEPS)
89
90 modlintlib: $(MODLINTLIB_DEPS)
91
92 clean.lint: $(CLEAN_LINT_DEPS)
93
|
53 # Define targets
54 #
55 ALL_TARGET = $(BINARY)
56 LINT_TARGET = $(MODULE).lint
57 INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
58
59 #
60 # Override defaults to build a unique, local modstubs.o.
61 #
62 MODSTUBS_DIR = $(OBJS_DIR)
63 CFLAGS += $(CCVERBOSE)
64 LDFLAGS += -dy -Nfs/devfs -Nmisc/dls
65 INC_PATH += -I$(UTSBASE)/common/fs/zfs
66 INC_PATH += -I$(UTSBASE)/common/io/bpf
67
68 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
69 LINTTAGS += -erroff=E_STATIC_UNUSED
70
71 CERRWARN += -_gcc=-Wno-parentheses
72 CERRWARN += -_gcc=-Wno-unused-label
73 CERRWARN += $(CNOWARN_UNINIT)
74
75 #
76 # Default build targets.
77 #
78 .KEEP_STATE:
79
80 def: $(DEF_DEPS)
81
82 all: $(ALL_DEPS)
83
84 clean: $(CLEAN_DEPS)
85
86 clobber: $(CLOBBER_DEPS)
87
88 lint: $(LINT_DEPS)
89
90 modlintlib: $(MODLINTLIB_DEPS)
91
92 clean.lint: $(CLEAN_LINT_DEPS)
93
|