xref: /illumos-gate/usr/src/uts/intel/qede/Makefile (revision fec46055b92c6c6721fc6698843744a264e6ca70)
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) 2017 Joyent, Inc.
14#
15
16UTSBASE = ../..
17
18MODULE		= qede
19OBJECTS		= $(QEDE_OBJS:%=$(OBJS_DIR)/%) $(QEDE_GEN_OBJS:%=$(OBJS_DIR)/%)
20ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
21CONF_SRCDIR	= $(UTSBASE)/common/io/qede
22
23include $(UTSBASE)/intel/Makefile.intel
24
25#
26# Common definitions that are used by QLogic.
27#
28CPPFLAGS	+= -D__inline=inline
29CPPFLAGS	+= -D_inline=inline
30CPPFLAGS	+= -DILLUMOS
31CPPFLAGS	+= -DECORE_CONFIG_DIRECT_HWFN
32CPPFLAGS	+= -DCONFIG_ECORE_L2
33
34#
35# Includes that are needed
36#
37CPPFLAGS	+= -I$(UTSBASE)/common/io/qede
38CPPFLAGS	+= -I$(UTSBASE)/common/io/qede/579xx/drivers/ecore
39CPPFLAGS	+= -I$(UTSBASE)/common/io/qede/579xx/drivers/ecore/hsi_repository
40CPPFLAGS	+= -I$(UTSBASE)/common/io/qede/579xx/hsi/
41CPPFLAGS	+= -I$(UTSBASE)/common/io/qede/579xx/hsi/hw
42CPPFLAGS	+= -I$(UTSBASE)/common/io/qede/579xx/hsi/mcp
43
44#
45# Temporarily gag these warnings for the moment. We'll work with
46# upstream to get them clean.
47#
48CERRWARN	+= -_gcc=-Wno-unused-variable
49CERRWARN	+= -_gcc=-Wno-unused-function
50
51ALL_TARGET	= $(BINARY) $(CONFMOD)
52INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
53
54LDFLAGS		+= -dy -N misc/mac
55
56.KEEP_STATE:
57
58def:		$(DEF_DEPS)
59
60all:		$(ALL_DEPS)
61
62clean:		$(CLEAN_DEPS)
63
64clobber:	$(CLOBBER_DEPS)
65
66lint:
67modlintlib:
68clean.lint:
69
70install:	$(INSTALL_DEPS)
71
72include $(UTSBASE)/intel/Makefile.targ
73