xref: /illumos-gate/usr/src/uts/intel/oce/Makefile (revision d363b1b0cb9ef6d6f3febdd8d1cba46507e97098)
14d0e5007SSukumar Swaminathan#
24d0e5007SSukumar Swaminathan# CDDL HEADER START
34d0e5007SSukumar Swaminathan#
44d0e5007SSukumar Swaminathan# The contents of this file are subject to the terms of the
54d0e5007SSukumar Swaminathan# Common Development and Distribution License (the "License").
64d0e5007SSukumar Swaminathan# You may not use this file except in compliance with the License.
74d0e5007SSukumar Swaminathan#
84d0e5007SSukumar Swaminathan# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
94d0e5007SSukumar Swaminathan# or http://www.opensolaris.org/os/licensing.
104d0e5007SSukumar Swaminathan# See the License for the specific language governing permissions
114d0e5007SSukumar Swaminathan# and limitations under the License.
124d0e5007SSukumar Swaminathan#
134d0e5007SSukumar Swaminathan# When distributing Covered Code, include this CDDL HEADER in each
144d0e5007SSukumar Swaminathan# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
154d0e5007SSukumar Swaminathan# If applicable, add the following below this CDDL HEADER, with the
164d0e5007SSukumar Swaminathan# fields enclosed by brackets "[]" replaced with your own identifying
174d0e5007SSukumar Swaminathan# information: Portions Copyright [yyyy] [name of copyright owner]
184d0e5007SSukumar Swaminathan#
194d0e5007SSukumar Swaminathan# CDDL HEADER END
204d0e5007SSukumar Swaminathan#
214d0e5007SSukumar Swaminathan#
224d0e5007SSukumar Swaminathan# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
234d0e5007SSukumar Swaminathan# Use is subject to license terms.
244d0e5007SSukumar Swaminathan#
254d0e5007SSukumar Swaminathan# This makefile drives the production of the oce driver kernel module.
264d0e5007SSukumar Swaminathan#
274d0e5007SSukumar Swaminathan# Path to the base of the uts directory tree (usually /usr/src/uts).
284d0e5007SSukumar Swaminathan#
29*d363b1b0SRichard LoweUTSBASE		= ../..
304d0e5007SSukumar Swaminathan
314d0e5007SSukumar Swaminathan#
324d0e5007SSukumar Swaminathan#	Define the module and object file sets.
334d0e5007SSukumar Swaminathan#
344d0e5007SSukumar SwaminathanMODULE		= oce
354d0e5007SSukumar SwaminathanOBJECTS		= $(OCE_OBJS:%=$(OBJS_DIR)/%)
364d0e5007SSukumar SwaminathanROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
374d0e5007SSukumar Swaminathan
384d0e5007SSukumar Swaminathan#
394d0e5007SSukumar Swaminathan#	Include common rules.
404d0e5007SSukumar Swaminathan#
414d0e5007SSukumar SwaminathanARCHDIR		= intel
424d0e5007SSukumar Swaminathaninclude ../Makefile.$(ARCHDIR)
434d0e5007SSukumar Swaminathan
444d0e5007SSukumar Swaminathan#
454d0e5007SSukumar Swaminathan#	Define targets
464d0e5007SSukumar Swaminathan#
474d0e5007SSukumar SwaminathanALL_TARGET	= $(BINARY)
484d0e5007SSukumar SwaminathanINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
494d0e5007SSukumar Swaminathan
504d0e5007SSukumar Swaminathan#
514d0e5007SSukumar Swaminathan#	Overrides and depends_on
524d0e5007SSukumar Swaminathan#
534d0e5007SSukumar SwaminathanINC_PATH	+= -I$(UTSBASE)/common/sys/fibre-channel/fca/oce
544d0e5007SSukumar Swaminathan
5582d0151aSRichard LoweLDFLAGS		+= -Nmisc/mac
564d0e5007SSukumar Swaminathan
577014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
587014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
59d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
607014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
617014882cSRichard Lowe
624d0e5007SSukumar Swaminathan#
634d0e5007SSukumar Swaminathan#	Default build targets.
644d0e5007SSukumar Swaminathan#
654d0e5007SSukumar Swaminathan.KEEP_STATE:
664d0e5007SSukumar Swaminathan
674d0e5007SSukumar Swaminathandef:		$(DEF_DEPS)
684d0e5007SSukumar Swaminathan
694d0e5007SSukumar Swaminathanall:		$(ALL_DEPS)
704d0e5007SSukumar Swaminathan
714d0e5007SSukumar Swaminathanclean:		$(CLEAN_DEPS)
724d0e5007SSukumar Swaminathan
734d0e5007SSukumar Swaminathanclobber:	$(CLOBBER_DEPS)
744d0e5007SSukumar Swaminathan
754d0e5007SSukumar Swaminathaninstall:	$(INSTALL_DEPS)
764d0e5007SSukumar Swaminathan
774d0e5007SSukumar Swaminathan#
784d0e5007SSukumar Swaminathan#	Include common targets.
794d0e5007SSukumar Swaminathan#
804d0e5007SSukumar Swaminathaninclude ../Makefile.targ
81