xref: /illumos-gate/usr/src/uts/intel/sfxge/Makefile (revision 8222814ef8560ee0ba222eca8ca5acffc6cd0e44)
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 2016 Garrett D'Amore <garrett@damore.org>
14#
15# Copyright (c) 2018, Joyent, Inc.
16
17UTSBASE		= ../..
18
19MODULE		= sfxge
20OBJECTS		= $(SFXGE_OBJS:%=$(OBJS_DIR)/%)
21OBJECTS		+= $(SFXGE_SF_OBJS:%=$(OBJS_DIR)/%)
22ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
23
24include $(UTSBASE)/intel/Makefile.intel
25
26#
27# Targets
28#
29ALL_TARGET	= $(BINARY)
30INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
31
32#
33# Overrides
34#
35
36INC_PATH += -I$(UTSBASE)/common/io/sfxge -I$(UTSBASE)/common/io/sfxge/common
37
38#
39# TODO:
40# These are specific to this driver.  We will unidef these out later.
41# Some of them need further cleanup as well (e.g. we shouldn't bother with
42# supporting NDD directly.)
43#
44CPPFLAGS += -U_USE_MTU_UPDATE
45
46CFLAGS += $(CCVERBOSE)
47
48#
49# Driver depends on GLDv3 (mac)
50#
51LDFLAGS		+= -dy -N misc/mac
52
53# needs work
54$(OBJS_DIR)/sfxge_ev.o := SMOFF += index_overflow
55SMOFF += all_func_returns
56
57#
58# Default build targets.
59#
60.KEEP_STATE:
61
62def:		$(DEF_DEPS)
63
64all:		$(ALL_DEPS)
65
66clean:		$(CLEAN_DEPS)
67
68clobber:	$(CLOBBER_DEPS)
69
70install:	$(INSTALL_DEPS)
71
72#
73#	Include common targets.
74#
75include $(UTSBASE)/intel/Makefile.targ
76