xref: /illumos-gate/usr/src/uts/intel/igc/Makefile (revision 6bbbd4428a21d3f4d1d329851dbc599121cb5d31)
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 2024 Oxide Computer Company
14#
15
16UTSBASE = ../..
17
18MODULE		= igc
19OBJECTS		= $(IGC_OBJS:%=$(OBJS_DIR)/%)
20ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
21
22include $(UTSBASE)/intel/Makefile.intel
23
24ALL_TARGET	= $(BINARY)
25INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
26CPPFLAGS	+= -I$(UTSBASE)/common/io/igc
27LDFLAGS		+= -N misc/mac
28
29#
30# Smatch gags for the core code. We should consider fixing these and
31# understanding the implications of these as part of figuring out how much
32# divergence here is okay. For the moment we are opting for no divergence.
33#
34$(OBJS_DIR)/igc_api.o := SMOFF += all_func_returns
35$(OBJS_DIR)/igc_base.o := SMOFF += all_func_returns
36$(OBJS_DIR)/igc_i225.o := SMOFF += all_func_returns
37$(OBJS_DIR)/igc_mac.o := SMOFF += all_func_returns
38$(OBJS_DIR)/igc_nvm.o := SMOFF += all_func_returns
39$(OBJS_DIR)/igc_phy.o := SMOFF += all_func_returns
40
41.KEEP_STATE:
42
43def:		$(DEF_DEPS)
44
45all:		$(ALL_DEPS)
46
47clean:		$(CLEAN_DEPS)
48
49clobber:	$(CLOBBER_DEPS)
50
51install:	$(INSTALL_DEPS)
52
53include $(UTSBASE)/intel/Makefile.targ
54