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#ident "%Z%%M% %I% %E% SMI" 283db86aabSstevel 293db86aabSstevel# 303db86aabSstevel# This makefile drives the production of the socal driver kernel 313db86aabSstevel# module, which is used for the Photon/FC-AL product 323db86aabSstevel# 333db86aabSstevel# sparc architecture dependent 343db86aabSstevel# 353db86aabSstevel 363db86aabSstevel# 373db86aabSstevel# Path to the base of the uts directory tree (usually /usr/src/uts). 383db86aabSstevel# 39f344f3d4SstevelUTSBASE = ../.. 403db86aabSstevel 413db86aabSstevel# 423db86aabSstevel# Define the module and object file sets. 433db86aabSstevel# 443db86aabSstevelMODULE = socal 453db86aabSstevelOBJECTS = $(SOCAL_OBJS:%=$(OBJS_DIR)/%) 463db86aabSstevelLINTS = $(SOCAL_OBJS:%.o=$(LINTS_DIR)/%.ln) 473db86aabSstevelROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 483db86aabSstevel 493db86aabSstevel# 503db86aabSstevel# Include common rules. 513db86aabSstevel# 52f344f3d4Sstevelinclude $(UTSBASE)/sparc/Makefile.sparc 533db86aabSstevel 543db86aabSstevel# 553db86aabSstevel# Define targets 563db86aabSstevel# 573db86aabSstevelALL_TARGET = $(BINARY) 583db86aabSstevelLINT_TARGET = $(MODULE).lint 593db86aabSstevelINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 603db86aabSstevel 613db86aabSstevel# 623db86aabSstevel# Overrides 633db86aabSstevel# 643db86aabSstevelCFLAGS += $(CCVERBOSE) -dalign 653db86aabSstevel 663db86aabSstevel# 67*bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor 68*bb25c06cSjg# to investigate and remove these for maximum lint coverage. 69*bb25c06cSjg# Please do not carry these forward to new Makefiles. 70*bb25c06cSjg# 71*bb25c06cSjgLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON 72*bb25c06cSjgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 73*bb25c06cSjgLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED 74*bb25c06cSjgLINTTAGS += -erroff=E_STATIC_UNUSED 75*bb25c06cSjgLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 76*bb25c06cSjgLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 77*bb25c06cSjg 78*bb25c06cSjg# 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