18fea755aSjm22469# 28fea755aSjm22469# CDDL HEADER START 38fea755aSjm22469# 48fea755aSjm22469# The contents of this file are subject to the terms of the 58fea755aSjm22469# Common Development and Distribution License (the "License"). 68fea755aSjm22469# You may not use this file except in compliance with the License. 78fea755aSjm22469# 88fea755aSjm22469# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 98fea755aSjm22469# or http://www.opensolaris.org/os/licensing. 108fea755aSjm22469# See the License for the specific language governing permissions 118fea755aSjm22469# and limitations under the License. 128fea755aSjm22469# 138fea755aSjm22469# When distributing Covered Code, include this CDDL HEADER in each 148fea755aSjm22469# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 158fea755aSjm22469# If applicable, add the following below this CDDL HEADER, with the 168fea755aSjm22469# fields enclosed by brackets "[]" replaced with your own identifying 178fea755aSjm22469# information: Portions Copyright [yyyy] [name of copyright owner] 188fea755aSjm22469# 198fea755aSjm22469# CDDL HEADER END 208fea755aSjm22469# 218fea755aSjm22469 228fea755aSjm22469# 238fea755aSjm22469# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 248fea755aSjm22469# Use is subject to license terms. 258fea755aSjm22469# 26*7014882cSRichard Lowe 278fea755aSjm22469 288fea755aSjm22469# 298fea755aSjm22469# Path to the base of the uts directory tree (usually /usr/src/uts). 308fea755aSjm22469# 318fea755aSjm22469UTSBASE = ../.. 328fea755aSjm22469 338fea755aSjm22469# 348fea755aSjm22469# Define the module and object file sets. 358fea755aSjm22469# 368fea755aSjm22469MODULE = dr_io 378fea755aSjm22469OBJECTS = $(DR_IO_OBJS:%=$(OBJS_DIR)/%) 388fea755aSjm22469LINTS = $(DR_IO_OBJS:%.o=$(LINTS_DIR)/%.ln) 398fea755aSjm22469ROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE) 408fea755aSjm22469 418fea755aSjm22469# 428fea755aSjm22469# Include common rules. 438fea755aSjm22469# 448fea755aSjm22469include $(UTSBASE)/sun4v/Makefile.sun4v 458fea755aSjm22469 468fea755aSjm22469# 478fea755aSjm22469# Define targets 488fea755aSjm22469# 498fea755aSjm22469ALL_TARGET = $(BINARY) 508fea755aSjm22469LINT_TARGET = $(MODULE).lint 518fea755aSjm22469INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 528fea755aSjm22469 538fea755aSjm22469# 548fea755aSjm22469# lint pass one enforcement 558fea755aSjm22469# 568fea755aSjm22469CFLAGS += $(CCVERBOSE) 57*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 58*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 598fea755aSjm22469 608fea755aSjm22469# 618fea755aSjm22469# Turn on doubleword alignment for 64 bit registers 628fea755aSjm22469# 638fea755aSjm22469CFLAGS += -dalign 648fea755aSjm22469 658fea755aSjm22469# 668fea755aSjm22469# Module Dependencies 678fea755aSjm22469# 688fea755aSjm22469LDFLAGS += -dy -Nmisc/ds -Ndrv/drctl 698fea755aSjm22469 708fea755aSjm22469# 718fea755aSjm22469# Default build targets. 728fea755aSjm22469# 738fea755aSjm22469.KEEP_STATE: 748fea755aSjm22469 758fea755aSjm22469def: $(DEF_DEPS) 768fea755aSjm22469 778fea755aSjm22469all: $(ALL_DEPS) 788fea755aSjm22469 798fea755aSjm22469clean: $(CLEAN_DEPS) 808fea755aSjm22469 818fea755aSjm22469clobber: $(CLOBBER_DEPS) 828fea755aSjm22469 838fea755aSjm22469lint: $(LINT_DEPS) 848fea755aSjm22469 858fea755aSjm22469modlintlib: $(MODLINTLIB_DEPS) 868fea755aSjm22469 878fea755aSjm22469clean.lint: $(CLEAN_LINT_DEPS) 888fea755aSjm22469 898fea755aSjm22469install: $(INSTALL_DEPS) 908fea755aSjm22469 918fea755aSjm22469# 928fea755aSjm22469# Include common targets. 938fea755aSjm22469# 948fea755aSjm22469include $(UTSBASE)/$(PLATFORM)/Makefile.targ 95