xref: /illumos-gate/usr/src/uts/intel/qlge/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
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#
220dc2366fSVenugopal Iyer# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
23bafec742SSukumar Swaminathan# Use is subject to license terms.
24bafec742SSukumar Swaminathan#
25b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
26b6b206fcSJohn Levon
27bafec742SSukumar Swaminathan#
28bafec742SSukumar Swaminathan# Path to the base of the uts directory tree (usually /usr/src/uts).
29bafec742SSukumar Swaminathan#
30bafec742SSukumar SwaminathanUTSBASE		= ../..
31bafec742SSukumar SwaminathanCOMMON_BASE	= ../../../common
32bafec742SSukumar Swaminathan
33bafec742SSukumar Swaminathan
34bafec742SSukumar SwaminathanARCHDIR:sh = cd ..; basename `pwd`
35bafec742SSukumar Swaminathan
36bafec742SSukumar Swaminathan#
37bafec742SSukumar Swaminathan#	Define the module and object file sets.
38bafec742SSukumar Swaminathan#
39bafec742SSukumar SwaminathanMODULE		= qlge
40bafec742SSukumar SwaminathanOBJECTS		= $(QLGE_OBJS:%=$(OBJS_DIR)/%)
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 SwaminathanINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
53bafec742SSukumar Swaminathan
54bafec742SSukumar Swaminathan#
55bafec742SSukumar Swaminathan#	Overrides and depends_on
56bafec742SSukumar Swaminathan#
57bafec742SSukumar SwaminathanMODSTUBS_DIR	 = $(OBJS_DIR)
58bafec742SSukumar Swaminathan
59bafec742SSukumar SwaminathanINC_PATH	+= -I$(UTSBASE)/common/sys/fibre-channel/fca/qlge
60bafec742SSukumar Swaminathan
61*82d0151aSRichard LoweLDFLAGS		+= -Nmisc/mac -Ndrv/ip
62bafec742SSukumar Swaminathan
637014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
64d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
657014882cSRichard Lowe
66b6b206fcSJohn Levon# needs work
67b6b206fcSJohn Levon$(OBJS_DIR)/qlge.o := SMOFF += deref_check
68b6b206fcSJohn Levon
69bafec742SSukumar Swaminathan#
70bafec742SSukumar Swaminathan#	Default build targets.
71bafec742SSukumar Swaminathan#
72bafec742SSukumar Swaminathan.KEEP_STATE:
73bafec742SSukumar Swaminathan
74bafec742SSukumar Swaminathandef:		$(DEF_DEPS)
75bafec742SSukumar Swaminathan
76bafec742SSukumar Swaminathanall:		$(ALL_DEPS)
77bafec742SSukumar Swaminathan
78bafec742SSukumar Swaminathanclean:		$(CLEAN_DEPS)
79bafec742SSukumar Swaminathan
80bafec742SSukumar Swaminathanclobber:	$(CLOBBER_DEPS)
81bafec742SSukumar Swaminathan
82bafec742SSukumar Swaminathaninstall:	$(INSTALL_DEPS)
83bafec742SSukumar Swaminathan
84bafec742SSukumar Swaminathan#
85bafec742SSukumar Swaminathan#	Include common targets.
86bafec742SSukumar Swaminathan#
87bafec742SSukumar Swaminathaninclude ../Makefile.targ
88