Makefile revision 142c9f13e148d687426ed2d4e8bd93717eeaebbc
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen#
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen# CDDL HEADER START
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen#
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen# The contents of this file are subject to the terms of the
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen# Common Development and Distribution License (the "License").
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen# You may not use this file except in compliance with the License.
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen#
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen# or http://www.opensolaris.org/os/licensing.
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen# See the License for the specific language governing permissions
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen# and limitations under the License.
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen#
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen# When distributing Covered Code, include this CDDL HEADER in each
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen# If applicable, add the following below this CDDL HEADER, with the
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen# fields enclosed by brackets "[]" replaced with your own identifying
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen# information: Portions Copyright [yyyy] [name of copyright owner]
5f845c928afc5c36f4c06771ce1814a16df3f5a5Tycho Andersen#
5f845c928afc5c36f4c06771ce1814a16df3f5a5Tycho Andersen# CDDL HEADER END
5f845c928afc5c36f4c06771ce1814a16df3f5a5Tycho Andersen#
5f845c928afc5c36f4c06771ce1814a16df3f5a5Tycho Andersen# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
5f845c928afc5c36f4c06771ce1814a16df3f5a5Tycho Andersen# Use is subject to license terms.
5f845c928afc5c36f4c06771ce1814a16df3f5a5Tycho Andersen#
5f845c928afc5c36f4c06771ce1814a16df3f5a5Tycho Andersen#pragma ident "%Z%%M% %I% %E% SMI"
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen#
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen# This makefile drives the production of the mem_cache driver
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen#
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen# sparc implementation architecture dependent
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen#
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen#
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen# Path to the base of the uts directory tree (usually /usr/src/uts).
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen#
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho AndersenUTSBASE = ../..
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen#
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen# Define the module and object file sets.
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen#
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho AndersenMODULE = mem_cache
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho AndersenOBJECTS = $(MEM_CACHE_OBJS:%=$(OBJS_DIR)/%)
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho AndersenLINTS = $(MEM_CACHE_OBJS:%.o=$(LINTS_DIR)/%.ln)
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho AndersenROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho AndersenCONF_SRCDIR = $(UTSBASE)/sun4u/io
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen#
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen# Include common rules.
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen#
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Anderseninclude $(UTSBASE)/sun4u/Makefile.sun4u
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen#
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen# Define targets
735f2c6e504a541cbb2592a3f94858bf337a24ffTycho Andersen#
ALL_TARGET = $(BINARY) $(SRC_CONFILE)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
DSF_DIR = $(UTSBASE)/$(PLATFORM)/mem_cache/genassym
#
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
ASFLAGS += -DCHEETAH_PLUS
AS_INC_PATH += -I$(DSF_DIR)/$(OBJS_DIR)
def := TARGET= def
all := TARGET= all
install := TARGET= install
#
# Default build targets.
#
.KEEP_STATE:
def: genassym $(DEF_DEPS)
all: genassym $(ALL_DEPS)
clean: genassym $(CLEAN_DEPS)
clobber: genassym $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: genassym $(INSTALL_DEPS)
genassym : FRC
@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
#
# Include common targets.
#
include $(UTSBASE)/sparc/Makefile.targ