xref: /illumos-gate/usr/src/uts/intel/efe/Makefile (revision ddb365bfc9e868ad24ccdcb0dc91af18b10df082)
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)/%)
22ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
23
24#
25#	Include common rules.
26#
27include $(UTSBASE)/intel/Makefile.intel
28
29#
30#	Define targets.
31#
32ALL_TARGET	= $(BINARY)
33INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
34
35#
36#	Driver flags.
37#
38CFLAGS		+= $(CCVERBOSE)
39LDFLAGS		+= -N misc/mac -N misc/mii
40
41CERRWARN	+= $(CNOWARN_UNINIT)
42
43#
44#	Default build targets.
45#
46.KEEP_STATE:
47
48def:		$(DEF_DEPS)
49
50all:		$(ALL_DEPS)
51
52clean:		$(CLEAN_DEPS)
53
54clobber:	$(CLOBBER_DEPS)
55
56install:	$(INSTALL_DEPS)
57
58#
59#	Include common targets.
60#
61include $(UTSBASE)/intel/Makefile.targ
62