Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox User# CDDL HEADER START
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater#
c78c39caab4cf8b5daefc9c65878f7f5ed3eb7a0Tinderbox User# The contents of this file are subject to the terms of the
f536382c59dd492a14667b753816d920f9981f1cTinderbox User# Common Development and Distribution License (the "License").
ab496cc3df1648e9ad992a87c35c2c0870fdc69dTinderbox User# You may not use this file except in compliance with the License.
7c1468ed500356839a4a222517364e6ce18cb1a2Tinderbox User#
c57668a2fbbe558c1bd21652813616f2f517c469Tinderbox User# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews# or http://www.opensolaris.org/os/licensing.
1f4c645185bd8fc70048e0a69eee46193a284e5cTinderbox User# See the License for the specific language governing permissions
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# and limitations under the License.
8de3f14f1c300c3e1ed99084cc03485b42c92bf1Tinderbox User#
950d203b64f512b85fcc093ee1e9e3e531a1aea3Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews# CDDL HEADER END
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# Use is subject to license terms.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews#
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User# Path to the base of the uts directory tree (usually /usr/src/uts).
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews#
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserUTSBASE = ../..
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User#
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# Define the module and object file sets.
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews#
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserMODULE = cpu.generic
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews#
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserOBJECTS = $(CPU_GCPU_OBJS:%=$(OBJS_DIR)/%)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsOBJECTS += $(CPU_GCPU_XPV_OBJS:%=$(OBJS_DIR)/%)
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserLINTS = $(CPU_GCPU_OBJS:%.o=$(LINTS_DIR)/%.ln)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsROOTMODULE = $(ROOT_PSM_CPU_DIR)/$(MODULE)
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews#
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox User# Include common rules.
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews#
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Huntinclude $(UTSBASE)/i86xpv/Makefile.i86xpv
dc238a06bffa79de141ee7655765e2df91498a8aTinderbox Userinclude $(UTSBASE)/i86pc/cpu/Makefile.files
0e573cdd111e060e5f6c18249b5ccacbe8abe278Tinderbox User
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntCERRWARN += -_gcc=-Wno-parentheses
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCERRWARN += -_gcc=-Wno-uninitialized
16f6050f29b6b0422cee858e609f65e474e70ef2Tinderbox UserCERRWARN += -_gcc=-Wno-unused-variable
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt#
dc238a06bffa79de141ee7655765e2df91498a8aTinderbox User# Our lint library has a different name from that of the module we build.
0e573cdd111e060e5f6c18249b5ccacbe8abe278Tinderbox User#
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntLINT_MODULE = generic_cpu
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox User
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Define targets
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsALL_TARGET = $(BINARY)
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic UpdaterLINT_TARGET = $(LINT_MODULE).lint
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews#
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Default build targets.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews.KEEP_STATE:
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
16f6050f29b6b0422cee858e609f65e474e70ef2Tinderbox Userdef: $(DEF_DEPS)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updaterall: $(ALL_DEPS)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrewsclean: $(CLEAN_DEPS)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsclobber: $(CLOBBER_DEPS)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewslint: $(LINT_DEPS)
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox User
2ae159b376dac23870d8005563c585acf85a4b5aEvan Huntmodlintlib: $(MODLINTLIB_DEPS)
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt
2ae159b376dac23870d8005563c585acf85a4b5aEvan Huntclean.lint: $(CLEAN_LINT_DEPS)
95637507c3d47481fbf0a8a8c750a57f944f677fMark Andrews
2ae159b376dac23870d8005563c585acf85a4b5aEvan Huntinstall: $(INSTALL_DEPS)
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt#
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt# Include common targets.
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt#
2ae159b376dac23870d8005563c585acf85a4b5aEvan Huntinclude ../Makefile.targ
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt