xref: /illumos-gate/usr/src/uts/intel/oce/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
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#
294d0e5007SSukumar SwaminathanUTSBASE		= ../../
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 SwaminathanLINTS		= $(OCE_OBJS:%.o=$(LINTS_DIR)/%.ln)
374d0e5007SSukumar SwaminathanROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
384d0e5007SSukumar Swaminathan
394d0e5007SSukumar Swaminathan#
404d0e5007SSukumar Swaminathan#	Include common rules.
414d0e5007SSukumar Swaminathan#
424d0e5007SSukumar SwaminathanARCHDIR		= intel
434d0e5007SSukumar Swaminathaninclude ../Makefile.$(ARCHDIR)
444d0e5007SSukumar Swaminathan
454d0e5007SSukumar Swaminathan#
464d0e5007SSukumar Swaminathan#	Define targets
474d0e5007SSukumar Swaminathan#
484d0e5007SSukumar SwaminathanALL_TARGET	= $(BINARY)
494d0e5007SSukumar SwaminathanLINT_TARGET	= $(MODULE).lint
504d0e5007SSukumar SwaminathanINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
514d0e5007SSukumar Swaminathan
524d0e5007SSukumar Swaminathan#
534d0e5007SSukumar Swaminathan#	Overrides and depends_on
544d0e5007SSukumar Swaminathan#
554d0e5007SSukumar SwaminathanINC_PATH	+= -I$(UTSBASE)/common/sys/fibre-channel/fca/oce
564d0e5007SSukumar Swaminathan
574d0e5007SSukumar SwaminathanLDFLAGS		+= -dy -Nmisc/mac
584d0e5007SSukumar Swaminathan
59*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
60*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
61*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
62*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
63*7014882cSRichard Lowe
644d0e5007SSukumar Swaminathan#
654d0e5007SSukumar Swaminathan#	Default build targets.
664d0e5007SSukumar Swaminathan#
674d0e5007SSukumar Swaminathan.KEEP_STATE:
684d0e5007SSukumar Swaminathan
694d0e5007SSukumar Swaminathandef:		$(DEF_DEPS)
704d0e5007SSukumar Swaminathan
714d0e5007SSukumar Swaminathanall:		$(ALL_DEPS)
724d0e5007SSukumar Swaminathan
734d0e5007SSukumar Swaminathanclean:		$(CLEAN_DEPS)
744d0e5007SSukumar Swaminathan
754d0e5007SSukumar Swaminathanclobber:	$(CLOBBER_DEPS)
764d0e5007SSukumar Swaminathan
774d0e5007SSukumar Swaminathanlint:		$(LINT_DEPS)
784d0e5007SSukumar Swaminathan
794d0e5007SSukumar Swaminathanmodlintlib:	$(MODLINTLIB_DEPS)
804d0e5007SSukumar Swaminathan
814d0e5007SSukumar Swaminathanclean.lint:	$(CLEAN_LINT_DEPS)
824d0e5007SSukumar Swaminathan
834d0e5007SSukumar Swaminathaninstall:	$(INSTALL_DEPS)
844d0e5007SSukumar Swaminathan
854d0e5007SSukumar Swaminathan#
864d0e5007SSukumar Swaminathan#	Include common targets.
874d0e5007SSukumar Swaminathan#
884d0e5007SSukumar Swaminathaninclude ../Makefile.targ
89