Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
127N/A#
127N/A# CDDL HEADER START
127N/A#
127N/A# The contents of this file are subject to the terms of the
127N/A# Common Development and Distribution License, Version 1.0 only
127N/A# (the "License"). You may not use this file except in compliance
127N/A# with the License.
127N/A#
127N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
127N/A# or http://www.opensolaris.org/os/licensing.
127N/A# See the License for the specific language governing permissions
127N/A# and limitations under the License.
127N/A#
127N/A# When distributing Covered Code, include this CDDL HEADER in each
127N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
127N/A# If applicable, add the following below this CDDL HEADER, with the
127N/A# fields enclosed by brackets "[]" replaced with your own identifying
127N/A# information: Portions Copyright [yyyy] [name of copyright owner]
127N/A#
127N/A# CDDL HEADER END
127N/A#
127N/A#
3996N/A# uts/sun4u/javelin/platmod/Makefile
127N/A# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
127N/A# Use is subject to license terms.
127N/A#
127N/A#ident "%Z%%M% %I% %E% SMI"
127N/A#
127N/A# This makefile drives the production of the sun4u javelin platmod module
618N/A#
127N/A#
127N/A
844N/A#
844N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
127N/A#
1273N/AUTSBASE = ../../..
127N/A
3661N/A#
3661N/A# Define the module and object file sets.
3996N/A#
3996N/AMODULE = platmod
3996N/AOBJECTS = $(JAVELIN_OBJS:%=$(OBJS_DIR)/%)
127N/ALINTS = $(JAVELIN_OBJS:%.o=$(LINTS_DIR)/%.ln)
127N/AROOTMODULE = $(ROOT_JAVELIN_MISC_DIR)/$(MODULE)
127N/A
127N/APLAT_DIR = .
127N/AHERE = ../javelin/platmod
127N/A
127N/A#
127N/A# Include common rules.
127N/A#
127N/Ainclude $(UTSBASE)/sun4u/javelin/Makefile.javelin
181N/A
181N/A#
127N/A# Override defaults
3996N/A#
3996N/ACLEANFILES += $(PLATLIB) $(SYM_MOD)
#
# Define targets
#
ALL_TARGET = $(SYM_MOD)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
check:
LINT_LIB_DIR =$(JAVELIN_LINT_LIB_DIR)
$(PLATLIB): $(BINARY)
${LD} -o $(PLATLIB) -G $(BINARY) -h misc/platmod
$(SYM_MOD): $(UNIX_O) $(PLATLIB)
@echo "resolving symbols against unix.o"
@(cd $(UNIX_DIR); pwd; \
PLAT_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck)
#
# Include common targets.
#
include $(UTSBASE)/sun4u/javelin/Makefile.targ