Makefile revision 7a53f9f8d48badcb6f9b94b07bd87b5aab98eae5
338N/A#
338N/A# CDDL HEADER START
338N/A#
338N/A# The contents of this file are subject to the terms of the
338N/A# Common Development and Distribution License (the "License").
338N/A# You may not use this file except in compliance with the License.
338N/A#
338N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6983N/A# or http://www.opensolaris.org/os/licensing.
6983N/A# See the License for the specific language governing permissions
338N/A# and limitations under the License.
338N/A#
338N/A# When distributing Covered Code, include this CDDL HEADER in each
338N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6983N/A# If applicable, add the following below this CDDL HEADER, with the
6983N/A# fields enclosed by brackets "[]" replaced with your own identifying
6983N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6983N/A#
338N/A# CDDL HEADER END
338N/A#
338N/A#
338N/A# uts/sun4v/ontario/Makefile
338N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
3231N/A# Use is subject to license terms.
338N/A#
338N/A#ident "%Z%%M% %I% %E% SMI"
338N/A#
338N/A# This makefile drives the production of the sun4v ontario platform
338N/A# modules.
338N/A#
338N/A# sun4v ontario implementation architecture dependent
338N/A#
338N/A
338N/A#
338N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
338N/A#
338N/AUTSBASE = ../..
338N/A
2095N/A#
2095N/A# Include common rules.
2095N/A#
2095N/Ainclude $(UTSBASE)/sun4v/ontario/Makefile.ontario
2095N/A
338N/Adef := TARGET= def
338N/Aall := TARGET= all
338N/Ainstall := TARGET= install
338N/Ainstall_h := TARGET= install_h
338N/Aclean := TARGET= clean
338N/Aclobber := TARGET= clobber
338N/Alint := TARGET= lint
338N/Alintlib := TARGET= lintlib
338N/Amodlintlib := TARGET= modlintlib
338N/Amodlist := TARGET= modlist
338N/Amodlist := NO_STATE= -K $$MODSTATE$$$$
338N/Aclean.lint := TARGET= clean.lint
338N/Acheck := TARGET= check
338N/A
338N/A#
338N/A# Default build targets.
338N/A#
338N/A.KEEP_STATE:
338N/A
338N/Adef all clean clobber clean.lint modlist: $(ONTARIO_KMODS)
338N/A
338N/Alintlib: unix
338N/A
338N/Amodlintlib: $(ONTARIO_KMODS)
IMPLEMENTED_PLATFORM = SUNW,Sun-Fire-T200
LINKED_PLATFORMS = SUNW,Sun-Fire-T1000
LINKED_PLATFORMS += SUNW,Netra-T2000
PPLINKED_PLATFORMS = SUNW,Netra-T2000
install: $(ROOT_ONTARIO_DIR) $(USR_ONTARIO_DIR) \
$(USR_ONTARIO_SBIN_DIR) \
$(USR_ONTARIO_LIB_DIR) \
$(ROOT_ONTARIO_LIB_DIR) \
$(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%) \
$(PPLINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%) \
.WAIT $(ONTARIO_KMODS)
$(ONTARIO_KMODS): FRC
@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
install_h check: FRC
lint: modlintlib .WAIT $(LINT_DEPS)
LINT_LIBS = $(LINT_LIB) \
-L$(ONTARIO_LINT_LIB_DIR) \
-L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
$(CLOSED_LINT_KMODS:%=-l%) \
-L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
lint.platmod: modlintlib
@-$(ECHO) "\n$(IMPLEMENTED_PLATFORM) platform-dependent module: global crosschecks:"
@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
EXPORT_SRC:
$(RM) Makefile+
sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
< Makefile > Makefile+
$(MV) Makefile+ Makefile
$(CHMOD) 444 Makefile
# EXPORT DELETE END
#
# Include common targets.
#
include $(UTSBASE)/$(PLATFORM)/ontario/Makefile.targ