xref: /illumos-gate/usr/src/uts/intel/efe/Makefile (revision 1ed6b69a5ca1ca3ee5e9a4931f74e2237c7e1c9f)
1#
2# This file and its contents are supplied under the terms of the
3# Common Development and Distribution License ("CDDL"), version 1.0.
4# You may only use this file in accordance with the terms of version
5# 1.0 of the CDDL.
6#
7# A full copy of the text of the CDDL should have accompanied this
8# source.  A copy of the CDDL is also available via the Internet at
9# http://www.illumos.org/license/CDDL.
10#
11
12#
13#	Path to the base of the uts directory tree (usually /usr/src/uts).
14#
15UTSBASE		= ../..
16
17#
18#	Define the module and object file sets.
19#
20MODULE		= efe
21OBJECTS		= $(EFE_OBJS:%=$(OBJS_DIR)/%)
22LINTS		= $(EFE_OBJS:%.o=$(LINTS_DIR)/%.ln)
23ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
24
25#
26#	Include common rules.
27#
28include $(UTSBASE)/intel/Makefile.intel
29
30#
31#	Define targets.
32#
33ALL_TARGET	= $(BINARY)
34LINT_TARGET	= $(MODULE).lint
35INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
36
37#
38#	Driver flags.
39#
40CFLAGS		+= $(CCVERBOSE)
41LDFLAGS		+= -dy -N misc/mac -N misc/mii
42
43CERRWARN	+= -_gcc=-Wno-uninitialized
44
45#
46#	Default build targets.
47#
48.KEEP_STATE:
49
50def:		$(DEF_DEPS)
51
52all:		$(ALL_DEPS)
53
54clean:		$(CLEAN_DEPS)
55
56clobber:	$(CLOBBER_DEPS)
57
58lint:		$(LINT_DEPS)
59
60modlintlib:	$(MODLINTLIB_DEPS)
61
62clean.lint:	$(CLEAN_LINT_DEPS)
63
64install:	$(INSTALL_DEPS)
65
66#
67#	Include common targets.
68#
69include $(UTSBASE)/intel/Makefile.targ
70