2 # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
4 # Copyright (c) 2011 Bayard G. Bell. All rights reserved.
6 # This makefile drives the production of the amr driver kernel module.
8 # intel implementation architecture dependent
12 # Path to the base of the uts directory tree (usually /usr/src/uts).
17 # Define the module and object file sets.
20 OBJECTS
= $(AMR_OBJS
:%=$(OBJS_DIR
)/%)
21 LINTS
= $(AMR_OBJS
:%.o
=$(LINTS_DIR
)/%.ln
)
22 ROOTMODULE
= $(ROOT_DRV_DIR
)/$(MODULE
)
23 CONF_SRCDIR
= $(UTSBASE
)/intel
/io
/amr
26 # Include common rules.
28 include $(UTSBASE
)/intel
/Makefile.intel
33 ALL_TARGET
= $(BINARY
) $(CONFMOD
)
34 LINT_TARGET
= $(MODULE
).lint
35 INSTALL_TARGET
= $(BINARY
) $(ROOTMODULE
) $(ROOT_CONFFILE
)
41 # For now, disable these lint checks; maintainers should endeavor
42 # to investigate and remove these for maximum lint coverage.
43 # Please do not carry these forward to new Makefiles.
45 LINTTAGS
+= -erroff
=E_BAD_PTR_CAST_ALIGN
46 LINTTAGS
+= -erroff
=E_ASSIGN_NARROW_CONV
48 CERRWARN
+= -_gcc
=-Wno-parentheses
53 LDFLAGS
+= -dy
-N misc
/scsi
56 # Default build targets.
66 clobber: $(CLOBBER_DEPS
)
70 modlintlib
: $(MODLINTLIB_DEPS
)
72 clean.lint
: $(CLEAN_LINT_DEPS
)
74 install: $(INSTALL_DEPS
)
77 # Include common targets.
79 include $(UTSBASE
)/intel
/Makefile.targ