12fd415f4SDavid Hollister# 22fd415f4SDavid Hollister# CDDL HEADER START 32fd415f4SDavid Hollister# 42fd415f4SDavid Hollister# The contents of this file are subject to the terms of the 52fd415f4SDavid Hollister# Common Development and Distribution License (the "License"). 62fd415f4SDavid Hollister# You may not use this file except in compliance with the License. 72fd415f4SDavid Hollister# 82fd415f4SDavid Hollister# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 92fd415f4SDavid Hollister# or http://www.opensolaris.org/os/licensing. 102fd415f4SDavid Hollister# See the License for the specific language governing permissions 112fd415f4SDavid Hollister# and limitations under the License. 122fd415f4SDavid Hollister# 132fd415f4SDavid Hollister# When distributing Covered Code, include this CDDL HEADER in each 142fd415f4SDavid Hollister# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 152fd415f4SDavid Hollister# If applicable, add the following below this CDDL HEADER, with the 162fd415f4SDavid Hollister# fields enclosed by brackets "[]" replaced with your own identifying 172fd415f4SDavid Hollister# information: Portions Copyright [yyyy] [name of copyright owner] 182fd415f4SDavid Hollister# 192fd415f4SDavid Hollister# CDDL HEADER END 202fd415f4SDavid Hollister# 212fd415f4SDavid Hollister# 222fd415f4SDavid Hollister# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 232fd415f4SDavid Hollister# Use is subject to license terms. 242fd415f4SDavid Hollister# 252fd415f4SDavid Hollister# 262fd415f4SDavid Hollister# This makefile drives the production of pmcs8001fw firmware kernel module. 272fd415f4SDavid Hollister# 282fd415f4SDavid Hollister# intel architecture dependent 292fd415f4SDavid Hollister# 302fd415f4SDavid Hollister 312fd415f4SDavid Hollister# 322fd415f4SDavid Hollister# Path to the base of the uts directory tree (usually /usr/src/uts). 332fd415f4SDavid Hollister# 34*d363b1b0SRichard LoweUTSBASE = ../.. 352fd415f4SDavid Hollister 362fd415f4SDavid Hollister# 372fd415f4SDavid Hollister# Define the module and object file sets. 382fd415f4SDavid Hollister# 392fd415f4SDavid HollisterMODULE = pmcs8001fw 402fd415f4SDavid HollisterOBJECTS = $(PMCS8001FW_OBJS:%=$(OBJS_DIR)/%) 412fd415f4SDavid HollisterROOTMODULE = $(ROOT_PMCS_FW_DIR)/$(MODULE) 422fd415f4SDavid HollisterCONF_SRCDIR = $(UTSBASE)/common/io/scsi/adapters/pmcs 432fd415f4SDavid Hollister 442fd415f4SDavid Hollister# 452fd415f4SDavid Hollister# Include common rules. 462fd415f4SDavid Hollister# 472fd415f4SDavid Hollisterinclude $(UTSBASE)/intel/Makefile.intel 482fd415f4SDavid Hollisterinclude $(CONF_SRCDIR)/pmcs8001fw.version 492fd415f4SDavid Hollister 502fd415f4SDavid Hollister# 512fd415f4SDavid Hollister# Define targets 522fd415f4SDavid Hollister# 532fd415f4SDavid HollisterALL_TARGET = $(BINARY) $(CONFMOD) $(ITUMOD) 542fd415f4SDavid HollisterINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 552fd415f4SDavid Hollister 562fd415f4SDavid Hollister# 572fd415f4SDavid Hollister# Extra flags 582fd415f4SDavid Hollister# 592fd415f4SDavid HollisterCPPFLAGS += -DPMCS_FIRMWARE_VERSION=${PMCS_FW_VERSION} \ 602fd415f4SDavid Hollister -DPMCS_FIRMWARE_VERSION_STRING=\"${PMCS_FW_VERSION_STRING}\" 612fd415f4SDavid Hollister 622fd415f4SDavid Hollister 632fd415f4SDavid Hollister# 642fd415f4SDavid Hollister# Default build targets. 652fd415f4SDavid Hollister# 662fd415f4SDavid Hollister.KEEP_STATE: 672fd415f4SDavid Hollister 682fd415f4SDavid Hollisterdef: $(DEF_DEPS) 692fd415f4SDavid Hollister 702fd415f4SDavid Hollisterall: $(ALL_DEPS) 712fd415f4SDavid Hollister 722fd415f4SDavid Hollisterclean: $(CLEAN_DEPS) 732fd415f4SDavid Hollister 742fd415f4SDavid Hollisterclobber: $(CLOBBER_DEPS) 752fd415f4SDavid Hollister 762fd415f4SDavid Hollisterinstall: $(INSTALL_DEPS) 772fd415f4SDavid Hollister 782fd415f4SDavid Hollister# 792fd415f4SDavid Hollister# Include common targets. 802fd415f4SDavid Hollister# 812fd415f4SDavid Hollisterinclude $(UTSBASE)/intel/Makefile.targ 822fd415f4SDavid Hollister 83