13db86aabSstevel# 23db86aabSstevel# CDDL HEADER START 33db86aabSstevel# 43db86aabSstevel# The contents of this file are subject to the terms of the 5f344f3d4Sstevel# Common Development and Distribution License (the "License"). 6f344f3d4Sstevel# 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# 23f344f3d4Sstevel# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 243db86aabSstevel# Use is subject to license terms. 253db86aabSstevel# 263db86aabSstevel 273db86aabSstevel# 283db86aabSstevel# This makefile drives the production of the socal driver kernel 293db86aabSstevel# module, which is used for the Photon/FC-AL product 303db86aabSstevel# 313db86aabSstevel# sparc architecture dependent 323db86aabSstevel# 333db86aabSstevel 343db86aabSstevel# 353db86aabSstevel# Path to the base of the uts directory tree (usually /usr/src/uts). 363db86aabSstevel# 37f344f3d4SstevelUTSBASE = ../.. 383db86aabSstevel 393db86aabSstevel# 403db86aabSstevel# Define the module and object file sets. 413db86aabSstevel# 423db86aabSstevelMODULE = socal 433db86aabSstevelOBJECTS = $(SOCAL_OBJS:%=$(OBJS_DIR)/%) 443db86aabSstevelLINTS = $(SOCAL_OBJS:%.o=$(LINTS_DIR)/%.ln) 453db86aabSstevelROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 463db86aabSstevel 473db86aabSstevel# 483db86aabSstevel# Include common rules. 493db86aabSstevel# 50f344f3d4Sstevelinclude $(UTSBASE)/sparc/Makefile.sparc 513db86aabSstevel 523db86aabSstevel# 533db86aabSstevel# Define targets 543db86aabSstevel# 553db86aabSstevelALL_TARGET = $(BINARY) 563db86aabSstevelLINT_TARGET = $(MODULE).lint 573db86aabSstevelINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 583db86aabSstevel 593db86aabSstevel# 603db86aabSstevel# Overrides 613db86aabSstevel# 623db86aabSstevelCFLAGS += $(CCVERBOSE) -dalign 633db86aabSstevel 643db86aabSstevel# 65bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor 66bb25c06cSjg# to investigate and remove these for maximum lint coverage. 67bb25c06cSjg# Please do not carry these forward to new Makefiles. 68bb25c06cSjg# 69bb25c06cSjgLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON 70bb25c06cSjgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 71bb25c06cSjgLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED 72bb25c06cSjgLINTTAGS += -erroff=E_STATIC_UNUSED 73bb25c06cSjgLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 74bb25c06cSjgLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 75bb25c06cSjg 76*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 77*7014882cSRichard Lowe 78bb25c06cSjg# 793db86aabSstevel# Default build targets. 803db86aabSstevel# 813db86aabSstevel.KEEP_STATE: 823db86aabSstevel 833db86aabSstevelall: $(ALL_DEPS) 843db86aabSstevel 853db86aabSsteveldef: $(DEF_DEPS) 863db86aabSstevel 873db86aabSstevelclean: $(CLEAN_DEPS) 883db86aabSstevel 893db86aabSstevelclobber: $(CLOBBER_DEPS) 903db86aabSstevel 913db86aabSstevellint: $(LINT_DEPS) 923db86aabSstevel 933db86aabSstevelmodlintlib: $(MODLINTLIB_DEPS) 943db86aabSstevel 953db86aabSstevelclean.lint: $(CLEAN_LINT_DEPS) 963db86aabSstevel 973db86aabSstevelinstall: $(INSTALL_DEPS) 983db86aabSstevel 993db86aabSstevel# 1003db86aabSstevel# Include common targets. 1013db86aabSstevel# 102f344f3d4Sstevelinclude $(UTSBASE)/sparc/Makefile.targ 1033db86aabSstevel 1043db86aabSstevelbrowser: $(BINARY) 1053db86aabSstevel 1063db86aabSstevelbrowser := CFLAGS += -xsb 107