xref: /titanic_44/usr/src/uts/i86xpv/generic_cpu/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1e4b86885SCheng Sean Ye# CDDL HEADER START
2e4b86885SCheng Sean Ye#
3e4b86885SCheng Sean Ye# The contents of this file are subject to the terms of the
4e4b86885SCheng Sean Ye# Common Development and Distribution License (the "License").
5e4b86885SCheng Sean Ye# You may not use this file except in compliance with the License.
6e4b86885SCheng Sean Ye#
7e4b86885SCheng Sean Ye# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8e4b86885SCheng Sean Ye# or http://www.opensolaris.org/os/licensing.
9e4b86885SCheng Sean Ye# See the License for the specific language governing permissions
10e4b86885SCheng Sean Ye# and limitations under the License.
11e4b86885SCheng Sean Ye#
12e4b86885SCheng Sean Ye# When distributing Covered Code, include this CDDL HEADER in each
13e4b86885SCheng Sean Ye# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14e4b86885SCheng Sean Ye# If applicable, add the following below this CDDL HEADER, with the
15e4b86885SCheng Sean Ye# fields enclosed by brackets "[]" replaced with your own identifying
16e4b86885SCheng Sean Ye# information: Portions Copyright [yyyy] [name of copyright owner]
17e4b86885SCheng Sean Ye#
18e4b86885SCheng Sean Ye# CDDL HEADER END
19e4b86885SCheng Sean Ye#
20e4b86885SCheng Sean Ye
21e4b86885SCheng Sean Ye#
22e4b86885SCheng Sean Ye# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23e4b86885SCheng Sean Ye# Use is subject to license terms.
24e4b86885SCheng Sean Ye#
25e4b86885SCheng Sean Ye
26e4b86885SCheng Sean Ye#
27e4b86885SCheng Sean Ye#	Path to the base of the uts directory tree (usually /usr/src/uts).
28e4b86885SCheng Sean Ye#
29e4b86885SCheng Sean YeUTSBASE = ../..
30e4b86885SCheng Sean Ye
31e4b86885SCheng Sean Ye#
32e4b86885SCheng Sean Ye#       Define the module and object file sets.
33e4b86885SCheng Sean Ye#
34e4b86885SCheng Sean YeMODULE		= cpu.generic
35e4b86885SCheng Sean Ye#
36e4b86885SCheng Sean YeOBJECTS		= $(CPU_GCPU_OBJS:%=$(OBJS_DIR)/%)
37e4b86885SCheng Sean YeOBJECTS		+= $(CPU_GCPU_XPV_OBJS:%=$(OBJS_DIR)/%)
38e4b86885SCheng Sean YeLINTS           = $(CPU_GCPU_OBJS:%.o=$(LINTS_DIR)/%.ln)
39e4b86885SCheng Sean YeROOTMODULE      = $(ROOT_PSM_CPU_DIR)/$(MODULE)
40e4b86885SCheng Sean Ye
41e4b86885SCheng Sean Ye#
42e4b86885SCheng Sean Ye#       Include common rules.
43e4b86885SCheng Sean Ye#
44e4b86885SCheng Sean Yeinclude $(UTSBASE)/i86xpv/Makefile.i86xpv
45e4b86885SCheng Sean Yeinclude $(UTSBASE)/i86pc/cpu/Makefile.files
46e4b86885SCheng Sean Ye
47*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
48*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
49*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-variable
50*7014882cSRichard Lowe
51e4b86885SCheng Sean Ye#
52e4b86885SCheng Sean Ye#	Our lint library has a different name from that of the module we build.
53e4b86885SCheng Sean Ye#
54e4b86885SCheng Sean YeLINT_MODULE	= generic_cpu
55e4b86885SCheng Sean Ye
56e4b86885SCheng Sean Ye#
57e4b86885SCheng Sean Ye#       Define targets
58e4b86885SCheng Sean Ye#
59e4b86885SCheng Sean YeALL_TARGET      = $(BINARY)
60e4b86885SCheng Sean YeLINT_TARGET     = $(LINT_MODULE).lint
61e4b86885SCheng Sean YeINSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
62e4b86885SCheng Sean Ye
63e4b86885SCheng Sean Ye#
64e4b86885SCheng Sean Ye#       Default build targets.
65e4b86885SCheng Sean Ye#
66e4b86885SCheng Sean Ye.KEEP_STATE:
67e4b86885SCheng Sean Ye
68e4b86885SCheng Sean Yedef:            $(DEF_DEPS)
69e4b86885SCheng Sean Ye
70e4b86885SCheng Sean Yeall:            $(ALL_DEPS)
71e4b86885SCheng Sean Ye
72e4b86885SCheng Sean Yeclean:          $(CLEAN_DEPS)
73e4b86885SCheng Sean Ye
74e4b86885SCheng Sean Yeclobber:        $(CLOBBER_DEPS)
75e4b86885SCheng Sean Ye
76e4b86885SCheng Sean Yelint:           $(LINT_DEPS)
77e4b86885SCheng Sean Ye
78e4b86885SCheng Sean Yemodlintlib:     $(MODLINTLIB_DEPS)
79e4b86885SCheng Sean Ye
80e4b86885SCheng Sean Yeclean.lint:     $(CLEAN_LINT_DEPS)
81e4b86885SCheng Sean Ye
82e4b86885SCheng Sean Yeinstall:        $(INSTALL_DEPS)
83e4b86885SCheng Sean Ye
84e4b86885SCheng Sean Ye#
85e4b86885SCheng Sean Ye#       Include common targets.
86e4b86885SCheng Sean Ye#
87e4b86885SCheng Sean Yeinclude ../Makefile.targ
88