19853d9e8SJason Beloro# 29853d9e8SJason Beloro# CDDL HEADER START 39853d9e8SJason Beloro# 49853d9e8SJason Beloro# The contents of this file are subject to the terms of the 59853d9e8SJason Beloro# Common Development and Distribution License (the "License"). 69853d9e8SJason Beloro# You may not use this file except in compliance with the License. 79853d9e8SJason Beloro# 89853d9e8SJason Beloro# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 99853d9e8SJason Beloro# or http://www.opensolaris.org/os/licensing. 109853d9e8SJason Beloro# See the License for the specific language governing permissions 119853d9e8SJason Beloro# and limitations under the License. 129853d9e8SJason Beloro# 139853d9e8SJason Beloro# When distributing Covered Code, include this CDDL HEADER in each 149853d9e8SJason Beloro# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 159853d9e8SJason Beloro# If applicable, add the following below this CDDL HEADER, with the 169853d9e8SJason Beloro# fields enclosed by brackets "[]" replaced with your own identifying 179853d9e8SJason Beloro# information: Portions Copyright [yyyy] [name of copyright owner] 189853d9e8SJason Beloro# 199853d9e8SJason Beloro# CDDL HEADER END 209853d9e8SJason Beloro# 219853d9e8SJason Beloro 229853d9e8SJason Beloro# 239853d9e8SJason Beloro# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 249853d9e8SJason Beloro# Use is subject to license terms. 259853d9e8SJason Beloro# 269853d9e8SJason Beloro 279853d9e8SJason Beloro# 289853d9e8SJason Beloro# Path to the base of the uts directory tree (usually /usr/src/uts). 299853d9e8SJason Beloro# 309853d9e8SJason BeloroUTSBASE = ../.. 319853d9e8SJason Beloro 329853d9e8SJason Beloro# 339853d9e8SJason Beloro# Define the module and object file sets. 349853d9e8SJason Beloro# 359853d9e8SJason BeloroMODULE = dr_mem 369853d9e8SJason BeloroOBJECTS = $(DR_MEM_OBJS:%=$(OBJS_DIR)/%) 379853d9e8SJason BeloroLINTS = $(DR_MEM_OBJS:%.o=$(LINTS_DIR)/%.ln) 389853d9e8SJason BeloroROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE) 399853d9e8SJason Beloro 409853d9e8SJason Beloro# 419853d9e8SJason Beloro# Include common rules. 429853d9e8SJason Beloro# 439853d9e8SJason Beloroinclude $(UTSBASE)/sun4v/Makefile.sun4v 449853d9e8SJason Beloro 459853d9e8SJason Beloro# 469853d9e8SJason Beloro# Define targets 479853d9e8SJason Beloro# 489853d9e8SJason BeloroALL_TARGET = $(BINARY) 499853d9e8SJason BeloroLINT_TARGET = $(MODULE).lint 509853d9e8SJason BeloroINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 519853d9e8SJason Beloro 529853d9e8SJason Beloro# 539853d9e8SJason Beloro# lint pass one enforcement 549853d9e8SJason Beloro# 559853d9e8SJason BeloroCFLAGS += $(CCVERBOSE) 56*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 579853d9e8SJason Beloro 589853d9e8SJason Beloro# 599853d9e8SJason Beloro# Turn on doubleword alignment for 64 bit registers 609853d9e8SJason Beloro# 619853d9e8SJason BeloroCFLAGS += -dalign 629853d9e8SJason Beloro 639853d9e8SJason Beloro# 649853d9e8SJason Beloro# Module Dependencies 659853d9e8SJason Beloro# 669853d9e8SJason BeloroLDFLAGS += -dy -Nmisc/ds -Nmisc/platsvc -Ndrv/drctl 679853d9e8SJason Beloro 689853d9e8SJason Beloro# 699853d9e8SJason Beloro# Default build targets. 709853d9e8SJason Beloro# 719853d9e8SJason Beloro.KEEP_STATE: 729853d9e8SJason Beloro 739853d9e8SJason Belorodef: $(DEF_DEPS) 749853d9e8SJason Beloro 759853d9e8SJason Beloroall: $(ALL_DEPS) 769853d9e8SJason Beloro 779853d9e8SJason Beloroclean: $(CLEAN_DEPS) 789853d9e8SJason Beloro 799853d9e8SJason Beloroclobber: $(CLOBBER_DEPS) 809853d9e8SJason Beloro 819853d9e8SJason Belorolint: $(LINT_DEPS) 829853d9e8SJason Beloro 839853d9e8SJason Beloromodlintlib: $(MODLINTLIB_DEPS) 849853d9e8SJason Beloro 859853d9e8SJason Beloroclean.lint: $(CLEAN_LINT_DEPS) 869853d9e8SJason Beloro 879853d9e8SJason Beloroinstall: $(INSTALL_DEPS) 889853d9e8SJason Beloro 899853d9e8SJason Beloro# 909853d9e8SJason Beloro# Include common targets. 919853d9e8SJason Beloro# 929853d9e8SJason Beloroinclude $(UTSBASE)/$(PLATFORM)/Makefile.targ 93