17a4f122cSGarrett D'Amore# 27a4f122cSGarrett D'Amore# CDDL HEADER START 37a4f122cSGarrett D'Amore# 47a4f122cSGarrett D'Amore# The contents of this file are subject to the terms of the 57a4f122cSGarrett D'Amore# Common Development and Distribution License (the "License"). 67a4f122cSGarrett D'Amore# You may not use this file except in compliance with the License. 77a4f122cSGarrett D'Amore# 87a4f122cSGarrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97a4f122cSGarrett D'Amore# or http://www.opensolaris.org/os/licensing. 107a4f122cSGarrett D'Amore# See the License for the specific language governing permissions 117a4f122cSGarrett D'Amore# and limitations under the License. 127a4f122cSGarrett D'Amore# 137a4f122cSGarrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each 147a4f122cSGarrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157a4f122cSGarrett D'Amore# If applicable, add the following below this CDDL HEADER, with the 167a4f122cSGarrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying 177a4f122cSGarrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner] 187a4f122cSGarrett D'Amore# 197a4f122cSGarrett D'Amore# CDDL HEADER END 207a4f122cSGarrett D'Amore# 217a4f122cSGarrett D'Amore# 227a4f122cSGarrett D'Amore# uts/intel/audiosolo/Makefile 237a4f122cSGarrett D'Amore# 247a4f122cSGarrett D'Amore# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 257a4f122cSGarrett D'Amore# Use is subject to license terms. 267a4f122cSGarrett D'Amore# 27*b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 287a4f122cSGarrett D'Amore 297a4f122cSGarrett D'Amore# 307a4f122cSGarrett D'Amore# Path to the base of the uts directory tree (usually /usr/src/uts). 317a4f122cSGarrett D'Amore# 327a4f122cSGarrett D'AmoreUTSBASE = ../.. 337a4f122cSGarrett D'Amore 347a4f122cSGarrett D'Amore# 357a4f122cSGarrett D'Amore# Define the module and object file sets. 367a4f122cSGarrett D'Amore# 377a4f122cSGarrett D'AmoreMODULE = audiosolo 387a4f122cSGarrett D'AmoreOBJECTS = $(AUDIOSOLO_OBJS:%=$(OBJS_DIR)/%) 397a4f122cSGarrett D'AmoreLINTS = $(AUDIOSOLO_OBJS:%.o=$(LINTS_DIR)/%.ln) 407a4f122cSGarrett D'AmoreROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 417a4f122cSGarrett D'Amore 427a4f122cSGarrett D'Amore# 437a4f122cSGarrett D'Amore# Include common rules. 447a4f122cSGarrett D'Amore# 457a4f122cSGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.intel 467a4f122cSGarrett D'Amore 477a4f122cSGarrett D'Amore# 487a4f122cSGarrett D'Amore# Define targets 497a4f122cSGarrett D'Amore# 507a4f122cSGarrett D'AmoreALL_TARGET = $(BINARY) 517a4f122cSGarrett D'AmoreLINT_TARGET = $(MODULE).lint 527a4f122cSGarrett D'AmoreINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 537a4f122cSGarrett D'Amore 547a4f122cSGarrett D'AmoreLDFLAGS += -dy -Ndrv/audio 557a4f122cSGarrett D'Amore 567014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 577014882cSRichard Lowe 58*b6b206fcSJohn Levon# needs work 59*b6b206fcSJohn LevonSMOFF += assign_vs_compare 60*b6b206fcSJohn Levon 617a4f122cSGarrett D'Amore# 627a4f122cSGarrett D'Amore# Default build targets. 637a4f122cSGarrett D'Amore# 647a4f122cSGarrett D'Amore.KEEP_STATE: 657a4f122cSGarrett D'Amore 667a4f122cSGarrett D'Amoredef: $(DEF_DEPS) 677a4f122cSGarrett D'Amore 687a4f122cSGarrett D'Amoreall: $(ALL_DEPS) 697a4f122cSGarrett D'Amore 707a4f122cSGarrett D'Amoreclean: $(CLEAN_DEPS) 717a4f122cSGarrett D'Amore 727a4f122cSGarrett D'Amoreclobber: $(CLOBBER_DEPS) 737a4f122cSGarrett D'Amore 747a4f122cSGarrett D'Amorelint: $(LINT_DEPS) 757a4f122cSGarrett D'Amore 767a4f122cSGarrett D'Amoremodlintlib: $(MODLINTLIB_DEPS) 777a4f122cSGarrett D'Amore 787a4f122cSGarrett D'Amoreclean.lint: $(CLEAN_LINT_DEPS) 797a4f122cSGarrett D'Amore 807a4f122cSGarrett D'Amoreinstall: $(INSTALL_DEPS) 817a4f122cSGarrett D'Amore 827a4f122cSGarrett D'Amore# 837a4f122cSGarrett D'Amore# Include common targets. 847a4f122cSGarrett D'Amore# 857a4f122cSGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.targ 86