Makefile revision f4f00ee6d3f12bbd07ebfdc3f8d93438792db6f0
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# CDDL HEADER START
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
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#
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#
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#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# CDDL HEADER END
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# uts/intel/audioemu10k/Makefile
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# Use is subject to license terms.
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# This makefile drives the production of the audioemu10k driver.
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# Path to the base of the uts directory tree (usually /usr/src/uts).
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreUTSBASE = ../..
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# Define the module and object file sets.
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreMODULE = audioemu10k
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreOBJECTS = $(AUDIOEMU10K_OBJS:%=$(OBJS_DIR)/%)
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreLINTS = $(AUDIOEMU10K_OBJS:%.o=$(LINTS_DIR)/%.ln)
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
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_HDRS = $(DSP_HNAMES:%=$(OBJS_DIR)/%)
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreDSP_SNAMES = emu10k.dsp emu10k1.mac emu10k2.mac
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreDSP_SRCS = $(DSP_SNAMES:%=$(DSP_SRCDIR)/%)
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreASM10K = $(OBJS_DIR)/asm10k
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# Include common rules.
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amoreinclude $(UTSBASE)/intel/Makefile.intel
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# Define targets
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreALL_TARGET = $(BINARY)
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreLINT_TARGET = $(MODULE).lint
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreLDFLAGS += -dy -Ndrv/audio -Nmisc/ac97
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore$(OBJS_DIR)/%.o := CPPFLAGS += -I$(OBJS_DIR)
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
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# Default build targets.
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore.KEEP_STATE:
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amoredef: $(DEF_DEPS)
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amoreall: $(ALL_DEPS)
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amoreclean: $(CLEAN_DEPS)
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amoreclobber: $(CLOBBER_DEPS)
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amorelint: $(LINT_DEPS)
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amoremodlintlib: $(MODLINTLIB_DEPS)
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amoreclean.lint: $(CLEAN_LINT_DEPS)
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amoreinstall: $(INSTALL_DEPS)
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore$(BINARY): $(OBJS_DIR)/asm10k $(DSP_HDRS)
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore$(ASM10K): $(DSP_SRCDIR)/asm10k.c
f4f00ee6d3f12bbd07ebfdc3f8d93438792db6f0Garrett D'Amore $(CC) -o $@ $(DSP_SRCDIR)/asm10k.c
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore$(DSP_HDRS): $(ASM10K) $(DSP_SRCS)
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore $(CPP) -D$(MODEL10K) -I$(DSP_SRCDIR) $(DSP_SRCDIR)/emu10k.dsp | \
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore $(OBJS_DIR)/asm10k $(ASM10KFLAGS) -h $@
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# Include common targets.
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amoreinclude $(UTSBASE)/intel/Makefile.targ