xref: /illumos-gate/usr/src/uts/intel/nge/Makefile (revision 82d0151a)
16f3e57acSmx#
247693af9Smx# CDDL HEADER START
347693af9Smx#
447693af9Smx# The contents of this file are subject to the terms of the
547693af9Smx# Common Development and Distribution License (the "License").
647693af9Smx# You may not use this file except in compliance with the License.
747693af9Smx#
847693af9Smx# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
947693af9Smx# or http://www.opensolaris.org/os/licensing.
1047693af9Smx# See the License for the specific language governing permissions
1147693af9Smx# and limitations under the License.
1247693af9Smx#
1347693af9Smx# When distributing Covered Code, include this CDDL HEADER in each
1447693af9Smx# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1547693af9Smx# If applicable, add the following below this CDDL HEADER, with the
1647693af9Smx# fields enclosed by brackets "[]" replaced with your own identifying
1747693af9Smx# information: Portions Copyright [yyyy] [name of copyright owner]
1847693af9Smx#
1947693af9Smx# CDDL HEADER END
2047693af9Smx#
2147693af9Smx#
224045d941Ssowmini# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
236f3e57acSmx# Use is subject to license terms.
246f3e57acSmx#
25b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
266f3e57acSmx
276f3e57acSmx#
286f3e57acSmx#	Path to the base of the uts directory tree (usually /usr/src/uts).
296f3e57acSmx#
306f3e57acSmxUTSBASE   = ../..
316f3e57acSmx
326f3e57acSmx#
336f3e57acSmx#	Define the module and object file sets.
346f3e57acSmx#
356f3e57acSmxMODULE		= nge
366f3e57acSmxOBJECTS		= $(NGE_OBJS:%=$(OBJS_DIR)/%)
376f3e57acSmxROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
386f3e57acSmxCONF_SRCDIR     = $(UTSBASE)/common/io/nge
396f3e57acSmx
406f3e57acSmx#
416f3e57acSmx#	Include common rules.
426f3e57acSmx#
436f3e57acSmxinclude $(UTSBASE)/intel/Makefile.intel
446f3e57acSmx
456f3e57acSmx#
466f3e57acSmx#	Define targets
476f3e57acSmx#
486f3e57acSmxALL_TARGET	= $(BINARY) $(SRC_CONFILE)
496f3e57acSmxINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
506f3e57acSmx
516f3e57acSmx#
526f3e57acSmx#	Override defaults
536f3e57acSmx#
546f3e57acSmxINC_PATH	+= -I$(CONF_SRCDIR)
556f3e57acSmx
566f3e57acSmx# CFLAGS += $(CINLINEFLAGS)
576f3e57acSmx
586f3e57acSmx#
594045d941Ssowmini# Driver depends on GLD
606f3e57acSmx#
61*82d0151aSRichard LoweLDFLAGS		+= -N misc/mac
626f3e57acSmx
636f3e57acSmx#
640aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor
650aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage.
666f3e57acSmx# Please do not carry these forward to new Makefiles.
676f3e57acSmx#
686f3e57acSmx
697014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
70d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
717014882cSRichard Lowe
72b6b206fcSJohn Levon# needs work
73b6b206fcSJohn LevonSMOFF += all_func_returns
74b6b206fcSJohn Levon
756f3e57acSmx#
766f3e57acSmx#	Default build targets.
776f3e57acSmx#
786f3e57acSmx.KEEP_STATE:
796f3e57acSmx
806f3e57acSmxdef:		$(DEF_DEPS)
816f3e57acSmx
826f3e57acSmxall:		$(ALL_DEPS)
836f3e57acSmx
846f3e57acSmxclean:		$(CLEAN_DEPS)
856f3e57acSmx
866f3e57acSmxclobber:	$(CLOBBER_DEPS)
876f3e57acSmx
886f3e57acSmxinstall:	$(INSTALL_DEPS)
896f3e57acSmx
906f3e57acSmx#
916f3e57acSmx#	Include common targets.
926f3e57acSmx#
936f3e57acSmxinclude $(UTSBASE)/intel/Makefile.targ
94