Makefile revision 8a3c961b6b8e22607c570d092514b791eb1519e9
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafsson#
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafsson# CDDL HEADER START
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafsson#
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley# The contents of this file are subject to the terms of the
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley# Common Development and Distribution License (the "License").
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley# You may not use this file except in compliance with the License.
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley#
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley# or http://www.opensolaris.org/os/licensing.
8426878e988859184706f36e2229e24e77b80aa4Andreas Gustafsson# See the License for the specific language governing permissions
8426878e988859184706f36e2229e24e77b80aa4Andreas Gustafsson# and limitations under the License.
8426878e988859184706f36e2229e24e77b80aa4Andreas Gustafsson#
0f7045b0c437b158c61c195c319d2762882ece83Andreas Gustafsson# When distributing Covered Code, include this CDDL HEADER in each
0f7045b0c437b158c61c195c319d2762882ece83Andreas Gustafsson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0f7045b0c437b158c61c195c319d2762882ece83Andreas Gustafsson# If applicable, add the following below this CDDL HEADER, with the
7c0e50b5623a6ffc9e3986e129f8ca6bae9aabfaBrian Wellington# fields enclosed by brackets "[]" replaced with your own identifying
7c0e50b5623a6ffc9e3986e129f8ca6bae9aabfaBrian Wellington# information: Portions Copyright [yyyy] [name of copyright owner]
a25310fd1dce652cdebba2b3dbc5d38cc3706745Andreas Gustafsson#
a25310fd1dce652cdebba2b3dbc5d38cc3706745Andreas Gustafsson# CDDL HEADER END
a25310fd1dce652cdebba2b3dbc5d38cc3706745Andreas Gustafsson#
a25310fd1dce652cdebba2b3dbc5d38cc3706745Andreas Gustafsson#
42712a426dd62518ca7c36982867e5622f7265e7Michael Graff# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
42712a426dd62518ca7c36982867e5622f7265e7Michael Graff# Use is subject to license terms.
e6a6c0a5d6393d3a7f75b486f16e4ef15c4857bbDavid Lawrence#
e6a6c0a5d6393d3a7f75b486f16e4ef15c4857bbDavid Lawrence
e6a6c0a5d6393d3a7f75b486f16e4ef15c4857bbDavid Lawrence#
e6a6c0a5d6393d3a7f75b486f16e4ef15c4857bbDavid Lawrence# This makefile drives the production of the wpi driver kernel module.
11a898e05092e8477fbfe1a245c1c5871a846638Andreas Gustafsson#
11a898e05092e8477fbfe1a245c1c5871a846638Andreas Gustafsson# i86pc architecture dependent
5d4f11b265c396d71ec2162a632e620425481a9eDavid Lawrence#
5d4f11b265c396d71ec2162a632e620425481a9eDavid Lawrence
b295930144c8782e84528dcd355153ae5a5d66e8David Lawrence#
b295930144c8782e84528dcd355153ae5a5d66e8David Lawrence# Path to the base of the uts directory tree (usually /usr/src/uts).
b295930144c8782e84528dcd355153ae5a5d66e8David Lawrence#
0bcb1d4d630f8d7547ee62870e1b059827cc1c8aDavid LawrenceUTSBASE = ../..
0bcb1d4d630f8d7547ee62870e1b059827cc1c8aDavid Lawrence
ce3be21d63d1e06b222ecb66b4eae909b4658d53James Brister#
ce3be21d63d1e06b222ecb66b4eae909b4658d53James Brister# Define the module and object file sets.
ce3be21d63d1e06b222ecb66b4eae909b4658d53James Brister#
ce3be21d63d1e06b222ecb66b4eae909b4658d53James BristerMODULE = rwn
ce3be21d63d1e06b222ecb66b4eae909b4658d53James BristerOBJECTS = $(RWN_OBJS:%=$(OBJS_DIR)/%)
ce3be21d63d1e06b222ecb66b4eae909b4658d53James BristerLINTS = $(RWN_OBJS:%.o=$(LINTS_DIR)/%.ln)
ce3be21d63d1e06b222ecb66b4eae909b4658d53James BristerROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
ce3be21d63d1e06b222ecb66b4eae909b4658d53James Brister
ce3be21d63d1e06b222ecb66b4eae909b4658d53James Brister#
ce3be21d63d1e06b222ecb66b4eae909b4658d53James Brister# Include common rules.
ce3be21d63d1e06b222ecb66b4eae909b4658d53James Brister#
ce3be21d63d1e06b222ecb66b4eae909b4658d53James Bristerinclude $(UTSBASE)/intel/Makefile.intel
ce3be21d63d1e06b222ecb66b4eae909b4658d53James Brister
ce3be21d63d1e06b222ecb66b4eae909b4658d53James Brister#
ce3be21d63d1e06b222ecb66b4eae909b4658d53James Brister# Define targets
ce3be21d63d1e06b222ecb66b4eae909b4658d53James Brister#
7b2db4b8d13e3d8bc81419ffcc8b39de8193ef63David LawrenceALL_TARGET = $(BINARY)
7b2db4b8d13e3d8bc81419ffcc8b39de8193ef63David LawrenceLINT_TARGET = $(MODULE).lint
7b2db4b8d13e3d8bc81419ffcc8b39de8193ef63David LawrenceINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
7b2db4b8d13e3d8bc81419ffcc8b39de8193ef63David Lawrence
9e7c9ad159b581714c67148c3c698c12730d7ef7James Brister#
9e7c9ad159b581714c67148c3c698c12730d7ef7James Brister# Driver depends on GLDv3 & wifi kernel support module.
bf062442eeef2fe404d728891b1317b01fbb7908Andreas Gustafsson#
bf062442eeef2fe404d728891b1317b01fbb7908Andreas GustafssonLDFLAGS += -dy -Nmisc/mac -Nmisc/net80211
bf062442eeef2fe404d728891b1317b01fbb7908Andreas Gustafsson
bf062442eeef2fe404d728891b1317b01fbb7908Andreas Gustafsson#
bf062442eeef2fe404d728891b1317b01fbb7908Andreas Gustafsson# Overrides
bf062442eeef2fe404d728891b1317b01fbb7908Andreas Gustafsson#
bf062442eeef2fe404d728891b1317b01fbb7908Andreas GustafssonLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
bf062442eeef2fe404d728891b1317b01fbb7908Andreas Gustafsson
bf062442eeef2fe404d728891b1317b01fbb7908Andreas Gustafsson#
404e3e4738e97d5dff48fab1e76839e963cb16a6Brian Wellington# Default build targets.
404e3e4738e97d5dff48fab1e76839e963cb16a6Brian Wellington#
404e3e4738e97d5dff48fab1e76839e963cb16a6Brian Wellington.KEEP_STATE:
5b84a24a3bf571adae57c1bc006a0bce0f9f2befDavid Lawrence
5b84a24a3bf571adae57c1bc006a0bce0f9f2befDavid Lawrencedef: $(DEF_DEPS)
5b84a24a3bf571adae57c1bc006a0bce0f9f2befDavid Lawrence
5b84a24a3bf571adae57c1bc006a0bce0f9f2befDavid Lawrenceall: $(ALL_DEPS)
5b84a24a3bf571adae57c1bc006a0bce0f9f2befDavid Lawrence
5b84a24a3bf571adae57c1bc006a0bce0f9f2befDavid Lawrenceclean: $(CLEAN_DEPS)
d9cc295339982d8d86075ab4285cc700d354e2eeBob Halley
7d1d130f4fe1b7485142c4f55a4ef3760b5fa30aBrian Wellingtonclobber: $(CLOBBER_DEPS)
7d1d130f4fe1b7485142c4f55a4ef3760b5fa30aBrian Wellington
7d1d130f4fe1b7485142c4f55a4ef3760b5fa30aBrian Wellingtonlint: $(LINT_DEPS)
d9cc295339982d8d86075ab4285cc700d354e2eeBob Halley
d9cc295339982d8d86075ab4285cc700d354e2eeBob Halleymodlintlib: $(MODLINTLIB_DEPS)
d9cc295339982d8d86075ab4285cc700d354e2eeBob Halley
9ac79ef3f89b23d80f9649abf71fdc65bb7a8b62David Lawrenceclean.lint: $(CLEAN_LINT_DEPS)
9ac79ef3f89b23d80f9649abf71fdc65bb7a8b62David Lawrence
9ac79ef3f89b23d80f9649abf71fdc65bb7a8b62David Lawrenceinstall: $(INSTALL_DEPS)
a6a0b5e9b7078887a73ecec8be2935daa287a389James Brister
a6a0b5e9b7078887a73ecec8be2935daa287a389James Brister#
a6a0b5e9b7078887a73ecec8be2935daa287a389James Brister# Include common targets.
a6a0b5e9b7078887a73ecec8be2935daa287a389James Brister#
be768c2e952c34438025999125f984995a2c675fBob Halleyinclude $(UTSBASE)/intel/Makefile.targ
da6affdf7dd677a636155e4a41f6de416a2d815bBob Halley
da6affdf7dd677a636155e4a41f6de416a2d815bBob Halley#
da6affdf7dd677a636155e4a41f6de416a2d815bBob Halley# If you have any special case that general
da6affdf7dd677a636155e4a41f6de416a2d815bBob Halley# Makefile rules don't serve for you, just do
da6affdf7dd677a636155e4a41f6de416a2d815bBob Halley# it yourself.
da6affdf7dd677a636155e4a41f6de416a2d815bBob Halley#
be768c2e952c34438025999125f984995a2c675fBob Halley