xref: /illumos-gate/usr/src/uts/intel/qlge/Makefile (revision 0dc2366f7b9f9f36e10909b1e95edbf2a261c2ac)
1bafec742SSukumar Swaminathan#
2bafec742SSukumar Swaminathan# CDDL HEADER START
3bafec742SSukumar Swaminathan#
4bafec742SSukumar Swaminathan# The contents of this file are subject to the terms of the
5bafec742SSukumar Swaminathan# Common Development and Distribution License (the "License").
6bafec742SSukumar Swaminathan# You may not use this file except in compliance with the License.
7bafec742SSukumar Swaminathan#
8bafec742SSukumar Swaminathan# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9bafec742SSukumar Swaminathan# or http://www.opensolaris.org/os/licensing.
10bafec742SSukumar Swaminathan# See the License for the specific language governing permissions
11bafec742SSukumar Swaminathan# and limitations under the License.
12bafec742SSukumar Swaminathan#
13bafec742SSukumar Swaminathan# When distributing Covered Code, include this CDDL HEADER in each
14bafec742SSukumar Swaminathan# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15bafec742SSukumar Swaminathan# If applicable, add the following below this CDDL HEADER, with the
16bafec742SSukumar Swaminathan# fields enclosed by brackets "[]" replaced with your own identifying
17bafec742SSukumar Swaminathan# information: Portions Copyright [yyyy] [name of copyright owner]
18bafec742SSukumar Swaminathan#
19bafec742SSukumar Swaminathan# CDDL HEADER END
20bafec742SSukumar Swaminathan#
21bafec742SSukumar Swaminathan#
22*0dc2366fSVenugopal Iyer# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
23bafec742SSukumar Swaminathan# Use is subject to license terms.
24bafec742SSukumar Swaminathan#
25bafec742SSukumar Swaminathan# This makefile drives the production of the qlge driver kernel module.
26bafec742SSukumar Swaminathan#
27bafec742SSukumar Swaminathan# Path to the base of the uts directory tree (usually /usr/src/uts).
28bafec742SSukumar Swaminathan#
29bafec742SSukumar SwaminathanUTSBASE		= ../..
30bafec742SSukumar SwaminathanCOMMON_BASE	= ../../../common
31bafec742SSukumar Swaminathan
32bafec742SSukumar Swaminathan
33bafec742SSukumar SwaminathanARCHDIR:sh = cd ..; basename `pwd`
34bafec742SSukumar Swaminathan
35bafec742SSukumar Swaminathan#
36bafec742SSukumar Swaminathan#	Define the module and object file sets.
37bafec742SSukumar Swaminathan#
38bafec742SSukumar SwaminathanMODULE		= qlge
39bafec742SSukumar SwaminathanOBJECTS		= $(QLGE_OBJS:%=$(OBJS_DIR)/%)
40bafec742SSukumar SwaminathanLINTS		= $(QLGE_OBJS:%.o=$(LINTS_DIR)/%.ln)
41bafec742SSukumar SwaminathanROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
42bafec742SSukumar Swaminathan
43bafec742SSukumar Swaminathan#
44bafec742SSukumar Swaminathan#	Include common rules.
45bafec742SSukumar Swaminathan#
46bafec742SSukumar Swaminathaninclude ../Makefile.$(ARCHDIR)
47bafec742SSukumar Swaminathan
48bafec742SSukumar Swaminathan#
49bafec742SSukumar Swaminathan#	Define targets
50bafec742SSukumar Swaminathan#
51bafec742SSukumar SwaminathanALL_TARGET	= $(BINARY)
52bafec742SSukumar SwaminathanLINT_TARGET	= $(MODULE).lint
53bafec742SSukumar SwaminathanINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
54bafec742SSukumar Swaminathan
55bafec742SSukumar Swaminathan#
56bafec742SSukumar Swaminathan#	Overrides and depends_on
57bafec742SSukumar Swaminathan#
58bafec742SSukumar SwaminathanMODSTUBS_DIR	 = $(OBJS_DIR)
59bafec742SSukumar Swaminathan
60bafec742SSukumar SwaminathanINC_PATH	+= -I$(UTSBASE)/common/sys/fibre-channel/fca/qlge
61bafec742SSukumar Swaminathan
62bafec742SSukumar SwaminathanLDFLAGS		+= -dy -Nmisc/mac -Ndrv/ip
63bafec742SSukumar Swaminathan
64bafec742SSukumar SwaminathanC99MODE=	-xc99=%all
65bafec742SSukumar SwaminathanC99LMODE=	-Xc99=%all
66bafec742SSukumar Swaminathan
67bafec742SSukumar Swaminathan#
68bafec742SSukumar Swaminathan#	Default build targets.
69bafec742SSukumar Swaminathan#
70bafec742SSukumar Swaminathan.KEEP_STATE:
71bafec742SSukumar Swaminathan
72bafec742SSukumar Swaminathandef:		$(DEF_DEPS)
73bafec742SSukumar Swaminathan
74bafec742SSukumar Swaminathanall:		$(ALL_DEPS)
75bafec742SSukumar Swaminathan
76bafec742SSukumar Swaminathanclean:		$(CLEAN_DEPS)
77bafec742SSukumar Swaminathan
78bafec742SSukumar Swaminathanclobber:	$(CLOBBER_DEPS)
79bafec742SSukumar Swaminathan
80bafec742SSukumar Swaminathanlint:		$(LINT_DEPS)
81bafec742SSukumar Swaminathan
82bafec742SSukumar Swaminathanmodlintlib:	$(MODLINTLIB_DEPS)
83bafec742SSukumar Swaminathan
84bafec742SSukumar Swaminathanclean.lint:	$(CLEAN_LINT_DEPS)
85bafec742SSukumar Swaminathan
86bafec742SSukumar Swaminathaninstall:	$(INSTALL_DEPS)
87bafec742SSukumar Swaminathan
88bafec742SSukumar Swaminathan#
89bafec742SSukumar Swaminathan#	Include common targets.
90bafec742SSukumar Swaminathan#
91bafec742SSukumar Swaminathaninclude ../Makefile.targ
92