Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
d29b2c4438482eb00488be49a1f5d6835f455546ab#
d29b2c4438482eb00488be49a1f5d6835f455546ab# CDDL HEADER START
d29b2c4438482eb00488be49a1f5d6835f455546ab#
d29b2c4438482eb00488be49a1f5d6835f455546ab# The contents of this file are subject to the terms of the
d29b2c4438482eb00488be49a1f5d6835f455546ab# Common Development and Distribution License (the "License").
d29b2c4438482eb00488be49a1f5d6835f455546ab# You may not use this file except in compliance with the License.
d29b2c4438482eb00488be49a1f5d6835f455546ab#
d29b2c4438482eb00488be49a1f5d6835f455546ab# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d29b2c4438482eb00488be49a1f5d6835f455546ab# or http://www.opensolaris.org/os/licensing.
d29b2c4438482eb00488be49a1f5d6835f455546ab# See the License for the specific language governing permissions
d29b2c4438482eb00488be49a1f5d6835f455546ab# and limitations under the License.
d29b2c4438482eb00488be49a1f5d6835f455546ab#
d29b2c4438482eb00488be49a1f5d6835f455546ab# When distributing Covered Code, include this CDDL HEADER in each
d29b2c4438482eb00488be49a1f5d6835f455546ab# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d29b2c4438482eb00488be49a1f5d6835f455546ab# If applicable, add the following below this CDDL HEADER, with the
d29b2c4438482eb00488be49a1f5d6835f455546ab# fields enclosed by brackets "[]" replaced with your own identifying
d29b2c4438482eb00488be49a1f5d6835f455546ab# information: Portions Copyright [yyyy] [name of copyright owner]
d29b2c4438482eb00488be49a1f5d6835f455546ab#
d29b2c4438482eb00488be49a1f5d6835f455546ab# CDDL HEADER END
d29b2c4438482eb00488be49a1f5d6835f455546ab#
d29b2c4438482eb00488be49a1f5d6835f455546ab#
d29b2c4438482eb00488be49a1f5d6835f455546ab# uts/sparc/tl/Makefile
69112edd987c28fa551d4f8d9362a84a45365f17Ali Bahrami# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
d29b2c4438482eb00488be49a1f5d6835f455546ab# Use is subject to license terms.
d29b2c4438482eb00488be49a1f5d6835f455546ab#
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab#
d29b2c4438482eb00488be49a1f5d6835f455546ab# This makefile drives the production of the tl driver
d29b2c4438482eb00488be49a1f5d6835f455546ab#
d29b2c4438482eb00488be49a1f5d6835f455546ab# sparc architecture dependent
d29b2c4438482eb00488be49a1f5d6835f455546ab#
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab#
d29b2c4438482eb00488be49a1f5d6835f455546ab# Path to the base of the uts directory tree (usually /usr/src/uts).
d29b2c4438482eb00488be49a1f5d6835f455546ab#
d29b2c4438482eb00488be49a1f5d6835f455546abUTSBASE = ../..
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab#
d29b2c4438482eb00488be49a1f5d6835f455546ab# Define the module and object file sets.
4f680cc668fa6cf678c531083400ade9a9c7934cAli Bahrami#
d29b2c4438482eb00488be49a1f5d6835f455546abMODULE = tl
d29b2c4438482eb00488be49a1f5d6835f455546abOBJECTS = $(TL_OBJS:%=$(OBJS_DIR)/%)
d29b2c4438482eb00488be49a1f5d6835f455546abLINTS = $(TL_OBJS:%.o=$(LINTS_DIR)/%.ln)
d29b2c4438482eb00488be49a1f5d6835f455546abROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
d29b2c4438482eb00488be49a1f5d6835f455546abCONF_SRCDIR = $(UTSBASE)/common/io
69112edd987c28fa551d4f8d9362a84a45365f17Ali Bahrami
d29b2c4438482eb00488be49a1f5d6835f455546ab#
d29b2c4438482eb00488be49a1f5d6835f455546ab# Include common rules.
08278a5e91755ccdb5850c19d21d42fb2e16b50eRod Evans#
d29b2c4438482eb00488be49a1f5d6835f455546abinclude $(UTSBASE)/sparc/Makefile.sparc
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab#
d29b2c4438482eb00488be49a1f5d6835f455546ab# Define targets
d29b2c4438482eb00488be49a1f5d6835f455546ab#
d29b2c4438482eb00488be49a1f5d6835f455546abALL_TARGET = $(BINARY) $(SRC_CONFILE)
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweLINT_TARGET = $(MODULE).lint
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
d29b2c4438482eb00488be49a1f5d6835f455546ab#
d29b2c4438482eb00488be49a1f5d6835f455546ab# lint pass one enforcement
d29b2c4438482eb00488be49a1f5d6835f455546ab#
d29b2c4438482eb00488be49a1f5d6835f455546abCFLAGS += $(CCVERBOSE)
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab#
d29b2c4438482eb00488be49a1f5d6835f455546ab# Depends on ip; this is for sharing common option management code
d29b2c4438482eb00488be49a1f5d6835f455546ab# which happens to live in "ip" kernel module only. Needed to do
d29b2c4438482eb00488be49a1f5d6835f455546ab# AF_UNIX socket options.
d29b2c4438482eb00488be49a1f5d6835f455546ab#
d29b2c4438482eb00488be49a1f5d6835f455546abLDFLAGS += -dy -Ndrv/ip
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab#
4f680cc668fa6cf678c531083400ade9a9c7934cAli Bahrami# For now, disable these lint checks; maintainers should endeavor
d29b2c4438482eb00488be49a1f5d6835f455546ab# to investigate and remove these for maximum lint coverage.
d29b2c4438482eb00488be49a1f5d6835f455546ab# Please do not carry these forward to new Makefiles.
d29b2c4438482eb00488be49a1f5d6835f455546ab#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
LINTTAGS += -erroff=E_STATIC_UNUSED
CERRWARN += -_gcc=-Wno-unused-function
CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-uninitialized
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/sparc/Makefile.targ