Makefile revision f4f00ee6d3f12bbd07ebfdc3f8d93438792db6f0
341N/A#
341N/A# CDDL HEADER START
341N/A#
341N/A# The contents of this file are subject to the terms of the
943N/A# Common Development and Distribution License (the "License").
341N/A# You may not use this file except in compliance with the License.
341N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A#
919N/A# uts/intel/audioemu10k/Makefile
919N/A#
919N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
341N/A# Use is subject to license terms.
341N/A#
341N/A# This makefile drives the production of the audioemu10k driver.
341N/A#
493N/A
341N/A#
341N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
999N/A#
341N/AUTSBASE = ../..
911N/A
999N/A#
999N/A# Define the module and object file sets.
911N/A#
341N/AMODULE = audioemu10k
341N/AOBJECTS = $(AUDIOEMU10K_OBJS:%=$(OBJS_DIR)/%)
341N/ALINTS = $(AUDIOEMU10K_OBJS:%.o=$(LINTS_DIR)/%.ln)
341N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
341N/ADSP_SRCDIR = $(UTSBASE)/common/io/audio/drv/audioemu10k/dsp
341N/ADSP_HNAMES = emu10k_gpr.h emu10k1_dsp.h emu10k2_dsp.h
341N/ADSP_HDRS = $(DSP_HNAMES:%=$(OBJS_DIR)/%)
341N/ADSP_SNAMES = emu10k.dsp emu10k1.mac emu10k2.mac
341N/ADSP_SRCS = $(DSP_SNAMES:%=$(DSP_SRCDIR)/%)
341N/AASM10K = $(OBJS_DIR)/asm10k
392N/A
604N/A#
646N/A# Include common rules.
812N/A#
688N/Ainclude $(UTSBASE)/intel/Makefile.intel
688N/A
688N/A#
688N/A# Define targets
688N/A#
688N/AALL_TARGET = $(BINARY)
688N/ALINT_TARGET = $(MODULE).lint
688N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
688N/A
688N/ALDFLAGS += -dy -Ndrv/audio -Nmisc/ac97
688N/A
688N/A$(OBJS_DIR)/%.o := CPPFLAGS += -I$(OBJS_DIR)
688N/A$(OBJS_DIR)/%.ln := CPPFLAGS += -I$(OBJS_DIR)
688N/A$(OBJS_DIR)/emu10k_gpr.h := ASM10KFLAGS = -v -0 -P gpr
688N/A$(OBJS_DIR)/emu10k1_dsp.h := ASM10KFLAGS = -v -1 -P emu10k1
688N/A$(OBJS_DIR)/emu10k2_dsp.h := MODEL10K = SBLIVE
688N/A$(OBJS_DIR)/emu10k2_dsp.h := ASM10KFLAGS = -v -2 -P emu10k2
688N/A$(OBJS_DIR)/emu10k2_dsp.h := MODEL10K = AUDIGY
688N/A
688N/A#
688N/A# Default build targets.
688N/A#
688N/A.KEEP_STATE:
688N/A
688N/Adef: $(DEF_DEPS)
688N/A
688N/Aall: $(ALL_DEPS)
996N/A
851N/Aclean: $(CLEAN_DEPS)
688N/A
688N/Aclobber: $(CLOBBER_DEPS)
688N/A
688N/Alint: $(LINT_DEPS)
688N/A
688N/Amodlintlib: $(MODLINTLIB_DEPS)
688N/A
688N/Aclean.lint: $(CLEAN_LINT_DEPS)
688N/A
688N/Ainstall: $(INSTALL_DEPS)
688N/A
688N/A$(BINARY): $(OBJS_DIR)/asm10k $(DSP_HDRS)
688N/A
688N/A$(ASM10K): $(DSP_SRCDIR)/asm10k.c
688N/A $(CC) -o $@ $(DSP_SRCDIR)/asm10k.c
816N/A
1029N/A$(DSP_HDRS): $(ASM10K) $(DSP_SRCS)
1029N/A $(CPP) -D$(MODEL10K) -I$(DSP_SRCDIR) $(DSP_SRCDIR)/emu10k.dsp | \
341N/A $(OBJS_DIR)/asm10k $(ASM10KFLAGS) -h $@
341N/A
341N/A#
341N/A# Include common targets.
970N/A#
970N/Ainclude $(UTSBASE)/intel/Makefile.targ
970N/A