xref: /titanic_52/usr/src/uts/intel/amr/Makefile (revision 88b44bf4e73233af70877930178dbff7f1c2992b)
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
48#
49# Depends on scsi
50#
51LDFLAGS         += -dy -N misc/scsi
52
53#
54#	Default build targets.
55#
56.KEEP_STATE:
57
58def:		$(DEF_DEPS)
59
60all:		$(ALL_DEPS)
61
62clean:		$(CLEAN_DEPS)
63
64clobber:	$(CLOBBER_DEPS)
65
66lint:		$(LINT_DEPS)
67
68modlintlib:	$(MODLINTLIB_DEPS)
69
70clean.lint:	$(CLEAN_LINT_DEPS)
71
72install:	$(INSTALL_DEPS)
73
74#
75#	Include common targets.
76#
77include $(UTSBASE)/intel/Makefile.targ
78