Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
1620N/A#
1620N/A# CDDL HEADER START
1620N/A#
1620N/A# The contents of this file are subject to the terms of the
1620N/A# Common Development and Distribution License (the "License").
1620N/A# You may not use this file except in compliance with the License.
1620N/A#
1620N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1620N/A# or http://www.opensolaris.org/os/licensing.
1620N/A# See the License for the specific language governing permissions
1620N/A# and limitations under the License.
1620N/A#
1620N/A# When distributing Covered Code, include this CDDL HEADER in each
1620N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1620N/A# If applicable, add the following below this CDDL HEADER, with the
1620N/A# fields enclosed by brackets "[]" replaced with your own identifying
1620N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1620N/A#
1620N/A# CDDL HEADER END
1620N/A#
1620N/A
1620N/A#
1620N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
1620N/A# Use is subject to license terms.
1620N/A#
1620N/A
1620N/A#ident "%Z%%M% %I% %E% SMI"
1620N/A#
1620N/A# This makefile drives the production of the PCIC driver kernel module.
1620N/A#
1620N/A# sparc architecture dependent
1620N/A#
1620N/A
1620N/A#
1620N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
1620N/A#
1620N/AUTSBASE = ../..
1620N/A
1620N/A#
1620N/A# Define the module and object file sets.
1620N/A#
1620N/AMODULE = pcic
1620N/AOBJECTS = $(PCIC_OBJS:%=$(OBJS_DIR)/%)
1620N/ALINTS = $(PCIC_OBJS:%.o=$(LINTS_DIR)/%.ln)
1620N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
1620N/ACONF_SRCDIR = $(UTSBASE)/common/io
1620N/A
1620N/A#
1620N/A# Include common rules.
1620N/A#
1620N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
1620N/A
1620N/A#
1620N/A# Define targets
1620N/A#
1620N/AALL_TARGET = $(BINARY) $(SRC_CONFILE)
1620N/ALINT_TARGET = $(MODULE).lint
1620N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
1620N/A
1620N/A#
1620N/A# Include sun4u specific header files
1620N/A#
1620N/AINC_PATH += -I$(UTSBASE)/sun4u
1620N/A
1620N/A#
1620N/A# Overrides
1620N/A#
1620N/ADEF_BUILDS = $(DEF_BUILDS64)
1620N/AALL_BUILDS = $(ALL_BUILDS64)
1620N/ACLEANLINTFILES += $(LINT64_FILES)
1620N/A
1620N/A#
1620N/A# lint pass one enforcement
1620N/A#
1620N/ACFLAGS += $(CCVERBOSE)
1620N/ACPPFLAGS += -DCARDBUS -DHOTPLUG
1620N/A
1620N/A# dependency
1620N/ALDFLAGS += -dy -Nmisc/busra -Nmisc/pcmcia -Nmisc/cardbus
1620N/A
1630N/A#
1630N/A# For now, disable these lint checks; maintainers should endeavor
1630N/A# to investigate and remove these for maximum lint coverage.
1620N/A# Please do not carry these forward to new Makefiles.
1620N/A#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
LINTTAGS += -erroff=E_STATIC_UNUSED
LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS) lint64
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
# Include common targets.
#
include $(UTSBASE)/sparc/Makefile.targ