xref: /illumos-gate/usr/src/uts/intel/cxgbe/cxgbe/Makefile (revision 0d1087e85d1cd423a6cbe5358a51a160350e956e)
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# Copyright (c) 2013 by Chelsio Communications, Inc. All rights reserved.
14#
15
16#
17# This makefile drives the production of the Chelsio Terminator 4 10G Ethernet
18# (CXGBE) driver modules on x86 systems.
19#
20
21#
22# Paths to the base of the uts directory trees
23#
24UTSBASE = ../../..
25
26#
27# Define the module and object file sets.
28#
29MODULE		= cxgbe
30OBJECTS		= $(CXGBE_OBJS:%=$(OBJS_DIR)/%)
31ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
32
33#
34# Include common rules
35#
36include $(UTSBASE)/intel/Makefile.intel
37
38#
39# Define targets
40#
41ALL_TARGET = $(BINARY)
42INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
43
44CFLAGS += -I$(UTSBASE)/common/io/cxgbe -I$(UTSBASE)/common/io/cxgbe/common \
45	-I$(UTSBASE)/common/io/cxgbe/t4nex -I$(UTSBASE)/common/io/cxgbe/shared
46
47#
48# Driver depends
49#
50LDFLAGS += -dy -N misc/mac -N drv/ip
51
52#
53# Default build targets.
54#
55.KEEP_STATE:
56
57def:		$(DEF_DEPS)
58
59all:		$(ALL_DEPS)
60
61clean:		$(CLEAN_DEPS)
62
63clobber:	$(CLOBBER_DEPS)
64
65install:	$(INSTALL_DEPS)
66
67#
68# Include common targets.
69#
70include $(UTSBASE)/intel/Makefile.targ
71