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