xref: /illumos-gate/usr/src/uts/intel/neti/Makefile (revision 381a2a9a387f449fab7d0c7e97c4184c26963abf)
1*381a2a9aSdr146992#
2*381a2a9aSdr146992# CDDL HEADER START
3*381a2a9aSdr146992#
4*381a2a9aSdr146992# The contents of this file are subject to the terms of the
5*381a2a9aSdr146992# Common Development and Distribution License (the "License").
6*381a2a9aSdr146992# You may not use this file except in compliance with the License.
7*381a2a9aSdr146992#
8*381a2a9aSdr146992# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*381a2a9aSdr146992# or http://www.opensolaris.org/os/licensing.
10*381a2a9aSdr146992# See the License for the specific language governing permissions
11*381a2a9aSdr146992# and limitations under the License.
12*381a2a9aSdr146992#
13*381a2a9aSdr146992# When distributing Covered Code, include this CDDL HEADER in each
14*381a2a9aSdr146992# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*381a2a9aSdr146992# If applicable, add the following below this CDDL HEADER, with the
16*381a2a9aSdr146992# fields enclosed by brackets "[]" replaced with your own identifying
17*381a2a9aSdr146992# information: Portions Copyright [yyyy] [name of copyright owner]
18*381a2a9aSdr146992#
19*381a2a9aSdr146992# CDDL HEADER END
20*381a2a9aSdr146992#
21*381a2a9aSdr146992#
22*381a2a9aSdr146992#
23*381a2a9aSdr146992# uts/intel/neti/Makefile
24*381a2a9aSdr146992#
25*381a2a9aSdr146992# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
26*381a2a9aSdr146992# Use is subject to license terms.
27*381a2a9aSdr146992#
28*381a2a9aSdr146992#ident	"%Z%%M%	%I%	%E% SMI"
29*381a2a9aSdr146992#
30*381a2a9aSdr146992#	This makefile drives the production of the neti driver kernel module.
31*381a2a9aSdr146992#
32*381a2a9aSdr146992#	INTEL implementation architecture dependent
33*381a2a9aSdr146992#
34*381a2a9aSdr146992
35*381a2a9aSdr146992#
36*381a2a9aSdr146992#	Path to the base of the uts directory tree (usually /usr/src/uts).
37*381a2a9aSdr146992#
38*381a2a9aSdr146992UTSBASE	= ../..
39*381a2a9aSdr146992
40*381a2a9aSdr146992#
41*381a2a9aSdr146992#	Define the module and object file sets.
42*381a2a9aSdr146992#
43*381a2a9aSdr146992MODULE		= neti
44*381a2a9aSdr146992OBJECTS		= $(NETI_OBJS:%=$(OBJS_DIR)/%)
45*381a2a9aSdr146992LINTS		= $(NETI_OBJS:%.o=$(LINTS_DIR)/%.ln)
46*381a2a9aSdr146992ROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
47*381a2a9aSdr146992
48*381a2a9aSdr146992#
49*381a2a9aSdr146992#	Include common rules.
50*381a2a9aSdr146992#
51*381a2a9aSdr146992include $(UTSBASE)/intel/Makefile.intel
52*381a2a9aSdr146992
53*381a2a9aSdr146992#
54*381a2a9aSdr146992#	Define targets
55*381a2a9aSdr146992#
56*381a2a9aSdr146992ALL_TARGET	= $(BINARY)
57*381a2a9aSdr146992LINT_TARGET	= $(MODULE).lint
58*381a2a9aSdr146992INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOTLINK)
59*381a2a9aSdr146992
60*381a2a9aSdr146992LDFLAGS		+= -dy -Nmisc/hook
61*381a2a9aSdr146992
62*381a2a9aSdr146992#
63*381a2a9aSdr146992#	Default build targets.
64*381a2a9aSdr146992#
65*381a2a9aSdr146992.KEEP_STATE:
66*381a2a9aSdr146992
67*381a2a9aSdr146992def:		$(DEF_DEPS)
68*381a2a9aSdr146992
69*381a2a9aSdr146992all:		$(ALL_DEPS)
70*381a2a9aSdr146992
71*381a2a9aSdr146992clean:		$(CLEAN_DEPS)
72*381a2a9aSdr146992
73*381a2a9aSdr146992clobber:	$(CLOBBER_DEPS)
74*381a2a9aSdr146992
75*381a2a9aSdr146992lint:		$(LINT_DEPS)
76*381a2a9aSdr146992
77*381a2a9aSdr146992modlintlib:	$(MODLINTLIB_DEPS)
78*381a2a9aSdr146992
79*381a2a9aSdr146992clean.lint:	$(CLEAN_LINT_DEPS)
80*381a2a9aSdr146992
81*381a2a9aSdr146992install:	$(INSTALL_DEPS)
82*381a2a9aSdr146992
83*381a2a9aSdr146992#
84*381a2a9aSdr146992#	Include common targets.
85*381a2a9aSdr146992#
86*381a2a9aSdr146992include $(UTSBASE)/intel/Makefile.targ
87