xref: /titanic_50/usr/src/uts/intel/qlc_fw_8100/Makefile (revision 5dfd244acc8f144280c5bc8f69ed941185fc3ccc)
1*5dfd244aSDaniel Beauregard#
2*5dfd244aSDaniel Beauregard# CDDL HEADER START
3*5dfd244aSDaniel Beauregard#
4*5dfd244aSDaniel Beauregard# The contents of this file are subject to the terms of the
5*5dfd244aSDaniel Beauregard# Common Development and Distribution License (the "License").
6*5dfd244aSDaniel Beauregard# You may not use this file except in compliance with the License.
7*5dfd244aSDaniel Beauregard#
8*5dfd244aSDaniel Beauregard# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*5dfd244aSDaniel Beauregard# or http://www.opensolaris.org/os/licensing.
10*5dfd244aSDaniel Beauregard# See the License for the specific language governing permissions
11*5dfd244aSDaniel Beauregard# and limitations under the License.
12*5dfd244aSDaniel Beauregard#
13*5dfd244aSDaniel Beauregard# When distributing Covered Code, include this CDDL HEADER in each
14*5dfd244aSDaniel Beauregard# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*5dfd244aSDaniel Beauregard# If applicable, add the following below this CDDL HEADER, with the
16*5dfd244aSDaniel Beauregard# fields enclosed by brackets "[]" replaced with your own identifying
17*5dfd244aSDaniel Beauregard# information: Portions Copyright [yyyy] [name of copyright owner]
18*5dfd244aSDaniel Beauregard#
19*5dfd244aSDaniel Beauregard# CDDL HEADER END
20*5dfd244aSDaniel Beauregard#
21*5dfd244aSDaniel Beauregard#
22*5dfd244aSDaniel Beauregard# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23*5dfd244aSDaniel Beauregard# Use is subject to license terms.
24*5dfd244aSDaniel Beauregard#
25*5dfd244aSDaniel Beauregard# This makefile drives the production of qlc_fw_8100 firmware module.
26*5dfd244aSDaniel Beauregard#
27*5dfd244aSDaniel Beauregard# Path to the base of the uts directory tree (usually /usr/src/uts).
28*5dfd244aSDaniel Beauregard#
29*5dfd244aSDaniel BeauregardUTSBASE	= ../..
30*5dfd244aSDaniel Beauregard
31*5dfd244aSDaniel Beauregard#
32*5dfd244aSDaniel Beauregard#	Define the module and object file sets.
33*5dfd244aSDaniel Beauregard#
34*5dfd244aSDaniel BeauregardMODULE		= qlc_fw_8100
35*5dfd244aSDaniel BeauregardOBJECTS		= $(QLC_FW_8100_OBJS:%=$(OBJS_DIR)/%)
36*5dfd244aSDaniel BeauregardLINTS		= $(QLC_FW_8100_OBJS:%.o=$(LINTS_DIR)/%.ln)
37*5dfd244aSDaniel BeauregardROOTMODULE	= $(ROOT_QLC_FW_DIR)/$(MODULE)
38*5dfd244aSDaniel BeauregardCONF_SRCDIR	= $(UTSBASE)/common/io/fibre-channel/fca/qlc
39*5dfd244aSDaniel Beauregard
40*5dfd244aSDaniel Beauregard
41*5dfd244aSDaniel Beauregard#
42*5dfd244aSDaniel Beauregard#	Include common rules.
43*5dfd244aSDaniel Beauregard#
44*5dfd244aSDaniel Beauregardinclude $(UTSBASE)/Makefile.uts
45*5dfd244aSDaniel Beauregardinclude $(UTSBASE)/intel/Makefile.intel
46*5dfd244aSDaniel Beauregard
47*5dfd244aSDaniel Beauregard#
48*5dfd244aSDaniel Beauregard#	Define targets
49*5dfd244aSDaniel Beauregard#
50*5dfd244aSDaniel BeauregardALL_TARGET	= $(BINARY) $(CONFMOD) $(ITUMOD)
51*5dfd244aSDaniel BeauregardLINT_TARGET	= $(MODULE).lint
52*5dfd244aSDaniel BeauregardINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
53*5dfd244aSDaniel Beauregard
54*5dfd244aSDaniel BeauregardLDFLAGS		+= -dy -Nmisc/fctl
55*5dfd244aSDaniel Beauregard
56*5dfd244aSDaniel Beauregard#
57*5dfd244aSDaniel Beauregard#	Lint tags
58*5dfd244aSDaniel Beauregard#
59*5dfd244aSDaniel Beauregard
60*5dfd244aSDaniel BeauregardLINTTAGS	+= -erroff=E_NAME_MULTIPLY_DEF2
61*5dfd244aSDaniel Beauregard
62*5dfd244aSDaniel Beauregard#
63*5dfd244aSDaniel Beauregard#	Default build targets.
64*5dfd244aSDaniel Beauregard#
65*5dfd244aSDaniel Beauregard.KEEP_STATE:
66*5dfd244aSDaniel Beauregard
67*5dfd244aSDaniel Beauregarddef:		$(DEF_DEPS)
68*5dfd244aSDaniel Beauregard
69*5dfd244aSDaniel Beauregardall:		$(ALL_DEPS)
70*5dfd244aSDaniel Beauregard
71*5dfd244aSDaniel Beauregardclean:		$(CLEAN_DEPS)
72*5dfd244aSDaniel Beauregard
73*5dfd244aSDaniel Beauregardclobber:	$(CLOBBER_DEPS)
74*5dfd244aSDaniel Beauregard
75*5dfd244aSDaniel Beauregardlint:		$(LINT_DEPS)
76*5dfd244aSDaniel Beauregard
77*5dfd244aSDaniel Beauregardmodlintlib:	$(MODLINTLIB_DEPS)
78*5dfd244aSDaniel Beauregard
79*5dfd244aSDaniel Beauregardclean.lint:	$(CLEAN_LINT_DEPS)
80*5dfd244aSDaniel Beauregard
81*5dfd244aSDaniel Beauregardinstall:	$(INSTALL_DEPS)
82*5dfd244aSDaniel Beauregard
83*5dfd244aSDaniel Beauregard#
84*5dfd244aSDaniel Beauregard#	Include common targets.
85*5dfd244aSDaniel Beauregard#
86*5dfd244aSDaniel Beauregardinclude $(UTSBASE)/intel/Makefile.targ
87