Makefile revision f4f00ee6d3f12bbd07ebfdc3f8d93438792db6f0
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# CDDL HEADER START
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# The contents of this file are subject to the terms of the
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# Common Development and Distribution License (the "License").
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# You may not use this file except in compliance with the License.
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# or http://www.opensolaris.org/os/licensing.
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# See the License for the specific language governing permissions
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# and limitations under the License.
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# If applicable, add the following below this CDDL HEADER, with the
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner]
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# CDDL HEADER END
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# Use is subject to license terms.
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# This makefile drives the production of the audioemu10k driver.
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# Path to the base of the uts directory tree (usually /usr/src/uts).
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# Define the module and object file sets.
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreOBJECTS = $(AUDIOEMU10K_OBJS:%=$(OBJS_DIR)/%)
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreLINTS = $(AUDIOEMU10K_OBJS:%.o=$(LINTS_DIR)/%.ln)
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreDSP_SRCDIR = $(UTSBASE)/common/io/audio/drv/audioemu10k/dsp
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreDSP_HNAMES = emu10k_gpr.h emu10k1_dsp.h emu10k2_dsp.h
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreDSP_SNAMES = emu10k.dsp emu10k1.mac emu10k2.mac
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# Include common rules.
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# Define targets
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore$(OBJS_DIR)/%.ln := CPPFLAGS += -I$(OBJS_DIR)
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore$(OBJS_DIR)/emu10k_gpr.h := ASM10KFLAGS = -v -0 -P gpr
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore$(OBJS_DIR)/emu10k1_dsp.h := ASM10KFLAGS = -v -1 -P emu10k1
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore$(OBJS_DIR)/emu10k2_dsp.h := MODEL10K = SBLIVE
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore$(OBJS_DIR)/emu10k2_dsp.h := ASM10KFLAGS = -v -2 -P emu10k2
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore$(OBJS_DIR)/emu10k2_dsp.h := MODEL10K = AUDIGY
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# Default build targets.
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore $(CPP) -D$(MODEL10K) -I$(DSP_SRCDIR) $(DSP_SRCDIR)/emu10k.dsp | \
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# Include common targets.