xref: /titanic_52/usr/src/uts/intel/efe/Makefile (revision b3697b90e692e3e5d859fb77d285d4c056d99eda)
1*b3697b90SSteven Stallion#
2*b3697b90SSteven Stallion# This file and its contents are supplied under the terms of the
3*b3697b90SSteven Stallion# Common Development and Distribution License ("CDDL"), version 1.0.
4*b3697b90SSteven Stallion# You may only use this file in accordance with the terms of version
5*b3697b90SSteven Stallion# 1.0 of the CDDL.
6*b3697b90SSteven Stallion#
7*b3697b90SSteven Stallion# A full copy of the text of the CDDL should have accompanied this
8*b3697b90SSteven Stallion# source.  A copy of the CDDL is also available via the Internet at
9*b3697b90SSteven Stallion# http://www.illumos.org/license/CDDL.
10*b3697b90SSteven Stallion#
11*b3697b90SSteven Stallion
12*b3697b90SSteven Stallion#
13*b3697b90SSteven Stallion#	Path to the base of the uts directory tree (usually /usr/src/uts).
14*b3697b90SSteven Stallion#
15*b3697b90SSteven StallionUTSBASE		= ../..
16*b3697b90SSteven Stallion
17*b3697b90SSteven Stallion#
18*b3697b90SSteven Stallion#	Define the module and object file sets.
19*b3697b90SSteven Stallion#
20*b3697b90SSteven StallionMODULE		= efe
21*b3697b90SSteven StallionOBJECTS		= $(EFE_OBJS:%=$(OBJS_DIR)/%)
22*b3697b90SSteven StallionLINTS		= $(EFE_OBJS:%.o=$(LINTS_DIR)/%.ln)
23*b3697b90SSteven StallionROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
24*b3697b90SSteven Stallion
25*b3697b90SSteven Stallion#
26*b3697b90SSteven Stallion#	Include common rules.
27*b3697b90SSteven Stallion#
28*b3697b90SSteven Stallioninclude $(UTSBASE)/intel/Makefile.intel
29*b3697b90SSteven Stallion
30*b3697b90SSteven Stallion#
31*b3697b90SSteven Stallion#	Define targets.
32*b3697b90SSteven Stallion#
33*b3697b90SSteven StallionALL_TARGET	= $(BINARY)
34*b3697b90SSteven StallionLINT_TARGET	= $(MODULE).lint
35*b3697b90SSteven StallionINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
36*b3697b90SSteven Stallion
37*b3697b90SSteven Stallion#
38*b3697b90SSteven Stallion#	Driver flags.
39*b3697b90SSteven Stallion#
40*b3697b90SSteven StallionCFLAGS		+= $(CCVERBOSE)
41*b3697b90SSteven StallionLDFLAGS		+= -dy -N misc/mac -N misc/mii
42*b3697b90SSteven Stallion
43*b3697b90SSteven Stallion#
44*b3697b90SSteven Stallion#	Default build targets.
45*b3697b90SSteven Stallion#
46*b3697b90SSteven Stallion.KEEP_STATE:
47*b3697b90SSteven Stallion
48*b3697b90SSteven Stalliondef:		$(DEF_DEPS)
49*b3697b90SSteven Stallion
50*b3697b90SSteven Stallionall:		$(ALL_DEPS)
51*b3697b90SSteven Stallion
52*b3697b90SSteven Stallionclean:		$(CLEAN_DEPS)
53*b3697b90SSteven Stallion
54*b3697b90SSteven Stallionclobber:	$(CLOBBER_DEPS)
55*b3697b90SSteven Stallion
56*b3697b90SSteven Stallionlint:		$(LINT_DEPS)
57*b3697b90SSteven Stallion
58*b3697b90SSteven Stallionmodlintlib:	$(MODLINTLIB_DEPS)
59*b3697b90SSteven Stallion
60*b3697b90SSteven Stallionclean.lint:	$(CLEAN_LINT_DEPS)
61*b3697b90SSteven Stallion
62*b3697b90SSteven Stallioninstall:	$(INSTALL_DEPS)
63*b3697b90SSteven Stallion
64*b3697b90SSteven Stallion#
65*b3697b90SSteven Stallion#	Include common targets.
66*b3697b90SSteven Stallion#
67*b3697b90SSteven Stallioninclude $(UTSBASE)/intel/Makefile.targ
68