Makefile revision 0a0e9771ca0211c15f3ac4466b661c145feeb9e4
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# CDDL HEADER START
229ea4644b3a7d9c7fdaa43888e7f55ba01e2ee3Automatic Updater#
229ea4644b3a7d9c7fdaa43888e7f55ba01e2ee3Automatic Updater# The contents of this file are subject to the terms of the
1167fc7904c5f0a472f8df207ac46dd52c7f1ec8Automatic Updater# Common Development and Distribution License (the "License").
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# You may not use this file except in compliance with the License.
46da3117812814a29432a8d9a9ccf8acdbfdadceAutomatic Updater#
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0519188c8e1ae76978fc4e0f799620cd36eba07aAutomatic Updater# or http://www.opensolaris.org/os/licensing.
79b273c187a4aa1016a62181983dfdd0521681aeMark Andrews# See the License for the specific language governing permissions
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater# and limitations under the License.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# If applicable, add the following below this CDDL HEADER, with the
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# CDDL HEADER END
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater#
3cc98b8ecedcbc8465f1cf2740b966b315662430Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Use is subject to license terms.
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater#
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# This makefile drives the production of the mac driver
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# kernel module.
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Path to the base of the uts directory tree (usually /usr/src/uts).
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterUTSBASE = ../..
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Define the module and object file sets.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntMODULE = mac
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic UpdaterOBJECTS = $(MAC_OBJS:%=$(OBJS_DIR)/%)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterLINTS = $(MAC_OBJS:%.o=$(LINTS_DIR)/%.ln)
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Include common rules.
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt#
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updaterinclude $(UTSBASE)/intel/Makefile.intel
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic Updater
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Define targets
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterALL_TARGET = $(BINARY)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterLINT_TARGET = $(MODULE).lint
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Overrides.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCFLAGS += $(CCVERBOSE)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterLDFLAGS += -dy
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsINC_PATH += -I$(UTSBASE)/common/io/bpf
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# Default build targets.
8e9f3b69914ee02a80b87c97b1f8093edb3e9ae0Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews.KEEP_STATE:
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsdef: $(DEF_DEPS)
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updaterall: $(ALL_DEPS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updaterclean: $(CLEAN_DEPS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updaterclobber: $(CLOBBER_DEPS)
693c4232dfdffaff672197d4b9fea944c64cf80aAutomatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewslint: $(LINT_DEPS)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonmodlintlib: $(MODLINTLIB_DEPS)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterclean.lint: $(CLEAN_LINT_DEPS)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterinstall: $(INSTALL_DEPS)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Include common targets.
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterinclude $(UTSBASE)/intel/Makefile.targ
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater