Makefile revision 4df55fde49134f9735f84011f23a767c75e393c7
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe#
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# CDDL HEADER START
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe#
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# The contents of this file are subject to the terms of the
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# Common Development and Distribution License (the "License").
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# You may not use this file except in compliance with the License.
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe#
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# or http://www.opensolaris.org/os/licensing.
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# See the License for the specific language governing permissions
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# and limitations under the License.
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe#
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# When distributing Covered Code, include this CDDL HEADER in each
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# If applicable, add the following below this CDDL HEADER, with the
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# fields enclosed by brackets "[]" replaced with your own identifying
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# information: Portions Copyright [yyyy] [name of copyright owner]
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac#
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# CDDL HEADER END
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe#
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe#
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# Use is subject to license terms.
a3d3ab94806056d2355afea6fe8daac41059b9fbludovicp#
0f8553e2af5fc49a510ecfcfc93e66d06713f631ludo#
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# This makefile drives the production of the sun4v IO Performance Counter Driver
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe#
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe# sun4v implementation architecture dependent
0f8553e2af5fc49a510ecfcfc93e66d06713f631ludo#
0f8553e2af5fc49a510ecfcfc93e66d06713f631ludo
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe#
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara# Path to the base of the uts directory tree (usually /usr/src/uts).
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara#
266c5071a91fda6a5159b08ea8d45261228d03d5neil_a_wilsonUTSBASE = ../..
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe
9da44d3de0a7180285a77b7e8d2426a72aca249ejvergara#
# Define the module and object file sets.
#
MODULE = iospc
OBJECTS = $(IOSPC_OBJS:%=$(OBJS_DIR)/%)
LINTS = $(IOSPC_OBJS:%.o=$(LINTS_DIR)/%.ln)
ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
CONF_SRCDIR = $(UTSBASE)/sun4v/io/iospc
#
# Include common rules.
#
include $(UTSBASE)/sun4v/Makefile.sun4v
#
# Define targets
#
ALL_TARGET = $(BINARY) $(SRC_CONFFILE)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
#
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
CFLAGS += -dalign -DMODULE_NAME=\"$(MODULE)\"
LINTFLAGS += -DMODULE_NAME=\"$(MODULE)\"
#
# Module Dependencies
#
LDFLAGS += -dy -Nmisc/ds
INC_PATH += -I$(UTSBASE)/sun4v/io/iospc
#
# 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)/$(PLATFORM)/Makefile.targ