Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# CDDL HEADER START
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# The contents of this file are subject to the terms of the
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# Common Development and Distribution License, Version 1.0 only
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# (the "License"). You may not use this file except in compliance
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# with the License.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
19c7b1a0293498a3e36692c59646ed6e15ffc8d0Tinderbox User# or http://www.opensolaris.org/os/licensing.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# See the License for the specific language governing permissions
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# and limitations under the License.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# If applicable, add the following below this CDDL HEADER, with the
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
c40265eba0c99708887d68e67901924065ba2514Brian Wellington#
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# CDDL HEADER END
c40265eba0c99708887d68e67901924065ba2514Brian Wellington#
c40265eba0c99708887d68e67901924065ba2514Brian Wellington#
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# uts/sun4v/qcn/Makefile
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# Use is subject to license terms.
c40265eba0c99708887d68e67901924065ba2514Brian Wellington#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#ident "%Z%%M% %I% %E% SMI"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# This makefile drives the production of the qcn driver kernel module.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark Andrews# sun4v implementation architecture dependent
fd4dcaddae08b0fb28b0ec4faf26a9d8b1f923caAutomatic Updater#
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews
6a6ceba6fe09c81558362f238dd727576af7108dTinderbox User#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Path to the base of the uts directory tree (usually /usr/src/uts).
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinUTSBASE = ../..
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Define the module and object file sets.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark AndrewsMODULE = qcn
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinOBJECTS = $(QCN_OBJS:%=$(OBJS_DIR)/%)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinLINTS = $(QCN_OBJS:%.o=$(LINTS_DIR)/%.ln)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
c40265eba0c99708887d68e67901924065ba2514Brian Wellington
c40265eba0c99708887d68e67901924065ba2514Brian Wellington#
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# Include common rules.
c40265eba0c99708887d68e67901924065ba2514Brian Wellington#
c40265eba0c99708887d68e67901924065ba2514Brian Wellingtoninclude $(UTSBASE)/sun4v/Makefile.sun4v
c40265eba0c99708887d68e67901924065ba2514Brian Wellington
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# Override defaults to build a unique, local modstubs.o.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntMODSTUBS_DIR = $(OBJS_DIR)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCLEANFILES += $(MODSTUBS_O)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Define targets
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonALL_TARGET = $(BINARY)
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonLINT_TARGET = $(MODULE).lint
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark Andrews#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# lint pass one enforcement
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Hunt#
85c5ed3577655f4f710f0af5ee93edd71c336055Evan HuntCFLAGS += $(CCVERBOSE)
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Hunt
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Hunt#
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Hunt# Default build targets.
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Hunt#
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Hunt.KEEP_STATE:
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Hunt
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Huntdef: $(DEF_DEPS)
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Hunt
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Huntall: $(ALL_DEPS)
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Hunt
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Huntclean: $(CLEAN_DEPS)
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Hunt
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Huntclobber: $(CLOBBER_DEPS)
c40265eba0c99708887d68e67901924065ba2514Brian Wellington
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntlint: $(LINT_DEPS)
c40265eba0c99708887d68e67901924065ba2514Brian Wellington
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntmodlintlib: $(MODLINTLIB_DEPS)
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark Andrews
c40265eba0c99708887d68e67901924065ba2514Brian Wellingtonclean.lint: $(CLEAN_LINT_DEPS)
c40265eba0c99708887d68e67901924065ba2514Brian Wellington
c40265eba0c99708887d68e67901924065ba2514Brian Wellingtoninstall: $(INSTALL_DEPS)
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews#
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews# Include common targets.
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews#
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrewsinclude $(UTSBASE)/$(PLATFORM)/Makefile.targ
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews