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