Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#
1a932f2eab9b00d713acc4205d96ca2485bf2712Quaker Fang# CDDL HEADER START
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# The contents of this file are subject to the terms of the
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# Common Development and Distribution License, Version 1.0 only
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# (the "License"). You may not use this file except in compliance
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# with the License.
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# or http://www.opensolaris.org/os/licensing.
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# See the License for the specific language governing permissions
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# and limitations under the License.
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# When distributing Covered Code, include this CDDL HEADER in each
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# If applicable, add the following below this CDDL HEADER, with the
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# fields enclosed by brackets "[]" replaced with your own identifying
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# information: Portions Copyright [yyyy] [name of copyright owner]
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# CDDL HEADER END
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#ident "%Z%%M% %I% %E% SMI"
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# Use is subject to license terms.
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# This makefile drives the production of the gld driver
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# kernel module.
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# sparc architecture dependent
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# Path to the base of the uts directory tree (usually /usr/src/uts).
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azfUTSBASE = ../..
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# Define the module and object file sets.
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azfMODULE = gld
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azfOBJECTS = $(GLD_OBJS:%=$(OBJS_DIR)/%)
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azfLINTS = $(GLD_OBJS:%.o=$(LINTS_DIR)/%.ln)
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azfROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# Include common rules.
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azfinclude $(UTSBASE)/sparc/Makefile.sparc
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# Define targets
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azfALL_TARGET = $(BINARY)
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azfLINT_TARGET = $(MODULE).lint
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azfINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# Overrides.
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azfCFLAGS += $(CCVERBOSE)
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# Default build targets.
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf.KEEP_STATE:
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azfdef: $(DEF_DEPS)
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azfall: $(ALL_DEPS)
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azfclean: $(CLEAN_DEPS)
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azfclobber: $(CLOBBER_DEPS)
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azflint: $(LINT_DEPS)
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azfmodlintlib: $(MODLINTLIB_DEPS)
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azfclean.lint: $(CLEAN_LINT_DEPS)
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azfinstall: $(INSTALL_DEPS)
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# Include common targets.
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azfinclude $(UTSBASE)/sparc/Makefile.targ
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf