Makefile revision 580:70dfd36fd02c
14Srgrimes#
24Srgrimes# CDDL HEADER START
34Srgrimes#
44Srgrimes# The contents of this file are subject to the terms of the
54Srgrimes# Common Development and Distribution License (the "License").
64Srgrimes# You may not use this file except in compliance with the License.
74Srgrimes#
84Srgrimes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
94Srgrimes# or http://www.opensolaris.org/os/licensing.
104Srgrimes# See the License for the specific language governing permissions
114Srgrimes# and limitations under the License.
124Srgrimes#
134Srgrimes# When distributing Covered Code, include this CDDL HEADER in each
144Srgrimes# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
154Srgrimes# If applicable, add the following below this CDDL HEADER, with the
164Srgrimes# fields enclosed by brackets "[]" replaced with your own identifying
174Srgrimes# information: Portions Copyright [yyyy] [name of copyright owner]
184Srgrimes#
194Srgrimes# CDDL HEADER END
204Srgrimes#
214Srgrimes
224Srgrimes#
234Srgrimes# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
244Srgrimes# Use is subject to license terms.
254Srgrimes#
264Srgrimes# ident	"%Z%%M%	%I%	%E% SMI"
274Srgrimes#
284Srgrimes
294Srgrimes#
304Srgrimes#	This makefile drives the production of the sun4v ontario default 
314Srgrimes#	platform module.
324Srgrimes#
334Srgrimes#	sun4v implementation architecture dependent
344Srgrimes#
354Srgrimes
364Srgrimes#
374Srgrimes#	Path to the base of the uts directory tree (usually /usr/src/uts).
384Srgrimes#
394SrgrimesUTSBASE	= ../../..
404Srgrimes
414Srgrimes#
424Srgrimes#	Define the module and object file sets.
434Srgrimes#
444SrgrimesMODULE		= platmod
454SrgrimesOBJECTS		= $(ONTARIO_PLATMOD_OBJS:%=$(OBJS_DIR)/%)
464SrgrimesLINTS		= $(ONTARIO_PLATMOD_OBJS:%.o=$(LINTS_DIR)/%.ln)
474SrgrimesROOTMODULE	= $(ROOT_ONTARIO_MISC_DIR)/$(MODULE)
484Srgrimes
494SrgrimesPLAT_DIR	= .
504SrgrimesHERE		= ../platmod
514Srgrimes
524Srgrimes#
534Srgrimes#	Include common rules.
544Srgrimes#
554Srgrimesinclude $(UTSBASE)/sun4v/ontario/Makefile.ontario
564Srgrimes
574Srgrimes#
584Srgrimes#	Override defaults
594Srgrimes#
604SrgrimesCLEANFILES	+= $(PLATLIB) $(SYM_MOD)
614Srgrimes
624Srgrimes#
634Srgrimes#	Define targets
644Srgrimes#
654SrgrimesALL_TARGET	= $(SYM_MOD)
664SrgrimesLINT_TARGET	= $(MODULE).lint
674SrgrimesINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
684Srgrimes
694Srgrimes#
704Srgrimes#	Overrides
714Srgrimes#
724SrgrimesALL_BUILDS	= $(ALL_BUILDSONLY64)
734SrgrimesDEF_BUILDS	= $(DEF_BUILDSONLY64)
744SrgrimesCLEANLINTFILES	+= $(LINT32_FILES)
754Srgrimes
764Srgrimes#
774Srgrimes# lint pass one enforcement
784Srgrimes#
794SrgrimesCFLAGS += $(CCVERBOSE)
804Srgrimes
814Srgrimes#
824Srgrimes#	Default build targets.
834Srgrimes#
844Srgrimes.KEEP_STATE:
854Srgrimes
864Srgrimesdef:		$(DEF_DEPS)
874Srgrimes
884Srgrimesall:		$(ALL_DEPS)
894Srgrimes
90clean:		$(CLEAN_DEPS)
91
92clobber:	$(CLOBBER_DEPS)
93
94lint:		$(LINT_DEPS)
95
96modlintlib:	$(MODLINTLIB_DEPS)
97
98clean.lint:	$(CLEAN_LINT_DEPS)
99
100install:	$(INSTALL_DEPS)
101
102check:
103
104LINT_LIB_DIR	=$(ONTARIO_LINT_LIB_DIR)
105
106$(PLATLIB):	$(BINARY)
107	$(BUILD.SO) $(BINARY)
108
109$(SYM_MOD):	$(UNIX_O) $(PLATLIB)
110	@echo "resolving symbols against unix.o"
111	@(cd $(UNIX_DIR); pwd; \
112	    PLAT_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck)
113
114#
115#	Include common targets.
116#
117include $(UTSBASE)/sun4v/ontario/Makefile.targ
118