Makefile revision 580:70dfd36fd02c
14Srgrimes# 24Srgrimes# CDDL HEADER START 3391Srgrimes# 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 sun4u taco platform module. 314Srgrimes# 324Srgrimes# sun4u implementation architecture dependent 334Srgrimes# 344Srgrimes 354Srgrimes# 364Srgrimes# Path to the base of the uts directory tree (usually /usr/src/uts). 374Srgrimes# 384SrgrimesUTSBASE = ../../.. 394Srgrimes 404Srgrimes# 414Srgrimes# Define the module and object file sets. 421549Srgrimes# 434SrgrimesMODULE = platmod 441549SrgrimesOBJECTS = $(TACO_OBJS:%=$(OBJS_DIR)/%) 454SrgrimesLINTS = $(TACO_OBJS:%.o=$(LINTS_DIR)/%.ln) 464SrgrimesROOTMODULE = $(ROOT_TACO_MISC_DIR)/$(MODULE) 474Srgrimes 484SrgrimesPLAT_DIR = . 494SrgrimesHERE = ../taco/platmod 504Srgrimes 514Srgrimes# 524Srgrimes# Include common rules. 534Srgrimes# 544Srgrimesinclude $(UTSBASE)/sun4u/taco/Makefile.taco 554Srgrimes 564Srgrimes# 574Srgrimes# Override defaults 584Srgrimes# 594SrgrimesCLEANFILES += $(PLATLIB) $(SYM_MOD) 604Srgrimes 614Srgrimes# 624Srgrimes# Define targets 634Srgrimes# 641549SrgrimesALL_TARGET = $(SYM_MOD) 651549SrgrimesLINT_TARGET = $(MODULE).lint 664SrgrimesINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 674Srgrimes 684Srgrimes# 691549Srgrimes# lint pass one enforcement 701549Srgrimes# 714SrgrimesCFLAGS += $(CCVERBOSE) 724Srgrimes 734Srgrimes# 744Srgrimes# Default build targets. 754Srgrimes# 764Srgrimes.KEEP_STATE: 774Srgrimes 784Srgrimesdef: $(DEF_DEPS) 794Srgrimes 804Srgrimesall: $(ALL_DEPS) 814Srgrimes 824Srgrimesclean: $(CLEAN_DEPS) 834Srgrimes 844Srgrimesclobber: $(CLOBBER_DEPS) 85 86lint: $(LINT_DEPS) 87 88modlintlib: $(MODLINTLIB_DEPS) 89 90clean.lint: $(CLEAN_LINT_DEPS) 91 92install: $(INSTALL_DEPS) 93 94check: 95 96LINT_LIB_DIR = $(TACO_LINT_LIB_DIR) 97 98$(PLATLIB): $(BINARY) 99 $(BUILD.SO) $(BINARY) 100 101$(SYM_MOD): $(UNIX_O) $(PLATLIB) 102 @echo "resolving symbols against unix.o" 103 @(cd $(UNIX_DIR); pwd; \ 104 PLAT_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck) 105 106# 107# Include common targets. 108# 109include $(UTSBASE)/sun4u/taco/Makefile.targ 110