175d01c9aSsm142603# 275d01c9aSsm142603# CDDL HEADER START 375d01c9aSsm142603# 475d01c9aSsm142603# The contents of this file are subject to the terms of the 5bb25c06cSjg# Common Development and Distribution License (the "License"). 6bb25c06cSjg# You may not use this file except in compliance with the License. 775d01c9aSsm142603# 875d01c9aSsm142603# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 975d01c9aSsm142603# or http://www.opensolaris.org/os/licensing. 1075d01c9aSsm142603# See the License for the specific language governing permissions 1175d01c9aSsm142603# and limitations under the License. 1275d01c9aSsm142603# 1375d01c9aSsm142603# When distributing Covered Code, include this CDDL HEADER in each 1475d01c9aSsm142603# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1575d01c9aSsm142603# If applicable, add the following below this CDDL HEADER, with the 1675d01c9aSsm142603# fields enclosed by brackets "[]" replaced with your own identifying 1775d01c9aSsm142603# information: Portions Copyright [yyyy] [name of copyright owner] 1875d01c9aSsm142603# 1975d01c9aSsm142603# CDDL HEADER END 2075d01c9aSsm142603# 2175d01c9aSsm142603# 2268c47f65SGarrett D'Amore# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 2375d01c9aSsm142603# Use is subject to license terms. 2475d01c9aSsm142603# 2575d01c9aSsm142603# uts/sparc/audio1575/Makefile 2675d01c9aSsm142603# 2775d01c9aSsm142603# This makefile drives the production of the M1575 audio driver 2875d01c9aSsm142603# (audio1575) kernel module. 2975d01c9aSsm142603# 3075d01c9aSsm142603# 3175d01c9aSsm142603# Path to the base of the uts directory tree (usually /usr/src/uts). 3275d01c9aSsm142603# 3375d01c9aSsm142603UTSBASE = ../.. 3475d01c9aSsm142603 3575d01c9aSsm142603# 3675d01c9aSsm142603# Define the module and object file sets. 3775d01c9aSsm142603# 3875d01c9aSsm142603MODULE = audio1575 3975d01c9aSsm142603OBJECTS = $(AUDIO1575_OBJS:%=$(OBJS_DIR)/%) 4075d01c9aSsm142603LINTS = $(AUDIO1575_OBJS:%.o=$(LINTS_DIR)/%.ln) 4175d01c9aSsm142603ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 4275d01c9aSsm142603 4375d01c9aSsm142603# 4475d01c9aSsm142603# Include common rules. 4575d01c9aSsm142603# 4675d01c9aSsm142603include $(UTSBASE)/sparc/Makefile.sparc 4775d01c9aSsm142603 4875d01c9aSsm142603# 4975d01c9aSsm142603# Overrides, lint pass one enforcement 5075d01c9aSsm142603# 5175d01c9aSsm142603CFLAGS += $(CCVERBOSE) 5275d01c9aSsm142603 5375d01c9aSsm142603# 5488447a05SGarrett D'Amore# Depends on drv/audio and misc/ac97 5575d01c9aSsm142603# 5688447a05SGarrett D'AmoreLDFLAGS += -dy -Ndrv/audio -Nmisc/ac97 5775d01c9aSsm142603 58*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 59*7014882cSRichard Lowe 6075d01c9aSsm142603# 6175d01c9aSsm142603# Define targets 6275d01c9aSsm142603# 6368c47f65SGarrett D'AmoreALL_TARGET = $(BINARY) 6475d01c9aSsm142603LINT_TARGET = $(MODULE).lint 6568c47f65SGarrett D'AmoreINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 6675d01c9aSsm142603 6775d01c9aSsm142603# 6875d01c9aSsm142603# Overrides 6975d01c9aSsm142603# 7075d01c9aSsm142603ALL_BUILDS = $(ALL_BUILDSONLY64) 7175d01c9aSsm142603DEF_BUILDS = $(DEF_BUILDSONLY64) 7275d01c9aSsm142603 7375d01c9aSsm142603# 7475d01c9aSsm142603# Default build targets. 7575d01c9aSsm142603# 7675d01c9aSsm142603.KEEP_STATE: 7775d01c9aSsm142603 7875d01c9aSsm142603def: $(DEF_DEPS) 7975d01c9aSsm142603 8075d01c9aSsm142603all: $(ALL_DEPS) 8175d01c9aSsm142603 824ebb14b2Sfritsclean: $(CLEAN_DEPS) 8375d01c9aSsm142603 844ebb14b2Sfritsclobber: $(CLOBBER_DEPS) 8575d01c9aSsm142603 8675d01c9aSsm142603lint: $(LINT_DEPS) 8775d01c9aSsm142603 8868c47f65SGarrett D'Amoremodlintlib: $(MODLINTLIB_DEPS) 8975d01c9aSsm142603 9075d01c9aSsm142603clean.lint: $(CLEAN_LINT_DEPS) 9175d01c9aSsm142603 9275d01c9aSsm142603install: $(INSTALL_DEPS) 9375d01c9aSsm142603 9475d01c9aSsm142603# 9575d01c9aSsm142603# Include common targets. 9675d01c9aSsm142603# 9775d01c9aSsm142603include $(UTSBASE)/sparc/Makefile.targ 98