Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
4ff47e3535a6da266acc3f0cf743046dbf16a856rbb#
4ff47e3535a6da266acc3f0cf743046dbf16a856rbb# CDDL HEADER START
afab3e893c3fecabf2e3cac4e37ada58db984cearbb#
afab3e893c3fecabf2e3cac4e37ada58db984cearbb# The contents of this file are subject to the terms of the
afab3e893c3fecabf2e3cac4e37ada58db984cearbb# Common Development and Distribution License (the "License").
afab3e893c3fecabf2e3cac4e37ada58db984cearbb# You may not use this file except in compliance with the License.
612ea048caf897cb6e69dc296d2b143a08ba83a0rbb#
612ea048caf897cb6e69dc296d2b143a08ba83a0rbb# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
612ea048caf897cb6e69dc296d2b143a08ba83a0rbb# or http://www.opensolaris.org/os/licensing.
612ea048caf897cb6e69dc296d2b143a08ba83a0rbb# See the License for the specific language governing permissions
612ea048caf897cb6e69dc296d2b143a08ba83a0rbb# and limitations under the License.
612ea048caf897cb6e69dc296d2b143a08ba83a0rbb#
67e81f5f6ddfe2e3d1f1208a04b8ccd368c658farbb# When distributing Covered Code, include this CDDL HEADER in each
c8af62b87a118cbbc25414eb9459219f338b1b0fstoddard# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
30309f86bfd564437654aa822a19cd0cb29ca6f8wrowe# If applicable, add the following below this CDDL HEADER, with the
30309f86bfd564437654aa822a19cd0cb29ca6f8wrowe# fields enclosed by brackets "[]" replaced with your own identifying
30309f86bfd564437654aa822a19cd0cb29ca6f8wrowe# information: Portions Copyright [yyyy] [name of copyright owner]
30309f86bfd564437654aa822a19cd0cb29ca6f8wrowe#
30309f86bfd564437654aa822a19cd0cb29ca6f8wrowe# CDDL HEADER END
65db4f712167a3498de73cee5c08032a8aa6a010rbb#
65db4f712167a3498de73cee5c08032a8aa6a010rbb
65db4f712167a3498de73cee5c08032a8aa6a010rbb#
65db4f712167a3498de73cee5c08032a8aa6a010rbb# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
65db4f712167a3498de73cee5c08032a8aa6a010rbb# Use is subject to license terms.
ed4f9ec869d7fc5bd220c8d70ee58eed9b32d60arederpj#
ed4f9ec869d7fc5bd220c8d70ee58eed9b32d60arederpj
ed4f9ec869d7fc5bd220c8d70ee58eed9b32d60arederpj#
ed4f9ec869d7fc5bd220c8d70ee58eed9b32d60arederpj# This makefile drives the production of the sun4u lneck platform module.
ed4f9ec869d7fc5bd220c8d70ee58eed9b32d60arederpj#
c8af62b87a118cbbc25414eb9459219f338b1b0fstoddard# sun4u implementation architecture dependent
c8af62b87a118cbbc25414eb9459219f338b1b0fstoddard#
c8af62b87a118cbbc25414eb9459219f338b1b0fstoddard
c8af62b87a118cbbc25414eb9459219f338b1b0fstoddard#
c8af62b87a118cbbc25414eb9459219f338b1b0fstoddard# Path to the base of the uts directory tree (usually /usr/src/uts).
c8af62b87a118cbbc25414eb9459219f338b1b0fstoddard#
c8af62b87a118cbbc25414eb9459219f338b1b0fstoddardUTSBASE = ../../..
c8af62b87a118cbbc25414eb9459219f338b1b0fstoddard
c8af62b87a118cbbc25414eb9459219f338b1b0fstoddard#
c981632de03d61667b7a6dda3e1f0a80fd5973b1gregames# Define the module and object file sets.
c981632de03d61667b7a6dda3e1f0a80fd5973b1gregames#
8f43c3299e44dc11a4cd68acc93b578a0318daaftrawickMODULE = platmod
8f43c3299e44dc11a4cd68acc93b578a0318daaftrawickOBJECTS = $(CSTONEPLATMOD_OBJS:%=$(OBJS_DIR)/%)
8f43c3299e44dc11a4cd68acc93b578a0318daaftrawickLINTS = $(CSTONEPLATMOD_OBJS:%.o=$(LINTS_DIR)/%.ln)
8f43c3299e44dc11a4cd68acc93b578a0318daaftrawickROOTMODULE = $(ROOT_CHERRYSTONE_MISC_DIR)/$(MODULE)
8f43c3299e44dc11a4cd68acc93b578a0318daaftrawick
8f43c3299e44dc11a4cd68acc93b578a0318daaftrawickPLAT_DIR = .
8f43c3299e44dc11a4cd68acc93b578a0318daaftrawickHERE = ../cherrystone/platmod
8f43c3299e44dc11a4cd68acc93b578a0318daaftrawick
8f43c3299e44dc11a4cd68acc93b578a0318daaftrawick#
688f7d0bc138bb02f92288017920468e7e314f23stoddard# Include common rules.
688f7d0bc138bb02f92288017920468e7e314f23stoddard#
688f7d0bc138bb02f92288017920468e7e314f23stoddardinclude $(UTSBASE)/sun4u/cherrystone/Makefile.cherrystone
688f7d0bc138bb02f92288017920468e7e314f23stoddard
688f7d0bc138bb02f92288017920468e7e314f23stoddard#
688f7d0bc138bb02f92288017920468e7e314f23stoddard# Override defaults
448a83963e3ec557bc9f9020ab44f9681595d1eerbb#
3b8937baf1826c625c1ca90d220453a5e4b499edrbbCLEANFILES += $(PLATLIB) $(SYM_MOD)
3b8937baf1826c625c1ca90d220453a5e4b499edrbb
3b8937baf1826c625c1ca90d220453a5e4b499edrbb#
3b8937baf1826c625c1ca90d220453a5e4b499edrbb# Define targets
3b8937baf1826c625c1ca90d220453a5e4b499edrbb#
9180a5933673ffb1af633c255ceee029340f3b1erbbALL_TARGET = $(SYM_MOD)
448a83963e3ec557bc9f9020ab44f9681595d1eerbbLINT_TARGET = $(MODULE).lint
e654452796751e21828a4078767e075eccf3b232stoddardINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
e654452796751e21828a4078767e075eccf3b232stoddard
e654452796751e21828a4078767e075eccf3b232stoddardALL_BUILDS = debug64 obj64
e654452796751e21828a4078767e075eccf3b232stoddardDEF_BUILDS = obj64
e654452796751e21828a4078767e075eccf3b232stoddard$(NOT_RELEASE_BUILD)DEF_BUILDS = debug64
e654452796751e21828a4078767e075eccf3b232stoddard
4670899d8a45ac6add3105181adf1976a1fae109stoddard#
4670899d8a45ac6add3105181adf1976a1fae109stoddard# lint pass one enforcement
85986096003221e8eb135ad1fda59a57c3d0528brbb#
cf293fe6e2515d89788ec515ce6266ad6f13a724stoddardCFLAGS += $(CCVERBOSE)
f91cd1fc44d2588d82a56570b1005e7310dfc970jwoolleyCERRWARN += -_gcc=-Wno-unused-function
f91cd1fc44d2588d82a56570b1005e7310dfc970jwoolley
f91cd1fc44d2588d82a56570b1005e7310dfc970jwoolley#
f91cd1fc44d2588d82a56570b1005e7310dfc970jwoolley# Default build targets.
cbed27f4c149736a6319a790c81aa8acc491fa18jwoolley#
f91cd1fc44d2588d82a56570b1005e7310dfc970jwoolley.KEEP_STATE:
f91cd1fc44d2588d82a56570b1005e7310dfc970jwoolley
8ff9257331986cb3646442ab61703fcc02158046trawickdef: $(DEF_DEPS)
7537a55be7520037878a521d4ec8c8eb2d44a288rbb
7537a55be7520037878a521d4ec8c8eb2d44a288rbball: $(ALL_DEPS)
7537a55be7520037878a521d4ec8c8eb2d44a288rbb
7537a55be7520037878a521d4ec8c8eb2d44a288rbbclean: $(CLEAN_DEPS)
7537a55be7520037878a521d4ec8c8eb2d44a288rbb
7537a55be7520037878a521d4ec8c8eb2d44a288rbbclobber: $(CLOBBER_DEPS)
7537a55be7520037878a521d4ec8c8eb2d44a288rbb
7537a55be7520037878a521d4ec8c8eb2d44a288rbblint: $(LINT_DEPS)
7537a55be7520037878a521d4ec8c8eb2d44a288rbb
7537a55be7520037878a521d4ec8c8eb2d44a288rbbmodlintlib: $(MODLINTLIB_DEPS)
7537a55be7520037878a521d4ec8c8eb2d44a288rbb
7537a55be7520037878a521d4ec8c8eb2d44a288rbbclean.lint: $(CLEAN_LINT_DEPS)
de0fbde2191d651a2dd0296e0fd4c449fa9f1d39wrowe
de0fbde2191d651a2dd0296e0fd4c449fa9f1d39wroweinstall: $(INSTALL_DEPS)
de0fbde2191d651a2dd0296e0fd4c449fa9f1d39wrowe
de0fbde2191d651a2dd0296e0fd4c449fa9f1d39wrowecheck:
de0fbde2191d651a2dd0296e0fd4c449fa9f1d39wrowe
01f404bacecbd1354af8f04c23a28acef5044e73jwoolleyLINT_LIB_DIR = $(CHERRYSTONE_LINT_LIB_DIR)
01f404bacecbd1354af8f04c23a28acef5044e73jwoolley
01f404bacecbd1354af8f04c23a28acef5044e73jwoolley$(PLATLIB): $(BINARY)
54f7f1c85247dad29d8fa275866cea31d465b392stoddard $(BUILD.SO) $(BINARY)
54f7f1c85247dad29d8fa275866cea31d465b392stoddard
54f7f1c85247dad29d8fa275866cea31d465b392stoddard$(SYM_MOD): $(UNIX_O) $(PLATLIB)
54f7f1c85247dad29d8fa275866cea31d465b392stoddard @echo "resolving symbols against unix.o"
01f404bacecbd1354af8f04c23a28acef5044e73jwoolley @(cd $(UNIX_DIR); pwd; \
54f7f1c85247dad29d8fa275866cea31d465b392stoddard PLAT_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck)
3af8fbdd62c9495c8f879eef1eb952a638a18a7adougm
3af8fbdd62c9495c8f879eef1eb952a638a18a7adougm#
e14ec68ef48bbf6c3dc567900f9e087eaf0bc931trawick# Include common targets.
e14ec68ef48bbf6c3dc567900f9e087eaf0bc931trawick#
e14ec68ef48bbf6c3dc567900f9e087eaf0bc931trawickinclude $(UTSBASE)/sun4u/cherrystone/Makefile.targ
e14ec68ef48bbf6c3dc567900f9e087eaf0bc931trawick