xref: /illumos-gate/usr/src/uts/intel/cxgbe/cxgbe/Makefile (revision 4c87aefe8930bd07275b8dd2e96ea5f24d93a52e)
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)/%)
31LINTS		= $(CXGBE_OBJS:%.o=$(LINTS_DIR)/%.ln)
32ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
33
34#
35# Include common rules
36#
37include $(UTSBASE)/intel/Makefile.intel
38
39#
40# Define targets
41#
42ALL_TARGET = $(BINARY)
43LINT_TARGET = $(MODULE).lint
44INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
45
46CFLAGS += -I$(UTSBASE)/common/io/cxgbe -I$(UTSBASE)/common/io/cxgbe/common \
47	-I$(UTSBASE)/common/io/cxgbe/t4nex -I$(UTSBASE)/common/io/cxgbe/shared
48
49#
50# Driver depends
51#
52LDFLAGS += -dy -N misc/mac -N drv/ip
53
54#
55# Lint
56#
57LINTFLAGS += -I$(UTSBASE)/common/io/cxgbe -I$(UTSBASE)/common/io/cxgbe/common \
58	-I$(UTSBASE)/common/io/cxgbe/t4nex -I$(UTSBASE)/common/io/cxgbe/shared
59LINTFLAGS += -Xc99=%all
60
61#
62# Default build targets.
63#
64.KEEP_STATE:
65
66def:		$(DEF_DEPS)
67
68all:		$(ALL_DEPS)
69
70clean:		$(CLEAN_DEPS)
71
72clobber:	$(CLOBBER_DEPS)
73
74lint:		$(LINT_DEPS)
75
76modlintlib:	$(MODLINTLIB_DEPS)
77
78clean.lint:	$(CLEAN_LINT_DEPS)
79
80install:	$(INSTALL_DEPS)
81
82#
83# Include common targets.
84#
85include $(UTSBASE)/intel/Makefile.targ
86