xref: /illumos-gate/usr/src/uts/intel/hxge/Makefile (revision 41e0a469c3dbc14deb2b200f6ca6f6e00b5865d0)
13dec9fcdSqs148142#
23dec9fcdSqs148142# CDDL HEADER START
33dec9fcdSqs148142#
43dec9fcdSqs148142# The contents of this file are subject to the terms of the
53dec9fcdSqs148142# Common Development and Distribution License (the "License").
63dec9fcdSqs148142# You may not use this file except in compliance with the License.
73dec9fcdSqs148142#
83dec9fcdSqs148142# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
93dec9fcdSqs148142# or http://www.opensolaris.org/os/licensing.
103dec9fcdSqs148142# See the License for the specific language governing permissions
113dec9fcdSqs148142# and limitations under the License.
123dec9fcdSqs148142#
133dec9fcdSqs148142# When distributing Covered Code, include this CDDL HEADER in each
143dec9fcdSqs148142# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
153dec9fcdSqs148142# If applicable, add the following below this CDDL HEADER, with the
163dec9fcdSqs148142# fields enclosed by brackets "[]" replaced with your own identifying
173dec9fcdSqs148142# information: Portions Copyright [yyyy] [name of copyright owner]
183dec9fcdSqs148142#
193dec9fcdSqs148142# CDDL HEADER END
203dec9fcdSqs148142#
213dec9fcdSqs148142# uts/intel/hxge/Makefile
223dec9fcdSqs148142#
23310da939SSurya Prakki# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
243dec9fcdSqs148142#
25b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
26b6b206fcSJohn Levon
273dec9fcdSqs148142#
283dec9fcdSqs148142#	Path to the base of the uts directory tree (usually /usr/src/uts).
293dec9fcdSqs148142#
303dec9fcdSqs148142UTSBASE	= ../..
313dec9fcdSqs148142
323dec9fcdSqs148142#
333dec9fcdSqs148142#	Define the module and object file sets.
343dec9fcdSqs148142#
353dec9fcdSqs148142MODULE		= hxge
363dec9fcdSqs148142HXGE_OBJECTS =	$(HXGE_OBJS) $(HXGE_HPI_OBJS)
373dec9fcdSqs148142OBJECTS		=  $(HXGE_OBJECTS:%=$(OBJS_DIR)/%)
383dec9fcdSqs148142ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
393dec9fcdSqs148142CONF_SRCDIR	= $(UTSBASE)/common/io/hxge
403dec9fcdSqs148142
413dec9fcdSqs148142#
423dec9fcdSqs148142#	Include common rules.
433dec9fcdSqs148142#
443dec9fcdSqs148142include $(UTSBASE)/intel/Makefile.intel
453dec9fcdSqs148142
463dec9fcdSqs148142#
473dec9fcdSqs148142#	Define targets
483dec9fcdSqs148142#
493dec9fcdSqs148142ALL_TARGET	= $(BINARY)
503dec9fcdSqs148142INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
513dec9fcdSqs148142
523dec9fcdSqs148142#
533dec9fcdSqs148142# Include hxge specific header files
543dec9fcdSqs148142#
553dec9fcdSqs148142INC_PATH	+= -I$(UTSBASE)/common/io/hxge
560aaef2f5SRichard Lowe
573dec9fcdSqs148142CFLAGS += -DSOLARIS
583dec9fcdSqs148142#
593dec9fcdSqs148142# Debug flags
603dec9fcdSqs148142#
613dec9fcdSqs148142# CFLAGS += -DHXGE_DEBUG -DHPI_DEBUG
623dec9fcdSqs148142#
637014882cSRichard Lowe
640aaef2f5SRichard Lowe#
650aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor
660aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage.
670aaef2f5SRichard Lowe# Please do not carry these forward to new Makefiles.
680aaef2f5SRichard Lowe#
697014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
707014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
71d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
727014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
737014882cSRichard Lowe
74b6b206fcSJohn LevonSMOFF += deref_check,logical_instead_of_bitwise
75b6b206fcSJohn Levon
763dec9fcdSqs148142#
773dec9fcdSqs148142#	Driver depends on mac & IP
783dec9fcdSqs148142#
79*82d0151aSRichard LoweLDFLAGS		+= -N misc/mac -N drv/ip
803dec9fcdSqs148142
813dec9fcdSqs148142#
823dec9fcdSqs148142#	Default build targets.
833dec9fcdSqs148142#
843dec9fcdSqs148142.KEEP_STATE:
853dec9fcdSqs148142
863dec9fcdSqs148142def:		$(DEF_DEPS)
873dec9fcdSqs148142
883dec9fcdSqs148142all:		$(ALL_DEPS)
893dec9fcdSqs148142
903dec9fcdSqs148142clean:		$(CLEAN_DEPS)
913dec9fcdSqs148142
923dec9fcdSqs148142clobber:	$(CLOBBER_DEPS)
933dec9fcdSqs148142
943dec9fcdSqs148142install:	$(INSTALL_DEPS)
953dec9fcdSqs148142
963dec9fcdSqs148142#
973dec9fcdSqs148142#	Include common targets.
983dec9fcdSqs148142#
993dec9fcdSqs148142include $(UTSBASE)/intel/Makefile.targ
100