17bebe46cSjc25722# 27bebe46cSjc25722# CDDL HEADER START 37bebe46cSjc25722# 47bebe46cSjc25722# The contents of this file are subject to the terms of the 57bebe46cSjc25722# Common Development and Distribution License (the "License"). 67bebe46cSjc25722# You may not use this file except in compliance with the License. 77bebe46cSjc25722# 87bebe46cSjc25722# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97bebe46cSjc25722# or http://www.opensolaris.org/os/licensing. 107bebe46cSjc25722# See the License for the specific language governing permissions 117bebe46cSjc25722# and limitations under the License. 127bebe46cSjc25722# 137bebe46cSjc25722# When distributing Covered Code, include this CDDL HEADER in each 147bebe46cSjc25722# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157bebe46cSjc25722# If applicable, add the following below this CDDL HEADER, with the 167bebe46cSjc25722# fields enclosed by brackets "[]" replaced with your own identifying 177bebe46cSjc25722# information: Portions Copyright [yyyy] [name of copyright owner] 187bebe46cSjc25722# 197bebe46cSjc25722# CDDL HEADER END 207bebe46cSjc25722# 21*7014882cSRichard Lowe 22*7014882cSRichard Lowe# 237bebe46cSjc25722# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 247bebe46cSjc25722# Use is subject to license terms. 257bebe46cSjc25722# 26*7014882cSRichard Lowe 277bebe46cSjc25722# 28142c9f13Sbala# This makefile drives the production of the mem_cache driver 297bebe46cSjc25722# 307bebe46cSjc25722# sparc implementation architecture dependent 317bebe46cSjc25722# 327bebe46cSjc25722 337bebe46cSjc25722# 347bebe46cSjc25722# Path to the base of the uts directory tree (usually /usr/src/uts). 357bebe46cSjc25722# 367bebe46cSjc25722UTSBASE = ../.. 377bebe46cSjc25722 387bebe46cSjc25722# 397bebe46cSjc25722# Define the module and object file sets. 407bebe46cSjc25722# 417bebe46cSjc25722MODULE = mem_cache 427bebe46cSjc25722OBJECTS = $(MEM_CACHE_OBJS:%=$(OBJS_DIR)/%) 437bebe46cSjc25722LINTS = $(MEM_CACHE_OBJS:%.o=$(LINTS_DIR)/%.ln) 44142c9f13SbalaROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) 457bebe46cSjc25722CONF_SRCDIR = $(UTSBASE)/sun4u/io 467bebe46cSjc25722 477bebe46cSjc25722# 487bebe46cSjc25722# Include common rules. 497bebe46cSjc25722# 507bebe46cSjc25722include $(UTSBASE)/sun4u/Makefile.sun4u 517bebe46cSjc25722 527bebe46cSjc25722# 537bebe46cSjc25722# Define targets 547bebe46cSjc25722# 557bebe46cSjc25722ALL_TARGET = $(BINARY) $(SRC_CONFILE) 567bebe46cSjc25722LINT_TARGET = $(MODULE).lint 577bebe46cSjc25722INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 587bebe46cSjc25722 59142c9f13SbalaDSF_DIR = $(UTSBASE)/$(PLATFORM)/mem_cache/genassym 60142c9f13Sbala 617bebe46cSjc25722# 627bebe46cSjc25722# lint pass one enforcement 637bebe46cSjc25722# 647bebe46cSjc25722CFLAGS += $(CCVERBOSE) 65*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 66142c9f13SbalaASFLAGS += -DCHEETAH_PLUS 67142c9f13SbalaAS_INC_PATH += -I$(DSF_DIR)/$(OBJS_DIR) 687bebe46cSjc25722 69142c9f13Sbaladef := TARGET= def 70142c9f13Sbalaall := TARGET= all 71142c9f13Sbalainstall := TARGET= install 727bebe46cSjc25722 737bebe46cSjc25722# 747bebe46cSjc25722# Default build targets. 757bebe46cSjc25722# 767bebe46cSjc25722.KEEP_STATE: 777bebe46cSjc25722 78142c9f13Sbaladef: genassym $(DEF_DEPS) 797bebe46cSjc25722 80142c9f13Sbalaall: genassym $(ALL_DEPS) 817bebe46cSjc25722 82142c9f13Sbalaclean: genassym $(CLEAN_DEPS) 837bebe46cSjc25722 84142c9f13Sbalaclobber: genassym $(CLOBBER_DEPS) 857bebe46cSjc25722 867bebe46cSjc25722lint: $(LINT_DEPS) 877bebe46cSjc25722 887bebe46cSjc25722modlintlib: $(MODLINTLIB_DEPS) 897bebe46cSjc25722 907bebe46cSjc25722clean.lint: $(CLEAN_LINT_DEPS) 917bebe46cSjc25722 92142c9f13Sbalainstall: genassym $(INSTALL_DEPS) 93142c9f13Sbala 94142c9f13Sbalagenassym : FRC 95142c9f13Sbala @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET) 967bebe46cSjc25722 977bebe46cSjc25722# 987bebe46cSjc25722# Include common targets. 997bebe46cSjc25722# 1007bebe46cSjc25722include $(UTSBASE)/sparc/Makefile.targ 101