Makefile revision fb9f9b975cb9214fec5dab37d461199adab9b964
7d32c065c7bb56f281651ae3dd2888f32ce4f1d9Bob Halley# CDDL HEADER START
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas Gustafsson# The contents of this file are subject to the terms of the
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas Gustafsson# Common Development and Distribution License, Version 1.0 only
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas Gustafsson# (the "License"). You may not use this file except in compliance
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas Gustafsson# with the License.
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas Gustafsson# or http://www.opensolaris.org/os/licensing.
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas Gustafsson# See the License for the specific language governing permissions
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas Gustafsson# and limitations under the License.
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas Gustafsson# When distributing Covered Code, include this CDDL HEADER in each
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas Gustafsson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas Gustafsson# If applicable, add the following below this CDDL HEADER, with the
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas Gustafsson# fields enclosed by brackets "[]" replaced with your own identifying
a6733246eafeb43755ce6d7ec3627ac4209cbccbMark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas Gustafsson# CDDL HEADER END
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence# Use is subject to license terms.
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas Gustafsson#pragma ident "%Z%%M% %I% %E% SMI"
63bb6b854b6db073856b0f2b2924d1af33e0eaf6Andreas Gustafsson# This makefile drives the production of the Crystal 4231
63bb6b854b6db073856b0f2b2924d1af33e0eaf6Andreas Gustafsson# audio driver (audiocs) kernel module.
63bb6b854b6db073856b0f2b2924d1af33e0eaf6Andreas Gustafsson# sparc architecture dependent
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas Gustafsson# Path to the base of the uts directory tree (usually /usr/src/uts).
81ce556e020e7f51adfb4eae6b31659f59b0fc4bAndreas Gustafsson# Define the module and object file sets.
4fe8755480c108a1232b7189fd5434ab35a6b623Brian WellingtonLINTS = $(AUDIOCS_OBJS:%.o=$(LINTS_DIR)/%.ln)
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas GustafssonCONF_SRCDIR = $(UTSBASE)/sun/io/audio/sada/drv/audiocs
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas GustafssonWARLOCK_OBJECTS = $(AUDIOCS_OBJS:%.o=%.ll)
f2fdfe7c42f3b10f3653f851ce5a0a90ee5ac1f9David Lawrence# Include common rules.
f2fdfe7c42f3b10f3653f851ce5a0a90ee5ac1f9David Lawrence# Define targets
f2fdfe7c42f3b10f3653f851ce5a0a90ee5ac1f9David LawrenceINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas Gustafsson# Depends on misc/audiosup and misc/mixer
0b87eaccdbbac3911ce54521a5a9e84aabce70c5Mark AndrewsLDFLAGS += -dy -Nmisc/amsrc2 -Nmisc/audiosup -Nmisc/mixer
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas Gustafsson# Default build targets.
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas Gustafsson# Include common targets.
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas Gustafsson# Defines for local commands.
80afc68f7784868d68f544df4be0e9f9711323a5Andreas Gustafsson# Warlock targets
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas Gustafsson$(WARLOCK_OK): $(WARLOCK_OBJECTS) warlock_ddi.files \
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas Gustafsson warlock_audiosup.files warlock_mixer.files warlock_amsrc1.files \
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas Gustafsson warlock_standalone audiocs_with_sada.wlcmd
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas Gustafsson $(WARLOCK) -c audiocs_with_sada.wlcmd $(WARLOCK_OBJECTS) \
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas Gustafsson ../audiosup/audio_support.ll $(CLOSED)/uts/sparc/amsrc1/am_src1.ll \
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas Gustafsson ../mixer/am_main.ll ../mixer/am_ad.ll ../mixer/am_ioctl.ll \
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas Gustafsson%.ll: $(UTSBASE)/sun/io/audio/sada/drv/audiocs/%.c
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas Gustafssonwarlock_standalone: $(WARLOCK_OBJECTS) warlock_ddi.files audiocs.wlcmd
4cd3d6df39927315e3fadc07a8da3788175f4195Andreas Gustafsson $(WARLOCK) -c audiocs.wlcmd $(WARLOCK_OBJECTS) \