7712 mandoc -Tlint does always exit with error code 0
[unleashed.git] / usr / src / uts / intel / md / Makefile
blob271c12b6eec2edb0bf7697d04f80ae92b34048a9
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
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.
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]
19 # CDDL HEADER END
22 # uts/intel/md/Makefile
23 # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 # Copyright (c) 2011 Bayard G. Bell. All rights reserved.
27 # This makefile drives the production of the md driver
29 # architecture independent
33 # Path to the base of the uts directory tree (usually /usr/src/uts).
35 UTSBASE = ../..
38 # Define the module and object file sets.
40 MODULE = md
41 OBJECTS = $(MD_OBJS:%=$(OBJS_DIR)/%)
42 OBJECTS += $(MD_COMMON_OBJS:%=$(OBJS_DIR)/%)
43 OBJECTS += $(MD_DERIVED_OBJS:%=$(OBJS_DIR)/%)
44 LINTS = $(MD_OBJS:%.o=$(LINTS_DIR)/%.ln)
45 LINTS += $(MD_COMMON_OBJS:%.o=$(LINTS_DIR)/%.ln)
46 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
47 CONF_SRCDIR = $(UTSBASE)/common/io/lvm/md
50 # Include common rules.
52 include $(UTSBASE)/intel/Makefile.intel
55 # For now, disable these lint checks; maintainers should endeavor
56 # to investigate and remove these for maximum lint coverage.
57 # Please do not carry these forward to new Makefiles.
59 LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
60 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
61 LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
62 LINTTAGS += -erroff=E_STATIC_UNUSED
63 LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
64 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
66 CERRWARN += -_gcc=-Wno-uninitialized
67 CERRWARN += -_gcc=-Wno-unused-variable
68 CERRWARN += -_gcc=-Wno-unused-function
69 CERRWARN += -_gcc=-Wno-unused-label
70 CERRWARN += -_gcc=-Wno-parentheses
73 # Define targets
75 ALL_TARGET = $(BINARY) $(SRC_CONFILE)
76 LINT_TARGET = $(MODULE).lint
77 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
80 # Depends on rpcmod
82 LDFLAGS += -dy -N strmod/rpcmod
85 # Default build targets.
87 .KEEP_STATE:
89 def: derived_h .WAIT $(DEF_DEPS)
91 all: derived_h .WAIT $(ALL_DEPS)
93 clean: derived_h .WAIT $(CLEAN_DEPS)
95 clobber: derived_h .WAIT $(CLOBBER_DEPS)
97 lint: $(LINT_DEPS)
99 modlintlib: derived_h .WAIT $(MODLINTLIB_DEPS)
101 clean.lint: derived_h .WAIT $(CLEAN_LINT_DEPS)
103 install: derived_h .WAIT $(INSTALL_DEPS)
105 derived_h:
106 cd $(UTSBASE)/common/sys/lvm; pwd; $(MAKE) $(TARGET)
109 # Include common targets.
111 include $(UTSBASE)/intel/Makefile.targ