Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews#
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# CDDL HEADER START
f0aad5341752aefe5059832f6cf3abc3283c6e16Tinderbox User#
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# The contents of this file are subject to the terms of the
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# Common Development and Distribution License, Version 1.0 only
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# (the "License"). You may not use this file except in compliance
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# with the License.
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt#
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# or http://www.opensolaris.org/os/licensing.
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# See the License for the specific language governing permissions
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# and limitations under the License.
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt#
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt#
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# CDDL HEADER END
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt#
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt#
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# Use is subject to license terms.
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt#
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt#ident "%Z%%M% %I% %E% SMI"
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt#
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt#
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# Path to the base of the uts directory tree (usually /usr/src/uts).
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt#
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntUTSBASE = ../..
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt#
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# Define the module and object file sets.
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt#
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntMODULE = dld
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntOBJECTS = $(DLD_OBJS:%=$(OBJS_DIR)/%)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntLINTS = $(DLD_OBJS:%.o=$(LINTS_DIR)/%.ln)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntCONF_SRCDIR = $(UTSBASE)/common/io/dld
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt#
7e71f05d8643aca84914437c900cb716444507e4Tinderbox User# Include common rules.
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt#
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Huntinclude $(UTSBASE)/sparc/Makefile.sparc
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt#
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# Define targets
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt#
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntALL_TARGET = $(BINARY) $(SRC_CONFILE)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntLINT_TARGET = $(MODULE).lint
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
7e71f05d8643aca84914437c900cb716444507e4Tinderbox User
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt#
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# Overrides
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt#
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntCFLAGS += $(CCVERBOSE)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt$(RELEASE_BUILD)CFLAGS += -xinline=auto -xcrossfile
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt$(RELEASE_BUILD)COPTIMIZE = -xO5
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntLDFLAGS += -dy -N misc/dls -N misc/mac -N misc/ght
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt#
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# Default build targets.
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt#
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt.KEEP_STATE:
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Huntdef: $(DEF_DEPS)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Huntall: $(ALL_DEPS)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Huntclean: $(CLEAN_DEPS)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Huntclobber: $(CLOBBER_DEPS)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Huntlint: $(LINT_DEPS)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Huntmodlintlib: $(MODLINTLIB_DEPS)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Huntclean.lint: $(CLEAN_LINT_DEPS)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Huntinstall: $(INSTALL_DEPS)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt#
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# Include common targets.
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt#
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Huntinclude $(UTSBASE)/sparc/Makefile.targ
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt