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