xref: /titanic_44/usr/src/uts/intel/cmlb/Makefile (revision 99ebb4ca412cb0a19d77a3899a87c055b9c30fa8)
1#
2# uts/intel/io/cmlb/Makefile
3#
4# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
5# Use is subject to license terms.
6#
7#ident	"%Z%%M%	%I%	%E% SMI"
8#
9#	This makefile drives the production of the cmlb "misc"
10#	kernel module.
11#
12#	intel architecture dependent
13#
14
15#
16#	Path to the base of the uts directory tree (usually /usr/src/uts).
17#
18UTSBASE	= ../..
19
20#
21#	Define the module and object file sets.
22#
23MODULE		= cmlb
24OBJECTS		= $(CMLB_OBJS:%=$(OBJS_DIR)/%)
25LINTS		= $(CMLB_OBJS:%.o=$(LINTS_DIR)/%.ln)
26ROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
27
28#
29#	Include common rules.
30#
31include $(UTSBASE)/intel/Makefile.intel
32
33#
34#	Define targets
35#
36ALL_TARGET	= $(BINARY)
37LINT_TARGET	= $(MODULE).lint
38INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
39
40#
41#	Overrides.
42#
43DEBUG_FLGS	=
44DEBUG_DEFS	+= $(DEBUG_FLGS)
45
46#
47# For now, disable these lint checks; maintainers should endeavor
48# to investigate and remove these for maximum lint coverage.
49# Please do not carry these forward to new Makefiles.
50#
51LINTTAGS	+= -erroff=E_SUSPICIOUS_COMPARISON
52LINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
53LINTTAGS	+= -erroff=E_STATIC_UNUSED
54LINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
55
56#
57#	Default build targets.
58#
59.KEEP_STATE:
60
61def:		$(DEF_DEPS)
62
63all:		$(ALL_DEPS)
64
65clean:		$(CLEAN_DEPS)
66
67clobber:	$(CLOBBER_DEPS)
68
69lint:		$(LINT_DEPS)
70
71modlintlib:	$(MODLINTLIB_DEPS)
72
73clean.lint:	$(CLEAN_LINT_DEPS)
74
75install:	$(INSTALL_DEPS)
76
77#
78#	Include common targets.
79#
80include $(UTSBASE)/intel/Makefile.targ
81