xref: /illumos-gate/usr/src/uts/intel/simnet/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
1b509e89bSRishi Srivatsavai#
2b509e89bSRishi Srivatsavai# CDDL HEADER START
3b509e89bSRishi Srivatsavai#
4b509e89bSRishi Srivatsavai# The contents of this file are subject to the terms of the
5b509e89bSRishi Srivatsavai# Common Development and Distribution License (the "License").
6b509e89bSRishi Srivatsavai# You may not use this file except in compliance with the License.
7b509e89bSRishi Srivatsavai#
8b509e89bSRishi Srivatsavai# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9b509e89bSRishi Srivatsavai# or http://www.opensolaris.org/os/licensing.
10b509e89bSRishi Srivatsavai# See the License for the specific language governing permissions
11b509e89bSRishi Srivatsavai# and limitations under the License.
12b509e89bSRishi Srivatsavai#
13b509e89bSRishi Srivatsavai# When distributing Covered Code, include this CDDL HEADER in each
14b509e89bSRishi Srivatsavai# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15b509e89bSRishi Srivatsavai# If applicable, add the following below this CDDL HEADER, with the
16b509e89bSRishi Srivatsavai# fields enclosed by brackets "[]" replaced with your own identifying
17b509e89bSRishi Srivatsavai# information: Portions Copyright [yyyy] [name of copyright owner]
18b509e89bSRishi Srivatsavai#
19b509e89bSRishi Srivatsavai# CDDL HEADER END
20b509e89bSRishi Srivatsavai#
21b509e89bSRishi Srivatsavai#
22b509e89bSRishi Srivatsavai# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23b509e89bSRishi Srivatsavai# Use is subject to license terms.
24b509e89bSRishi Srivatsavai#
25efe51d0cSJohn Levon# Copyright 2019 Joyent, Inc.
26efe51d0cSJohn Levon#
27efe51d0cSJohn Levon
28b509e89bSRishi Srivatsavai#
29b509e89bSRishi Srivatsavai# Path to the base of the uts directory tree (usually /usr/src/uts).
30b509e89bSRishi Srivatsavai#
31b509e89bSRishi SrivatsavaiUTSBASE	= ../..
32b509e89bSRishi Srivatsavai
33b509e89bSRishi Srivatsavai#
34b509e89bSRishi Srivatsavai# Define the module and object file sets.
35b509e89bSRishi Srivatsavai#
36b509e89bSRishi SrivatsavaiMODULE		= simnet
37b509e89bSRishi SrivatsavaiOBJECTS		= $(SIMNET_OBJS:%=$(OBJS_DIR)/%)
38b509e89bSRishi SrivatsavaiROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
39b509e89bSRishi SrivatsavaiCONF_SRCDIR	= $(UTSBASE)/common/io/$(MODULE)
40b509e89bSRishi Srivatsavai
41b509e89bSRishi Srivatsavai#
42b509e89bSRishi Srivatsavai# Include common rules.
43b509e89bSRishi Srivatsavai#
44b509e89bSRishi Srivatsavaiinclude $(UTSBASE)/intel/Makefile.intel
45b509e89bSRishi Srivatsavai
46b509e89bSRishi Srivatsavai#
47b509e89bSRishi Srivatsavai# Define targets
48b509e89bSRishi Srivatsavai#
49b509e89bSRishi SrivatsavaiALL_TARGET	= $(BINARY) $(SRC_CONFILE)
50b509e89bSRishi SrivatsavaiINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
51b509e89bSRishi Srivatsavai
52b509e89bSRishi Srivatsavai#
53b509e89bSRishi Srivatsavai# Overrides
54b509e89bSRishi Srivatsavai#
55b509e89bSRishi SrivatsavaiCFLAGS		+= $(CCVERBOSE)
56*82d0151aSRichard LoweLDFLAGS		+= -Ndrv/dld -Nmisc/mac -Nmisc/dls -Ndrv/random
57b509e89bSRishi Srivatsavai
587014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
597014882cSRichard Lowe
60efe51d0cSJohn Levon# needs work
61efe51d0cSJohn Levon$(OBJS_DIR)/simnet.o := SMOFF += index_overflow
62efe51d0cSJohn Levon
63b509e89bSRishi Srivatsavai#
64b509e89bSRishi Srivatsavai#	Default build targets.
65b509e89bSRishi Srivatsavai#
66b509e89bSRishi Srivatsavai.KEEP_STATE:
67b509e89bSRishi Srivatsavai
68b509e89bSRishi Srivatsavaidef:		$(DEF_DEPS)
69b509e89bSRishi Srivatsavai
70b509e89bSRishi Srivatsavaiall:		$(ALL_DEPS)
71b509e89bSRishi Srivatsavai
72b509e89bSRishi Srivatsavaiclean:		$(CLEAN_DEPS)
73b509e89bSRishi Srivatsavai
74b509e89bSRishi Srivatsavaiclobber:	$(CLOBBER_DEPS)
75b509e89bSRishi Srivatsavai
76b509e89bSRishi Srivatsavaiinstall:	$(INSTALL_DEPS)
77b509e89bSRishi Srivatsavai
78b509e89bSRishi Srivatsavai#
79b509e89bSRishi Srivatsavai#	Include common targets.
80b509e89bSRishi Srivatsavai#
81b509e89bSRishi Srivatsavaiinclude $(UTSBASE)/intel/Makefile.targ
82