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