Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
53a70bef3508acb1517b8eb57f61a81280c11509Mark Andrews#
53a70bef3508acb1517b8eb57f61a81280c11509Mark Andrews# CDDL HEADER START
7472cd350fe9245553e9da7f2df8e7e364d136abMukund Sivaraman#
7472cd350fe9245553e9da7f2df8e7e364d136abMukund Sivaraman# The contents of this file are subject to the terms of the
7472cd350fe9245553e9da7f2df8e7e364d136abMukund Sivaraman# Common Development and Distribution License (the "License").
7472cd350fe9245553e9da7f2df8e7e364d136abMukund Sivaraman# You may not use this file except in compliance with the License.
7472cd350fe9245553e9da7f2df8e7e364d136abMukund Sivaraman#
049a49c2956dd9cc9b82974e2bbe77c57fcc73dbMark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
049a49c2956dd9cc9b82974e2bbe77c57fcc73dbMark Andrews# or http://www.opensolaris.org/os/licensing.
049a49c2956dd9cc9b82974e2bbe77c57fcc73dbMark Andrews# See the License for the specific language governing permissions
e2047969decfc0c3fc1a946ccade993cab9c9315Mark Andrews# and limitations under the License.
e2047969decfc0c3fc1a946ccade993cab9c9315Mark Andrews#
e2047969decfc0c3fc1a946ccade993cab9c9315Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
c3beecc1bcc6e1c15176a699b41ca77ef6533c25Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c3beecc1bcc6e1c15176a699b41ca77ef6533c25Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
c3beecc1bcc6e1c15176a699b41ca77ef6533c25Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
0be436fc397396ed490182f022d02b46c7a50271Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
0be436fc397396ed490182f022d02b46c7a50271Mark Andrews#
53a70bef3508acb1517b8eb57f61a81280c11509Mark Andrews# CDDL HEADER END
53a70bef3508acb1517b8eb57f61a81280c11509Mark Andrews#
8090ceb932b52c70d72f655531150e0a1122052dMark Andrews#
f89adb2c2a52b505501c3eaa2aec9fd4df6bd60aTinderbox User# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
f89adb2c2a52b505501c3eaa2aec9fd4df6bd60aTinderbox User# Use is subject to license terms.
e846f127d64ea690b789efa6e5b4ff9f64cf3235Witold Krecicki#
e846f127d64ea690b789efa6e5b4ff9f64cf3235Witold Krecicki
28053af04c5121ec234c320e4c76273305816e7aEvan Hunt#
28053af04c5121ec234c320e4c76273305816e7aEvan Hunt# This makefile drives the production of the iwk driver kernel module.
28053af04c5121ec234c320e4c76273305816e7aEvan Hunt#
28053af04c5121ec234c320e4c76273305816e7aEvan Hunt# i86pc architecture dependent
5ac427050fa0e303171133ce3855b284ab4cfbb7Mark Andrews#
5ac427050fa0e303171133ce3855b284ab4cfbb7Mark Andrews
5ac427050fa0e303171133ce3855b284ab4cfbb7Mark Andrews#
594d15df254304ef6705a9fc028bcd34328bce42Mark Andrews# Path to the base of the uts directory tree (usually /usr/src/uts).
594d15df254304ef6705a9fc028bcd34328bce42Mark Andrews#
594d15df254304ef6705a9fc028bcd34328bce42Mark AndrewsUTSBASE = ../..
19d80ce5844e00a021643759adcbe27c11b485a0Witold Krecicki
19d80ce5844e00a021643759adcbe27c11b485a0Witold Krecicki#
19d80ce5844e00a021643759adcbe27c11b485a0Witold Krecicki# Define the module and object file sets.
19d80ce5844e00a021643759adcbe27c11b485a0Witold Krecicki#
dc2a4887c40b1ee361cef51e188b386e19497e01Witold KrecickiMODULE = iwk
dc2a4887c40b1ee361cef51e188b386e19497e01Witold KrecickiOBJECTS = $(IWK_OBJS:%=$(OBJS_DIR)/%)
08e36aa5a5c7697a839f83831fccf8fb3f792848Mark AndrewsLINTS = $(IWK_OBJS:%.o=$(LINTS_DIR)/%.ln)
08e36aa5a5c7697a839f83831fccf8fb3f792848Mark AndrewsROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
370c6e0ac1ad6330e5ded66e5636c5c93d2ce3ffEvan Hunt
08e36aa5a5c7697a839f83831fccf8fb3f792848Mark Andrews#
08e36aa5a5c7697a839f83831fccf8fb3f792848Mark Andrews# Include common rules.
f1a2709aad7baa4161fdb6f63edf99b0150af252Evan Hunt#
f1a2709aad7baa4161fdb6f63edf99b0150af252Evan Huntinclude $(UTSBASE)/intel/Makefile.intel
f1a2709aad7baa4161fdb6f63edf99b0150af252Evan Hunt
f1a2709aad7baa4161fdb6f63edf99b0150af252Evan Hunt#
f1a2709aad7baa4161fdb6f63edf99b0150af252Evan Hunt# Define targets
402c63495c40b2289de8daee5a396fd392cea080Mark Andrews#
402c63495c40b2289de8daee5a396fd392cea080Mark AndrewsALL_TARGET = $(BINARY) $(CONFMOD) $(ITUMOD)
402c63495c40b2289de8daee5a396fd392cea080Mark AndrewsLINT_TARGET = $(MODULE).lint
b0ffe328620db4ead7079e8cd26a584f5b947754Mark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
402c63495c40b2289de8daee5a396fd392cea080Mark Andrews
402c63495c40b2289de8daee5a396fd392cea080Mark Andrews#
699f790c49d03a9ef3c3234a72d272bb469203e8Evan Hunt# Overrides
699f790c49d03a9ef3c3234a72d272bb469203e8Evan Hunt#
66074f152f2a42218e6d54f50d4fa3717940c299Evan HuntLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
66074f152f2a42218e6d54f50d4fa3717940c299Evan Hunt
66074f152f2a42218e6d54f50d4fa3717940c299Evan HuntCPPFLAGS += -I. -D_KERNEL -DIWL=4965
66074f152f2a42218e6d54f50d4fa3717940c299Evan Hunt
66074f152f2a42218e6d54f50d4fa3717940c299Evan HuntLDFLAGS += -dy -Nmisc/mac -Nmisc/net80211 -Ndrv/random -Ndrv/ip
66074f152f2a42218e6d54f50d4fa3717940c299Evan Hunt
48bf87ba83396aae2251646aed9a9cac183e5780Mark AndrewsCERRWARN += -_gcc=-Wno-unused-label
48bf87ba83396aae2251646aed9a9cac183e5780Mark AndrewsCERRWARN += -_gcc=-Wno-uninitialized
cd6eeeb827f65df4bfb3e7ed3454655650f7dba7Mark Andrews
cd6eeeb827f65df4bfb3e7ed3454655650f7dba7Mark Andrews#
aa5506eda809dfd25b4e1ee6edb5285a77958d2cEvan Hunt# Default build targets.
aa5506eda809dfd25b4e1ee6edb5285a77958d2cEvan Hunt#
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan Hunt.KEEP_STATE:
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan Hunt
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan Huntdef: $(DEF_DEPS)
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan Hunt
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan Huntall: $(ALL_DEPS)
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan Hunt
aa5506eda809dfd25b4e1ee6edb5285a77958d2cEvan Huntclean: $(CLEAN_DEPS)
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan Hunt
16591ba9ae26e4d6e1bc0dd4776725326174abaaMark Andrewsclobber: $(CLOBBER_DEPS)
91499fdb483d88377756fa517c25e3564bfa4e3bEvan Hunt
16591ba9ae26e4d6e1bc0dd4776725326174abaaMark Andrewslint: $(LINT_DEPS)
3cd204c4a46f21bf2a38f35e79af45ac595be943Evan Hunt
3cd204c4a46f21bf2a38f35e79af45ac595be943Evan Huntmodlintlib: $(MODLINTLIB_DEPS)
3cd204c4a46f21bf2a38f35e79af45ac595be943Evan Hunt
8fcf2413e99597b6690b6a352aa12842f9be27e5Mark Andrewsclean.lint: $(CLEAN_LINT_DEPS)
8fcf2413e99597b6690b6a352aa12842f9be27e5Mark Andrews
8fcf2413e99597b6690b6a352aa12842f9be27e5Mark Andrewsinstall: $(INSTALL_DEPS)
7660b370c363d08a43ad713a84f94798f3fc4879Mark Andrews
7660b370c363d08a43ad713a84f94798f3fc4879Mark Andrews#
651be63a1111c50942533016b3a2a6403d74cd9eMark Andrews# Include common targets.
651be63a1111c50942533016b3a2a6403d74cd9eMark Andrews#
651be63a1111c50942533016b3a2a6403d74cd9eMark Andrewsinclude $(UTSBASE)/intel/Makefile.targ
b1888f0e2ed6bebe79822de83bf67f5c440a22e1Mark Andrews