15cff7825Smh# CDDL HEADER START
25cff7825Smh#
35cff7825Smh# The contents of this file are subject to the terms of the
45cff7825Smh# Common Development and Distribution License (the "License").
55cff7825Smh# You may not use this file except in compliance with the License.
65cff7825Smh#
75cff7825Smh# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
85cff7825Smh# or http://www.opensolaris.org/os/licensing.
95cff7825Smh# See the License for the specific language governing permissions
105cff7825Smh# and limitations under the License.
115cff7825Smh#
125cff7825Smh# When distributing Covered Code, include this CDDL HEADER in each
135cff7825Smh# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
145cff7825Smh# If applicable, add the following below this CDDL HEADER, with the
155cff7825Smh# fields enclosed by brackets "[]" replaced with your own identifying
165cff7825Smh# information: Portions Copyright [yyyy] [name of copyright owner]
175cff7825Smh#
185cff7825Smh# CDDL HEADER END
195cff7825Smh#
20e4b86885SCheng Sean Ye
215cff7825Smh#
22e4b86885SCheng Sean Ye# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23e4b86885SCheng Sean Ye# Use is subject to license terms.
245cff7825Smh#
255cff7825Smh
265cff7825Smh#
275cff7825Smh#	Path to the base of the uts directory tree (usually /usr/src/uts).
285cff7825Smh#
29843e1988SjohnlevUTSBASE = ../..
30843e1988Sjohnlev
31843e1988Sjohnlev#
32843e1988Sjohnlev#       Define the module and object file sets.
33843e1988Sjohnlev#
34e4b86885SCheng Sean YeMODULE		= cpu.generic
35843e1988Sjohnlev#
36e4b86885SCheng Sean YeOBJECTS		= $(CPU_GCPU_OBJS:%=$(OBJS_DIR)/%)
37e4b86885SCheng Sean YeOBJECTS		+= $(CPU_GCPU_XPV_OBJS:%=$(OBJS_DIR)/%)
38e4b86885SCheng Sean YeROOTMODULE      = $(ROOT_PSM_CPU_DIR)/$(MODULE)
395cff7825Smh
405cff7825Smh#
41843e1988Sjohnlev#       Include common rules.
425cff7825Smh#
43e4b86885SCheng Sean Yeinclude $(UTSBASE)/i86xpv/Makefile.i86xpv
44e4b86885SCheng Sean Yeinclude $(UTSBASE)/i86pc/cpu/Makefile.files
45e4b86885SCheng Sean Ye
467014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
47*d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
487014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-variable
497014882cSRichard Lowe
505cff7825Smh#
51843e1988Sjohnlev#       Define targets
525cff7825Smh#
53e4b86885SCheng Sean YeALL_TARGET      = $(BINARY)
54e4b86885SCheng Sean YeINSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
555cff7825Smh
565cff7825Smh#
57843e1988Sjohnlev#       Default build targets.
585cff7825Smh#
595cff7825Smh.KEEP_STATE:
605cff7825Smh
61843e1988Sjohnlevdef:            $(DEF_DEPS)
625cff7825Smh
63843e1988Sjohnlevall:            $(ALL_DEPS)
645cff7825Smh
65843e1988Sjohnlevclean:          $(CLEAN_DEPS)
665cff7825Smh
67843e1988Sjohnlevclobber:        $(CLOBBER_DEPS)
685cff7825Smh
69843e1988Sjohnlevinstall:        $(INSTALL_DEPS)
705cff7825Smh
715cff7825Smh#
72843e1988Sjohnlev#       Include common targets.
735cff7825Smh#
74843e1988Sjohnlevinclude ../Makefile.targ
75