13db86aabSstevel# CDDL HEADER START 23db86aabSstevel# 33db86aabSstevel# The contents of this file are subject to the terms of the 43db86aabSstevel# Common Development and Distribution License (the "License"). 53db86aabSstevel# You may not use this file except in compliance with the License. 63db86aabSstevel# 73db86aabSstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 83db86aabSstevel# or http://www.opensolaris.org/os/licensing. 93db86aabSstevel# See the License for the specific language governing permissions 103db86aabSstevel# and limitations under the License. 113db86aabSstevel# 123db86aabSstevel# When distributing Covered Code, include this CDDL HEADER in each 133db86aabSstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 143db86aabSstevel# If applicable, add the following below this CDDL HEADER, with the 153db86aabSstevel# fields enclosed by brackets "[]" replaced with your own identifying 163db86aabSstevel# information: Portions Copyright [yyyy] [name of copyright owner] 173db86aabSstevel# 183db86aabSstevel# CDDL HEADER END 193db86aabSstevel# 203db86aabSstevel 213db86aabSstevel# 223db86aabSstevel# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 233db86aabSstevel# Use is subject to license terms. 243db86aabSstevel# 253db86aabSstevel# uts/sparc/cardbus/Makefile 263db86aabSstevel# 27*7014882cSRichard Lowe 283db86aabSstevel# 293db86aabSstevel# This makefile drives the production of the cardbus kernel module. 303db86aabSstevel# 313db86aabSstevel# sparc architecture dependent 323db86aabSstevel# 333db86aabSstevel 343db86aabSstevel# 353db86aabSstevel# Path to the base of the uts directory tree (usually /usr/src/uts). 363db86aabSstevel# 373db86aabSstevelUTSBASE = ../.. 383db86aabSstevel 393db86aabSstevel# 403db86aabSstevel# Define the module and object file sets. 413db86aabSstevel# 423db86aabSstevelMODULE = cardbus 433db86aabSstevelOBJECTS = $(CARDBUS_OBJS:%=$(OBJS_DIR)/%) 443db86aabSstevelLINTS = $(CARDBUS_OBJS:%.o=$(LINTS_DIR)/%.ln) 453db86aabSstevelROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE) 463db86aabSstevel 473db86aabSstevel# 483db86aabSstevel# Include common rules. 493db86aabSstevel# 503db86aabSstevelinclude $(UTSBASE)/sparc/Makefile.sparc 513db86aabSstevel 523db86aabSstevel# 533db86aabSstevel# Define targets 543db86aabSstevel# 553db86aabSstevelALL_TARGET = $(BINARY) 563db86aabSstevelLINT_TARGET = $(MODULE).lint 573db86aabSstevelINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 583db86aabSstevel 593db86aabSstevel# 603db86aabSstevel# Include sun4u specific header files 613db86aabSstevel# 623db86aabSstevelINC_PATH += -I$(UTSBASE)/sun4u -I$(UTSBASE)/sun4 633db86aabSstevel 643db86aabSstevel# 653db86aabSstevel# Overrides 663db86aabSstevel# 673db86aabSstevelDEF_BUILDS = $(DEF_BUILDS64) 683db86aabSstevelALL_BUILDS = $(ALL_BUILDS64) 693db86aabSstevelCLEANLINTFILES += $(LINT64_FILES) 703db86aabSstevel 713db86aabSstevel# 723db86aabSstevel# lint pass one enforcement 733db86aabSstevel# 743db86aabSstevelCFLAGS += $(CCVERBOSE) 753db86aabSstevel 763db86aabSstevelCPPFLAGS += -DHOTPLUG 773db86aabSstevel 783db86aabSstevel# dependency 793db86aabSstevelLDFLAGS += -dy -Nmisc/busra -Nmisc/pcmcia -Nmisc/hpcsvc 803db86aabSstevel 81*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 82*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 83*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-function 84*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 85*7014882cSRichard Lowe 863db86aabSstevel# 87bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor 88bb25c06cSjg# to investigate and remove these for maximum lint coverage. 89bb25c06cSjg# Please do not carry these forward to new Makefiles. 90bb25c06cSjg# 91bb25c06cSjgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 92bb25c06cSjgLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 93bb25c06cSjgLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 94bb25c06cSjgLINTTAGS += -erroff=E_STATIC_UNUSED 95bb25c06cSjgLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON 96bb25c06cSjg 97bb25c06cSjg# 983db86aabSstevel# Default build targets. 993db86aabSstevel# 1003db86aabSstevel.KEEP_STATE: 1013db86aabSstevel 1023db86aabSsteveldef: $(DEF_DEPS) 1033db86aabSstevel 1043db86aabSstevelall: $(ALL_DEPS) 1053db86aabSstevel 1063db86aabSstevelclean: $(CLEAN_DEPS) 1073db86aabSstevel 1083db86aabSstevelclobber: $(CLOBBER_DEPS) 1093db86aabSstevel 1103db86aabSstevellint: $(LINT_DEPS) 1113db86aabSstevel 1123db86aabSstevelmodlintlib: $(MODLINTLIB_DEPS) lint64 1133db86aabSstevel 1143db86aabSstevelclean.lint: $(CLEAN_LINT_DEPS) 1153db86aabSstevel 1163db86aabSstevelinstall: $(INSTALL_DEPS) 1173db86aabSstevel 1183db86aabSstevel# Include common targets. 1193db86aabSstevel# 1203db86aabSstevelinclude $(UTSBASE)/sparc/Makefile.targ 121