Makefile revision ff3124eff995e6cd8ebd8c6543648e0670920034
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# CDDL HEADER START
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# The contents of this file are subject to the terms of the
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# Common Development and Distribution License (the "License").
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# You may not use this file except in compliance with the License.
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# or http://www.opensolaris.org/os/licensing.
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# See the License for the specific language governing permissions
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# and limitations under the License.
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# When distributing Covered Code, include this CDDL HEADER in each
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# If applicable, add the following below this CDDL HEADER, with the
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# fields enclosed by brackets "[]" replaced with your own identifying
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# information: Portions Copyright [yyyy] [name of copyright owner]
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# CDDL HEADER END
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
4c91d6c6d1d6ebdbbead0feb5d56622622f0498dVenugopal Iyer# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# Use is subject to license terms.
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# ident "%Z%%M% %I% %E% SMI"
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# This makefile drives the production of the pcan driver kernel module.
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# intel implementation architecture dependent
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# Path to the base of the uts directory tree (usually /usr/src/uts).
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuramUTSBASE = ../..
06db247c678f0e3956535e8a6dec31d6c2108827raghuram
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# Define the module and object file sets.
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuramMODULE = pcan
06db247c678f0e3956535e8a6dec31d6c2108827raghuramOBJECTS = $(PCAN_OBJS:%=$(OBJS_DIR)/%)
06db247c678f0e3956535e8a6dec31d6c2108827raghuramLINTS = $(PCAN_OBJS:%.o=$(LINTS_DIR)/%.ln)
06db247c678f0e3956535e8a6dec31d6c2108827raghuramROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
06db247c678f0e3956535e8a6dec31d6c2108827raghuram
06db247c678f0e3956535e8a6dec31d6c2108827raghuram
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# Include common rules.
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuraminclude $(UTSBASE)/intel/Makefile.intel
06db247c678f0e3956535e8a6dec31d6c2108827raghuram
51aa9d07dcd9c8ed955768d19058f8c15460fd7csb#
51aa9d07dcd9c8ed955768d19058f8c15460fd7csb# Define targets
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuramALL_TARGET = $(BINARY) $(ITUMOD)
06db247c678f0e3956535e8a6dec31d6c2108827raghuramLINT_TARGET = $(MODULE).lint
06db247c678f0e3956535e8a6dec31d6c2108827raghuramINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng#
1107ea9346159bcc8ea154084897667347c4e6d5Sriharsha Basavapatna# Override defaults to build a unique, local modstubs.o.
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
06db247c678f0e3956535e8a6dec31d6c2108827raghuramMODSTUBS_DIR = $(OBJS_DIR)
06db247c678f0e3956535e8a6dec31d6c2108827raghuramCLEANFILES += $(MODSTUBS_O)
06db247c678f0e3956535e8a6dec31d6c2108827raghuramINC_PATH += -I$(UTSBASE)/common/pcmcia
06db247c678f0e3956535e8a6dec31d6c2108827raghuram
bce0a86e5d4d65341c5aca6da2595c848297b2aaWENTAO YANG#
06db247c678f0e3956535e8a6dec31d6c2108827raghuram# lint pass one enforcement
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
da14cebe459d3275048785f25bd869cb09b5307fEric ChengCFLAGS += -v
06db247c678f0e3956535e8a6dec31d6c2108827raghuram
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng# STREAMS API limitations force us to turn off these lint checks.
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng#
da14cebe459d3275048785f25bd869cb09b5307fEric ChengLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
06db247c678f0e3956535e8a6dec31d6c2108827raghuram
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng# dependency
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng#
da14cebe459d3275048785f25bd869cb09b5307fEric ChengLDFLAGS += -dy -Nmisc/mac -Ndrv/ip
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng#
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng# Default build targets.
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng#
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng.KEEP_STATE:
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng
da14cebe459d3275048785f25bd869cb09b5307fEric Chengdef: $(DEF_DEPS)
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng
da14cebe459d3275048785f25bd869cb09b5307fEric Chengall: $(ALL_DEPS)
7b1f684a14f99a2b9b1b2561f484ff648eff6d9bSriharsha Basavapatna
bce0a86e5d4d65341c5aca6da2595c848297b2aaWENTAO YANGclean: $(CLEAN_DEPS)
bce0a86e5d4d65341c5aca6da2595c848297b2aaWENTAO YANG
1107ea9346159bcc8ea154084897667347c4e6d5Sriharsha Basavapatnaclobber: $(CLOBBER_DEPS)
1107ea9346159bcc8ea154084897667347c4e6d5Sriharsha Basavapatna
1107ea9346159bcc8ea154084897667347c4e6d5Sriharsha Basavapatnalint: $(LINT_DEPS)
1107ea9346159bcc8ea154084897667347c4e6d5Sriharsha Basavapatna
06db247c678f0e3956535e8a6dec31d6c2108827raghurammodlintlib: $(MODLINTLIB_DEPS)
06db247c678f0e3956535e8a6dec31d6c2108827raghuram
06db247c678f0e3956535e8a6dec31d6c2108827raghuramclean.lint: $(CLEAN_LINT_DEPS)
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng
06db247c678f0e3956535e8a6dec31d6c2108827raghuraminstall: $(INSTALL_DEPS)
06db247c678f0e3956535e8a6dec31d6c2108827raghuram
06db247c678f0e3956535e8a6dec31d6c2108827raghuram#
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng# Include common targets.
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng#
da14cebe459d3275048785f25bd869cb09b5307fEric Chenginclude $(UTSBASE)/intel/Makefile.targ
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng