1*88447a05SGarrett D'Amore# 2*88447a05SGarrett D'Amore# CDDL HEADER START 3*88447a05SGarrett D'Amore# 4*88447a05SGarrett D'Amore# The contents of this file are subject to the terms of the 5*88447a05SGarrett D'Amore# Common Development and Distribution License (the "License"). 6*88447a05SGarrett D'Amore# You may not use this file except in compliance with the License. 7*88447a05SGarrett D'Amore# 8*88447a05SGarrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*88447a05SGarrett D'Amore# or http://www.opensolaris.org/os/licensing. 10*88447a05SGarrett D'Amore# See the License for the specific language governing permissions 11*88447a05SGarrett D'Amore# and limitations under the License. 12*88447a05SGarrett D'Amore# 13*88447a05SGarrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each 14*88447a05SGarrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*88447a05SGarrett D'Amore# If applicable, add the following below this CDDL HEADER, with the 16*88447a05SGarrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying 17*88447a05SGarrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner] 18*88447a05SGarrett D'Amore# 19*88447a05SGarrett D'Amore# CDDL HEADER END 20*88447a05SGarrett D'Amore# 21*88447a05SGarrett D'Amore# 22*88447a05SGarrett D'Amore# uts/sparc/ac97/Makefile 23*88447a05SGarrett D'Amore# 24*88447a05SGarrett D'Amore# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 25*88447a05SGarrett D'Amore# Use is subject to license terms. 26*88447a05SGarrett D'Amore# 27*88447a05SGarrett D'Amore# This makefile drives the production of the ac97 support module. 28*88447a05SGarrett D'Amore# 29*88447a05SGarrett D'Amore 30*88447a05SGarrett D'Amore# 31*88447a05SGarrett D'Amore# Path to the base of the uts directory tree (usually /usr/src/uts). 32*88447a05SGarrett D'Amore# 33*88447a05SGarrett D'AmoreUTSBASE = ../.. 34*88447a05SGarrett D'Amore 35*88447a05SGarrett D'Amore# 36*88447a05SGarrett D'Amore# Define the module and object file sets. 37*88447a05SGarrett D'Amore# 38*88447a05SGarrett D'AmoreMODULE = ac97 39*88447a05SGarrett D'AmoreOBJECTS = $(AC97_OBJS:%=$(OBJS_DIR)/%) 40*88447a05SGarrett D'AmoreLINTS = $(AC97_OBJS:%.o=$(LINTS_DIR)/%.ln) 41*88447a05SGarrett D'AmoreROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE) 42*88447a05SGarrett D'AmoreWARLOCK_OUT = $(AC97_OBJS:%.o=%.ll) 43*88447a05SGarrett D'AmoreWARLOCK_OK = $(MODULE).ok 44*88447a05SGarrett D'AmoreWLCMD_DIR = $(UTSBASE)/common/io/warlock 45*88447a05SGarrett D'Amore 46*88447a05SGarrett D'Amore# 47*88447a05SGarrett D'Amore# Include common rules. 48*88447a05SGarrett D'Amore# 49*88447a05SGarrett D'Amoreinclude $(UTSBASE)/sparc/Makefile.sparc 50*88447a05SGarrett D'Amore 51*88447a05SGarrett D'Amore# 52*88447a05SGarrett D'Amore# Define targets 53*88447a05SGarrett D'Amore# 54*88447a05SGarrett D'AmoreALL_TARGET = $(BINARY) 55*88447a05SGarrett D'AmoreLINT_TARGET = $(MODULE).lint 56*88447a05SGarrett D'AmoreINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 57*88447a05SGarrett D'Amore 58*88447a05SGarrett D'AmoreLDFLAGS += -dy -Ndrv/audio 59*88447a05SGarrett D'Amore 60*88447a05SGarrett D'Amore# 61*88447a05SGarrett D'Amore# Default build targets. 62*88447a05SGarrett D'Amore# 63*88447a05SGarrett D'Amore.KEEP_STATE: 64*88447a05SGarrett D'Amore 65*88447a05SGarrett D'Amoredef: $(DEF_DEPS) 66*88447a05SGarrett D'Amore 67*88447a05SGarrett D'Amoreall: $(ALL_DEPS) 68*88447a05SGarrett D'Amore 69*88447a05SGarrett D'Amoreclean: $(CLEAN_DEPS) 70*88447a05SGarrett D'Amore $(RM) $(WARLOCK_OUT) $(WARLOCK_OK) 71*88447a05SGarrett D'Amore 72*88447a05SGarrett D'Amoreclobber: $(CLOBBER_DEPS) 73*88447a05SGarrett D'Amore $(RM) $(WARLOCK_OUT) $(WARLOCK_OK) 74*88447a05SGarrett D'Amore 75*88447a05SGarrett D'Amorelint: $(LINT_DEPS) 76*88447a05SGarrett D'Amore 77*88447a05SGarrett D'Amoremodlintlib: $(MODLINTLIB_DEPS) 78*88447a05SGarrett D'Amore 79*88447a05SGarrett D'Amoreclean.lint: $(CLEAN_LINT_DEPS) 80*88447a05SGarrett D'Amore 81*88447a05SGarrett D'Amoreinstall: $(INSTALL_DEPS) 82*88447a05SGarrett D'Amore 83*88447a05SGarrett D'Amore# 84*88447a05SGarrett D'Amore# Include common targets. 85*88447a05SGarrett D'Amore# 86*88447a05SGarrett D'Amoreinclude $(UTSBASE)/sparc/Makefile.targ 87