xref: /illumos-gate/usr/src/uts/intel/softmac/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
1d62bc4baSyz147064#
2d62bc4baSyz147064# CDDL HEADER START
3d62bc4baSyz147064#
4d62bc4baSyz147064# The contents of this file are subject to the terms of the
5d62bc4baSyz147064# Common Development and Distribution License (the "License").
6d62bc4baSyz147064# You may not use this file except in compliance with the License.
7d62bc4baSyz147064#
8d62bc4baSyz147064# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9d62bc4baSyz147064# or http://www.opensolaris.org/os/licensing.
10d62bc4baSyz147064# See the License for the specific language governing permissions
11d62bc4baSyz147064# and limitations under the License.
12d62bc4baSyz147064#
13d62bc4baSyz147064# When distributing Covered Code, include this CDDL HEADER in each
14d62bc4baSyz147064# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15d62bc4baSyz147064# If applicable, add the following below this CDDL HEADER, with the
16d62bc4baSyz147064# fields enclosed by brackets "[]" replaced with your own identifying
17d62bc4baSyz147064# information: Portions Copyright [yyyy] [name of copyright owner]
18d62bc4baSyz147064#
19d62bc4baSyz147064# CDDL HEADER END
20d62bc4baSyz147064#
21d62bc4baSyz147064#
22d62bc4baSyz147064# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23d62bc4baSyz147064# Use is subject to license terms.
24d62bc4baSyz147064#
25d62bc4baSyz147064
26d62bc4baSyz147064#
27d62bc4baSyz147064# Path to the base of the uts directory tree (usually /usr/src/uts).
28d62bc4baSyz147064#
29d62bc4baSyz147064UTSBASE	= ../..
30d62bc4baSyz147064
31d62bc4baSyz147064#
32d62bc4baSyz147064# Define the module and object file sets.
33d62bc4baSyz147064#
34d62bc4baSyz147064MODULE		= softmac
35d62bc4baSyz147064OBJECTS		= $(SOFTMAC_OBJS:%=$(OBJS_DIR)/%)
36d62bc4baSyz147064ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
37d62bc4baSyz147064CONF_SRCDIR	= $(UTSBASE)/common/io/softmac
38d62bc4baSyz147064
39d62bc4baSyz147064#
40d62bc4baSyz147064# Include common rules.
41d62bc4baSyz147064#
42d62bc4baSyz147064include $(UTSBASE)/intel/Makefile.intel
43d62bc4baSyz147064
44d62bc4baSyz147064#
45d62bc4baSyz147064# Define targets
46d62bc4baSyz147064#
47d62bc4baSyz147064ALL_TARGET	= $(BINARY) $(SRC_CONFILE)
48d62bc4baSyz147064INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
49d62bc4baSyz147064
50d62bc4baSyz147064#
51d62bc4baSyz147064# Overrides
52d62bc4baSyz147064#
53*82d0151aSRichard LoweLDFLAGS		+= -Ndrv/dld -Nmisc/mac -Nmisc/strplumb -Nmisc/dls
54d62bc4baSyz147064
55d62bc4baSyz147064#
560aaef2f5SRichard Lowe# For now, disable these warnings as it is a generic STREAMS problem;
57d62bc4baSyz147064# maintainers should endeavor to investigate and remove these for maximum
580aaef2f5SRichard Lowe# coverage.
59d62bc4baSyz147064#
600aaef2f5SRichard LoweCFLAGS		+= $(CCVERBOSE)
61d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
627014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
637014882cSRichard Lowe
64d62bc4baSyz147064#
65d62bc4baSyz147064#	Default build targets.
66d62bc4baSyz147064#
67d62bc4baSyz147064.KEEP_STATE:
68d62bc4baSyz147064
69d62bc4baSyz147064def:		$(DEF_DEPS)
70d62bc4baSyz147064
71d62bc4baSyz147064all:		$(ALL_DEPS)
72d62bc4baSyz147064
73d62bc4baSyz147064clean:		$(CLEAN_DEPS)
74d62bc4baSyz147064
75d62bc4baSyz147064clobber:	$(CLOBBER_DEPS)
76d62bc4baSyz147064
77d62bc4baSyz147064install:	$(INSTALL_DEPS)
78d62bc4baSyz147064
79d62bc4baSyz147064#
80d62bc4baSyz147064#	Include common targets.
81d62bc4baSyz147064#
82d62bc4baSyz147064include $(UTSBASE)/intel/Makefile.targ
83