xref: /illumos-gate/usr/src/uts/intel/amr/Makefile (revision 241c90a06e8d1708235651863df515a2d522a03a)
1#
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.
5#
6#	This makefile drives the production of the amr driver kernel module.
7#
8#	intel implementation architecture dependent
9#
10
11#
12#	Path to the base of the uts directory tree (usually /usr/src/uts).
13#
14UTSBASE	= ../..
15
16#
17#	Define the module and object file sets.
18#
19MODULE		= amr
20OBJECTS		= $(AMR_OBJS:%=$(OBJS_DIR)/%)
21LINTS		= $(AMR_OBJS:%.o=$(LINTS_DIR)/%.ln)
22ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
23CONF_SRCDIR     = $(UTSBASE)/intel/io/amr
24
25#
26#	Include common rules.
27#
28include $(UTSBASE)/intel/Makefile.intel
29
30#
31#	Define targets
32#
33ALL_TARGET	= $(BINARY) $(CONFMOD)
34LINT_TARGET	= $(MODULE).lint
35INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
36
37#
38#	Overrides
39#
40#
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.
44#
45LINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
46LINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
47
48CERRWARN	+= -_gcc=-Wno-parentheses
49
50#
51# Depends on scsi
52#
53LDFLAGS         += -dy -N misc/scsi
54
55#
56#	Default build targets.
57#
58.KEEP_STATE:
59
60def:		$(DEF_DEPS)
61
62all:		$(ALL_DEPS)
63
64clean:		$(CLEAN_DEPS)
65
66clobber:	$(CLOBBER_DEPS)
67
68lint:		$(LINT_DEPS)
69
70modlintlib:	$(MODLINTLIB_DEPS)
71
72clean.lint:	$(CLEAN_LINT_DEPS)
73
74install:	$(INSTALL_DEPS)
75
76#
77#	Include common targets.
78#
79include $(UTSBASE)/intel/Makefile.targ
80