xref: /titanic_41/usr/src/uts/intel/hme/Makefile (revision 06673d9b6d946016a5231efebdb7818b7486bafc)
10219346bSGarrett D'Amore#
20219346bSGarrett D'Amore# CDDL HEADER START
30219346bSGarrett D'Amore#
40219346bSGarrett D'Amore# The contents of this file are subject to the terms of the
50219346bSGarrett D'Amore# Common Development and Distribution License (the "License").
60219346bSGarrett D'Amore# You may not use this file except in compliance with the License.
70219346bSGarrett D'Amore#
80219346bSGarrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90219346bSGarrett D'Amore# or http://www.opensolaris.org/os/licensing.
100219346bSGarrett D'Amore# See the License for the specific language governing permissions
110219346bSGarrett D'Amore# and limitations under the License.
120219346bSGarrett D'Amore#
130219346bSGarrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each
140219346bSGarrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150219346bSGarrett D'Amore# If applicable, add the following below this CDDL HEADER, with the
160219346bSGarrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying
170219346bSGarrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner]
180219346bSGarrett D'Amore#
190219346bSGarrett D'Amore# CDDL HEADER END
200219346bSGarrett D'Amore#
210219346bSGarrett D'Amore#
220219346bSGarrett D'Amore# uts/intel/hme/Makefile
230219346bSGarrett D'Amore#
240219346bSGarrett D'Amore# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
250219346bSGarrett D'Amore# Use is subject to license terms.
260219346bSGarrett D'Amore#
270219346bSGarrett D'Amore#	This makefile drives the production of the hme driver
280219346bSGarrett D'Amore#	kernel module.
290219346bSGarrett D'Amore#
300219346bSGarrett D'Amore
310219346bSGarrett D'Amore#
320219346bSGarrett D'Amore#	Path to the base of the uts directory tree (usually /usr/src/uts).
330219346bSGarrett D'Amore#
340219346bSGarrett D'AmoreUTSBASE	= ../..
350219346bSGarrett D'Amore
360219346bSGarrett D'Amore#
370219346bSGarrett D'Amore#	Define the module and object file sets.
380219346bSGarrett D'Amore#
390219346bSGarrett D'AmoreMODULE		= hme
400219346bSGarrett D'AmoreOBJECTS		= $(HME_OBJS:%=$(OBJS_DIR)/%)
410219346bSGarrett D'AmoreLINTS		= $(HME_OBJS:%.o=$(LINTS_DIR)/%.ln)
420219346bSGarrett D'AmoreROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
430219346bSGarrett D'Amore
440219346bSGarrett D'Amore#
450219346bSGarrett D'Amore#	Include common rules.
460219346bSGarrett D'Amore#
470219346bSGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.intel
480219346bSGarrett D'Amore
490219346bSGarrett D'Amore#
500219346bSGarrett D'Amore#	Define targets
510219346bSGarrett D'Amore#
520219346bSGarrett D'AmoreALL_TARGET	= $(BINARY)
530219346bSGarrett D'AmoreLINT_TARGET	= $(MODULE).lint
540219346bSGarrett D'AmoreINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
550219346bSGarrett D'Amore
560219346bSGarrett D'Amore#
570219346bSGarrett D'Amore#	Overrides.
580219346bSGarrett D'Amore#
590219346bSGarrett D'AmoreCFLAGS		+= $(CCVERBOSE)
60*06673d9bSGarrett D'AmoreLDFLAGS		+= -dy -Nmisc/mii -Nmisc/mac
610219346bSGarrett D'Amore
620219346bSGarrett D'Amore#
630219346bSGarrett D'Amore#	Default build targets.
640219346bSGarrett D'Amore#
650219346bSGarrett D'Amore.KEEP_STATE:
660219346bSGarrett D'Amore
670219346bSGarrett D'Amoredef:		$(DEF_DEPS)
680219346bSGarrett D'Amore
690219346bSGarrett D'Amoreall:		$(ALL_DEPS)
700219346bSGarrett D'Amore
710219346bSGarrett D'Amoreclean:		$(CLEAN_DEPS)
720219346bSGarrett D'Amore
730219346bSGarrett D'Amoreclobber:	$(CLOBBER_DEPS)
740219346bSGarrett D'Amore
750219346bSGarrett D'Amorelint:		$(LINT_DEPS)
760219346bSGarrett D'Amore
770219346bSGarrett D'Amoremodlintlib:	$(MODLINTLIB_DEPS)
780219346bSGarrett D'Amore
790219346bSGarrett D'Amoreclean.lint:	$(CLEAN_LINT_DEPS)
800219346bSGarrett D'Amore
810219346bSGarrett D'Amoreinstall:	$(INSTALL_DEPS)
820219346bSGarrett D'Amore
830219346bSGarrett D'Amore#
840219346bSGarrett D'Amore#	Include common targets.
850219346bSGarrett D'Amore#
860219346bSGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.targ
87