xref: /illumos-gate/usr/src/uts/intel/pmcs8001fw/Makefile (revision 2fd415f4d49063706ad7fbc8b867ebe4a580b7fd)
1*2fd415f4SDavid Hollister#
2*2fd415f4SDavid Hollister# CDDL HEADER START
3*2fd415f4SDavid Hollister#
4*2fd415f4SDavid Hollister# The contents of this file are subject to the terms of the
5*2fd415f4SDavid Hollister# Common Development and Distribution License (the "License").
6*2fd415f4SDavid Hollister# You may not use this file except in compliance with the License.
7*2fd415f4SDavid Hollister#
8*2fd415f4SDavid Hollister# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*2fd415f4SDavid Hollister# or http://www.opensolaris.org/os/licensing.
10*2fd415f4SDavid Hollister# See the License for the specific language governing permissions
11*2fd415f4SDavid Hollister# and limitations under the License.
12*2fd415f4SDavid Hollister#
13*2fd415f4SDavid Hollister# When distributing Covered Code, include this CDDL HEADER in each
14*2fd415f4SDavid Hollister# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*2fd415f4SDavid Hollister# If applicable, add the following below this CDDL HEADER, with the
16*2fd415f4SDavid Hollister# fields enclosed by brackets "[]" replaced with your own identifying
17*2fd415f4SDavid Hollister# information: Portions Copyright [yyyy] [name of copyright owner]
18*2fd415f4SDavid Hollister#
19*2fd415f4SDavid Hollister# CDDL HEADER END
20*2fd415f4SDavid Hollister#
21*2fd415f4SDavid Hollister#
22*2fd415f4SDavid Hollister# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23*2fd415f4SDavid Hollister# Use is subject to license terms.
24*2fd415f4SDavid Hollister#
25*2fd415f4SDavid Hollister#
26*2fd415f4SDavid Hollister# This makefile drives the production of pmcs8001fw firmware kernel module.
27*2fd415f4SDavid Hollister#
28*2fd415f4SDavid Hollister# intel architecture dependent
29*2fd415f4SDavid Hollister#
30*2fd415f4SDavid Hollister
31*2fd415f4SDavid Hollister#
32*2fd415f4SDavid Hollister#	Path to the base of the uts directory tree (usually /usr/src/uts).
33*2fd415f4SDavid Hollister#
34*2fd415f4SDavid HollisterUTSBASE   = ../../../../src/uts
35*2fd415f4SDavid Hollister
36*2fd415f4SDavid Hollister#
37*2fd415f4SDavid Hollister#	Define the module and object file sets.
38*2fd415f4SDavid Hollister#
39*2fd415f4SDavid HollisterMODULE		= pmcs8001fw
40*2fd415f4SDavid HollisterOBJECTS		= $(PMCS8001FW_OBJS:%=$(OBJS_DIR)/%)
41*2fd415f4SDavid HollisterLINTS		= $(PMCS8001FW_C_OBJS:%.o=$(LINTS_DIR)/%.ln)
42*2fd415f4SDavid HollisterROOTMODULE	= $(ROOT_PMCS_FW_DIR)/$(MODULE)
43*2fd415f4SDavid HollisterCONF_SRCDIR	= $(UTSBASE)/common/io/scsi/adapters/pmcs
44*2fd415f4SDavid Hollister
45*2fd415f4SDavid Hollister#
46*2fd415f4SDavid Hollister#	Include common rules.
47*2fd415f4SDavid Hollister#
48*2fd415f4SDavid Hollisterinclude $(UTSBASE)/intel/Makefile.intel
49*2fd415f4SDavid Hollisterinclude $(CONF_SRCDIR)/pmcs8001fw.version
50*2fd415f4SDavid Hollister
51*2fd415f4SDavid Hollister#
52*2fd415f4SDavid Hollister#	Define targets
53*2fd415f4SDavid Hollister#
54*2fd415f4SDavid HollisterALL_TARGET	= $(BINARY) $(CONFMOD) $(ITUMOD)
55*2fd415f4SDavid HollisterINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
56*2fd415f4SDavid HollisterLINT_TARGET	= $(MODULE).lint
57*2fd415f4SDavid Hollister
58*2fd415f4SDavid HollisterLDFLAGS		+= -dy
59*2fd415f4SDavid Hollister
60*2fd415f4SDavid Hollister#
61*2fd415f4SDavid Hollister#	Lint tags
62*2fd415f4SDavid Hollister#
63*2fd415f4SDavid Hollister
64*2fd415f4SDavid Hollister#
65*2fd415f4SDavid Hollister#	Extra flags
66*2fd415f4SDavid Hollister#
67*2fd415f4SDavid HollisterCPPFLAGS	+=	-DPMCS_FIRMWARE_VERSION=${PMCS_FW_VERSION} \
68*2fd415f4SDavid Hollister	-DPMCS_FIRMWARE_VERSION_STRING=\"${PMCS_FW_VERSION_STRING}\"
69*2fd415f4SDavid Hollister
70*2fd415f4SDavid Hollister
71*2fd415f4SDavid Hollister#
72*2fd415f4SDavid Hollister#	Default build targets.
73*2fd415f4SDavid Hollister#
74*2fd415f4SDavid Hollister.KEEP_STATE:
75*2fd415f4SDavid Hollister
76*2fd415f4SDavid Hollisterdef:		$(DEF_DEPS)
77*2fd415f4SDavid Hollister
78*2fd415f4SDavid Hollisterall:		$(ALL_DEPS)
79*2fd415f4SDavid Hollister
80*2fd415f4SDavid Hollisterclean:		$(CLEAN_DEPS)
81*2fd415f4SDavid Hollister
82*2fd415f4SDavid Hollisterclobber:	$(CLOBBER_DEPS)
83*2fd415f4SDavid Hollister
84*2fd415f4SDavid Hollisterlint:		$(LINT_DEPS)
85*2fd415f4SDavid Hollister
86*2fd415f4SDavid Hollistermodlintlib:	$(MODLINTLIB_DEPS)
87*2fd415f4SDavid Hollister
88*2fd415f4SDavid Hollisterclean.lint:	$(CLEAN_LINT_DEPS)
89*2fd415f4SDavid Hollister
90*2fd415f4SDavid Hollisterinstall:	$(INSTALL_DEPS)
91*2fd415f4SDavid Hollister
92*2fd415f4SDavid Hollister#
93*2fd415f4SDavid Hollister#	Include common targets.
94*2fd415f4SDavid Hollister#
95*2fd415f4SDavid Hollisterinclude $(UTSBASE)/intel/Makefile.targ
96*2fd415f4SDavid Hollister
97