Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
806e05d28a479291110a9fdb1788e675a56fc364Mark Andrews#
ce7216c40ac973ed9ac5a90d75cd41b14b789725Mark Andrews# CDDL HEADER START
ce7216c40ac973ed9ac5a90d75cd41b14b789725Mark Andrews#
455c0848f80a8acda27aad1466c72987cafaa029Mark Andrews# The contents of this file are subject to the terms of the
455c0848f80a8acda27aad1466c72987cafaa029Mark Andrews# Common Development and Distribution License (the "License").
455c0848f80a8acda27aad1466c72987cafaa029Mark Andrews# You may not use this file except in compliance with the License.
455c0848f80a8acda27aad1466c72987cafaa029Mark Andrews#
f9da4a8e543cf895b6171773e75d343b2914a7e7Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f9da4a8e543cf895b6171773e75d343b2914a7e7Mark Andrews# or http://www.opensolaris.org/os/licensing.
f9da4a8e543cf895b6171773e75d343b2914a7e7Mark Andrews# See the License for the specific language governing permissions
f9da4a8e543cf895b6171773e75d343b2914a7e7Mark Andrews# and limitations under the License.
293a9e997803ebcf4e6ade8c972465bf6330f534Mukund Sivaraman#
293a9e997803ebcf4e6ade8c972465bf6330f534Mukund Sivaraman# When distributing Covered Code, include this CDDL HEADER in each
293a9e997803ebcf4e6ade8c972465bf6330f534Mukund Sivaraman# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
293a9e997803ebcf4e6ade8c972465bf6330f534Mukund Sivaraman# If applicable, add the following below this CDDL HEADER, with the
5995fec51cc8bb7e53804e4936e60aa1537f3673Mukund Sivaraman# fields enclosed by brackets "[]" replaced with your own identifying
5995fec51cc8bb7e53804e4936e60aa1537f3673Mukund Sivaraman# information: Portions Copyright [yyyy] [name of copyright owner]
5995fec51cc8bb7e53804e4936e60aa1537f3673Mukund Sivaraman#
5995fec51cc8bb7e53804e4936e60aa1537f3673Mukund Sivaraman# CDDL HEADER END
a2b15b3305acd52179e6f3dc7d073b07fbc40b8eMark Andrews#
a2b15b3305acd52179e6f3dc7d073b07fbc40b8eMark Andrews#
a2b15b3305acd52179e6f3dc7d073b07fbc40b8eMark Andrews# uts/intel/audiols/Makefile
d372f426ca42ee2bc7bcb1f76a52c4f154de1f9bMark Andrews#
d372f426ca42ee2bc7bcb1f76a52c4f154de1f9bMark Andrews# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
79a55d4f4dcf3d6f617523228503d8584b72a3a3Mukund Sivaraman# Use is subject to license terms.
79a55d4f4dcf3d6f617523228503d8584b72a3a3Mukund Sivaraman#
79a55d4f4dcf3d6f617523228503d8584b72a3a3Mukund Sivaraman# This makefile drives the production of the audiols driver.
0c29904b27c9ab3b85ecbde159b22ae1323bdbcdMukund Sivaraman#
0c29904b27c9ab3b85ecbde159b22ae1323bdbcdMukund Sivaraman
0c29904b27c9ab3b85ecbde159b22ae1323bdbcdMukund Sivaraman#
f3ad877eb05befbc862b0233d985758c0caef29aEvan Hunt# Path to the base of the uts directory tree (usually /usr/src/uts).
f3ad877eb05befbc862b0233d985758c0caef29aEvan Hunt#
f3ad877eb05befbc862b0233d985758c0caef29aEvan HuntUTSBASE = ../..
d88ba937124b2a4f8a074fc2aef9caf2022308b4Mark Andrews
d88ba937124b2a4f8a074fc2aef9caf2022308b4Mark Andrews#
d88ba937124b2a4f8a074fc2aef9caf2022308b4Mark Andrews# Define the module and object file sets.
40401165e4646f1624175ac80bf9b51826ab67ecMark Andrews#
8d00c5ab2c16985457947ddb0376707ab7094b80Mark AndrewsMODULE = audiols
8d00c5ab2c16985457947ddb0376707ab7094b80Mark AndrewsOBJECTS = $(AUDIOLS_OBJS:%=$(OBJS_DIR)/%)
ec450fde7cee684f37b0a59d770330c700419610Evan HuntLINTS = $(AUDIOLS_OBJS:%.o=$(LINTS_DIR)/%.ln)
ec450fde7cee684f37b0a59d770330c700419610Evan HuntROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
ec450fde7cee684f37b0a59d770330c700419610Evan Hunt
d1dbf6b20fdcfa95acd75cdb96fcd57067a31144Mukund Sivaraman#
d1dbf6b20fdcfa95acd75cdb96fcd57067a31144Mukund Sivaraman# Include common rules.
d1dbf6b20fdcfa95acd75cdb96fcd57067a31144Mukund Sivaraman#
3fe17d62e32017b643b852ede1b234271ee308e1Evan Huntinclude $(UTSBASE)/intel/Makefile.intel
3fe17d62e32017b643b852ede1b234271ee308e1Evan Hunt
3fe17d62e32017b643b852ede1b234271ee308e1Evan Hunt#
f02c22d58ac88777655e0b407b22b07864d39184Evan Hunt# Define targets
f02c22d58ac88777655e0b407b22b07864d39184Evan Hunt#
f02c22d58ac88777655e0b407b22b07864d39184Evan HuntALL_TARGET = $(BINARY)
5f4f7c688e0cca18edd67e9760b266ce8f67e29cTinderbox UserLINT_TARGET = $(MODULE).lint
5f4f7c688e0cca18edd67e9760b266ce8f67e29cTinderbox UserINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
40401165e4646f1624175ac80bf9b51826ab67ecMark Andrews
df9a49ee07f7629ec6abd2e3bd0dee600d7e2ab4Evan HuntLDFLAGS += -dy -Ndrv/audio -Nmisc/ac97
df9a49ee07f7629ec6abd2e3bd0dee600d7e2ab4Evan Hunt
e073205a884d3762fdc678d4b8a61b627a4070abEvan HuntCERRWARN += -_gcc=-Wno-switch
e073205a884d3762fdc678d4b8a61b627a4070abEvan Hunt
e073205a884d3762fdc678d4b8a61b627a4070abEvan Hunt#
832ab79d1f8bc4edf638780b306888da30ac3a1eMark Andrews# Default build targets.
832ab79d1f8bc4edf638780b306888da30ac3a1eMark Andrews#
832ab79d1f8bc4edf638780b306888da30ac3a1eMark Andrews.KEEP_STATE:
9d85a773829484832f762a9088a7dafd6794aa39Mark Andrews
9d85a773829484832f762a9088a7dafd6794aa39Mark Andrewsdef: $(DEF_DEPS)
9d85a773829484832f762a9088a7dafd6794aa39Mark Andrews
8ede7a974b126b3afe766c11ca621aee52c9889aEvan Huntall: $(ALL_DEPS)
8ede7a974b126b3afe766c11ca621aee52c9889aEvan Hunt
8ede7a974b126b3afe766c11ca621aee52c9889aEvan Huntclean: $(CLEAN_DEPS)
8ede7a974b126b3afe766c11ca621aee52c9889aEvan Hunt
8ede7a974b126b3afe766c11ca621aee52c9889aEvan Huntclobber: $(CLOBBER_DEPS)
8ede7a974b126b3afe766c11ca621aee52c9889aEvan Hunt
8ede7a974b126b3afe766c11ca621aee52c9889aEvan Huntlint: $(LINT_DEPS)
30370d905e9be3be7d9b947fd432bacecbb13bb9Evan Hunt
30370d905e9be3be7d9b947fd432bacecbb13bb9Evan Huntmodlintlib: $(MODLINTLIB_DEPS)
f8432e3f249dbec36394539ca1f3cb25bf33abfeMark Andrews
f8432e3f249dbec36394539ca1f3cb25bf33abfeMark Andrewsclean.lint: $(CLEAN_LINT_DEPS)
630b2d0c5a04cfc8b08d4585b7a0d997c00d7341Evan Hunt
40401165e4646f1624175ac80bf9b51826ab67ecMark Andrewsinstall: $(INSTALL_DEPS)
630b2d0c5a04cfc8b08d4585b7a0d997c00d7341Evan Hunt
630b2d0c5a04cfc8b08d4585b7a0d997c00d7341Evan Hunt#
630b2d0c5a04cfc8b08d4585b7a0d997c00d7341Evan Hunt# Include common targets.
630b2d0c5a04cfc8b08d4585b7a0d997c00d7341Evan Hunt#
1d383fd4b23fc7031e562bf5db02e3018c5d0b9eMark Andrewsinclude $(UTSBASE)/intel/Makefile.targ
1d383fd4b23fc7031e562bf5db02e3018c5d0b9eMark Andrews