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