13db86aabSstevel# 23db86aabSstevel# CDDL HEADER START 33db86aabSstevel# 43db86aabSstevel# The contents of this file are subject to the terms of the 53db86aabSstevel# Common Development and Distribution License (the "License"). 63db86aabSstevel# You may not use this file except in compliance with the License. 73db86aabSstevel# 83db86aabSstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 93db86aabSstevel# or http://www.opensolaris.org/os/licensing. 103db86aabSstevel# See the License for the specific language governing permissions 113db86aabSstevel# and limitations under the License. 123db86aabSstevel# 133db86aabSstevel# When distributing Covered Code, include this CDDL HEADER in each 143db86aabSstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 153db86aabSstevel# If applicable, add the following below this CDDL HEADER, with the 163db86aabSstevel# fields enclosed by brackets "[]" replaced with your own identifying 173db86aabSstevel# information: Portions Copyright [yyyy] [name of copyright owner] 183db86aabSstevel# 193db86aabSstevel# CDDL HEADER END 203db86aabSstevel# 213db86aabSstevel 223db86aabSstevel# 233db86aabSstevel# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 243db86aabSstevel# Use is subject to license terms. 253db86aabSstevel# 263db86aabSstevel#ident "%Z%%M% %I% %E% SMI" 273db86aabSstevel# 283db86aabSstevel# This makefile drives the production of the rmclomv driver kernel 293db86aabSstevel# module in the sun4u systems 303db86aabSstevel# 313db86aabSstevel 323db86aabSstevel# 333db86aabSstevel# Path to the base of the uts directory tree (usually /usr/src/uts). 343db86aabSstevel# 353db86aabSstevelUTSBASE = ../.. 363db86aabSstevel 373db86aabSstevel# 383db86aabSstevel# Define the module and object file sets. 393db86aabSstevel# 403db86aabSstevelMODULE = rmclomv 413db86aabSstevelOBJECTS = $(RMCLOMV_OBJS:%=$(OBJS_DIR)/%) 423db86aabSstevelLINTS = $(RMCLOMV_OBJS:%.o=$(LINTS_DIR)/%.ln) 433db86aabSstevelROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) 443db86aabSstevelCONF_SRCDIR = $(UTSBASE)/sun4u/io 453db86aabSstevel 463db86aabSstevel# 473db86aabSstevel# Include common rules. 483db86aabSstevel# 493db86aabSstevelinclude $(UTSBASE)/sun4u/Makefile.sun4u 503db86aabSstevel 513db86aabSstevel# 523db86aabSstevel# Define targets 533db86aabSstevel# 543db86aabSstevelALL_TARGET = $(BINARY) $(SRC_CONFILE) 553db86aabSstevelLINT_TARGET = $(MODULE).lint 563db86aabSstevelINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 573db86aabSstevel 583db86aabSstevel# 593db86aabSstevel# lint pass one enforcement 603db86aabSstevel# 613db86aabSstevelCFLAGS += $(CCVERBOSE) 623db86aabSstevelLDFLAGS += -dy -Ndrv/rmc_comm -Ndrv/pmugpio 633db86aabSstevel 643db86aabSstevel# 653db86aabSstevel# Turn on doubleword alignment for 64 bit registers 663db86aabSstevel# 673db86aabSstevelCFLAGS += -dalign 683db86aabSstevel 693db86aabSstevel# 70*bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor 71*bb25c06cSjg# to investigate and remove these for maximum lint coverage. 72*bb25c06cSjg# Please do not carry these forward to new Makefiles. 73*bb25c06cSjg# 74*bb25c06cSjgLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 75*bb25c06cSjgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 76*bb25c06cSjg 77*bb25c06cSjg# 783db86aabSstevel# Default build targets. 793db86aabSstevel# 803db86aabSstevel.KEEP_STATE: 813db86aabSstevel 823db86aabSsteveldef: $(DEF_DEPS) 833db86aabSstevel 843db86aabSstevelall: $(ALL_DEPS) 853db86aabSstevel 863db86aabSstevelclean: $(CLEAN_DEPS) 873db86aabSstevel 883db86aabSstevelclobber: $(CLOBBER_DEPS) 893db86aabSstevel 903db86aabSstevellint: $(LINT_DEPS) 913db86aabSstevel 923db86aabSstevelmodlintlib: $(MODLINTLIB_DEPS) 933db86aabSstevel 943db86aabSstevelclean.lint: $(CLEAN_LINT_DEPS) 953db86aabSstevel 963db86aabSstevelinstall: $(INSTALL_DEPS) 973db86aabSstevel 983db86aabSstevel# 993db86aabSstevel# Include common targets. 1003db86aabSstevel# 1013db86aabSstevelinclude $(UTSBASE)/sun4u/Makefile.targ 102