xref: /titanic_44/usr/src/uts/sun4u/cpr/Makefile (revision 8eea8e29cc4374d1ee24c25a07f45af132db3499)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# uts/sun4u/cpr/Makefile
24# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
25# Use is subject to license terms.
26#
27#ident	"%Z%%M%	%I%	%E% SMI"
28#
29#	This makefile drives the production of the cpr misc kernel module.
30#
31#	sun4u implementation architecture dependent
32#
33
34#
35#	Path to the base of the uts directory tree (usually /usr/src/uts).
36#
37UTSBASE	= ../..
38
39#
40#	Define the module and object file sets.
41#
42MODULE		= cpr
43#
44#	WARNING: CPR_FIRST_OBJ must always be first in OBJECTS macro.
45#	This guarantees that any constituents will be placed at the
46#	front of the binary image.
47#
48OBJECTS		= $(CPR_FIRST_OBJS:%=$(OBJS_DIR)/%) \
49		  $(CPR_IMPL_OBJS:%=$(OBJS_DIR)/%) \
50		  $(CPR_OBJS:%=$(OBJS_DIR)/%) \
51		  $(CPR_SPARC_OBJS:%=$(OBJS_DIR)/%)
52LINTS		= $(CPR_FIRST_OBJS:%.o=$(LINTS_DIR)/%.ln) \
53		  $(CPR_OBJS:%.o=$(LINTS_DIR)/%.ln) \
54		  $(CPR_IMPL_OBJS:%.o=$(LINTS_DIR)/%.ln) \
55		  $(CPR_SPARC_OBJS:%.o=$(LINTS_DIR)/%.ln)
56ROOTMODULE	= $(ROOT_PSM_MISC_DIR)/$(MODULE)
57
58#
59#	Include common rules.
60#
61include $(UTSBASE)/sun4u/Makefile.sun4u
62
63#
64#	Override defaults
65#
66
67#
68#	Define targets
69#
70ALL_TARGET	= $(BINARY)
71LINT_TARGET	= $(MODULE).lint
72INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
73
74#
75# lint pass one enforcement
76#
77CFLAGS += $(CCVERBOSE)
78
79#
80#	Default build targets.
81#
82.KEEP_STATE:
83
84def:		$(DEF_DEPS)
85
86all:		$(ALL_DEPS)
87
88clean:		$(CLEAN_DEPS)
89
90clobber:	$(CLOBBER_DEPS)
91
92lint:		$(LINT_DEPS)
93
94modlintlib:	$(MODLINTLIB_DEPS)
95
96clean.lint:	$(CLEAN_LINT_DEPS)
97
98install:	$(INSTALL_DEPS)
99
100#
101#	Include common targets.
102#
103include $(UTSBASE)/sun4u/Makefile.targ
104