Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER START
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# The contents of this file are subject to the terms of the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Common Development and Distribution License, Version 1.0 only
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# (the "License"). You may not use this file except in compliance
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# with the License.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# or http://www.opensolaris.org/os/licensing.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# See the License for the specific language governing permissions
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# and limitations under the License.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# When distributing Covered Code, include this CDDL HEADER in each
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# If applicable, add the following below this CDDL HEADER, with the
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# fields enclosed by brackets "[]" replaced with your own identifying
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# information: Portions Copyright [yyyy] [name of copyright owner]
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER END
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# uts/sun4u/snowbird/Makefile
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Use is subject to license terms.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#ident "%Z%%M% %I% %E% SMI"
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# This makefile drives the production of the sun4u snowbird platform
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# module.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# sun4u snowbird implementation architecture dependent
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Path to the base of the uts directory tree (usually /usr/src/uts).
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweUTSBASE = ../..
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinclude $(UTSBASE)/sun4u/snowbird/Makefile.snowbird
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankovdef := TARGET= def
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweall := TARGET= all
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinstall := TARGET= install
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinstall_h := TARGET= install_h
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankovclean := TARGET= clean
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweclobber := TARGET= clobber
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankovlint := TARGET= lint
lintlib := TARGET= lintlib
modlintlib := TARGET= modlintlib
clean.lint := TARGET= clean.lint
check := TARGET= check
IMPLEMENTED_PLATFORM = SUNW,Netra-CP2300
#
# Default build targets.
#
.KEEP_STATE:
.PARALLEL: $(SNOWBIRD_KMODS)
def all clean clobber clean.lint: $(SNOWBIRD_KMODS)
install: $(ROOT_SNOWBIRD_DIR) $(USR_SNOWBIRD_DIR) \
$(USR_SNOWBIRD_INC_DIR) \
$(USR_SNOWBIRD_SBIN_DIR) \
$(USR_SNOWBIRD_SBIN_EEPROM) \
$(USR_SNOWBIRD_SBIN_PRTDIAG) \
$(USR_SNOWBIRD_SBIN_TRAPSTAT) \
$(USR_SNOWBIRD_SBIN_FRUADM) \
$(USR_SNOWBIRD_LIB_DIR) \
.WAIT $(SNOWBIRD_KMODS) \
ttymux_dacf ttymux.conf
modlintlib: $(SNOWBIRD_KMODS)
$(SNOWBIRD_KMODS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
ttymux_dacf: $(ROOT_SNOWBIRD_DACF_DIR_64)
-@$(RM) $(ROOT_SNOWBIRD_DACF_DIR_64)/$@
$(SYMLINK) $(ROOT_SNOWBIRD_DACF_LINK_64)/$@ \
$(ROOT_SNOWBIRD_DACF_DIR_64)/$@
ttymux.conf: $(ROOT_SNOWBIRD_DRV_DIR)
-@$(RM) $(ROOT_SNOWBIRD_DRV_DIR_32)/$@
$(SYMLINK) $(ROOT_SNOWBIRD_DRV_LINK_32)/$@ \
$(ROOT_SNOWBIRD_DRV_DIR_32)/$@
install_h check: FRC
@cd sys; pwd; $(MAKE) $(TARGET)
lint: modlintlib
LINT_LIBS = $(LINT_LIB) \
-L$(SNOWBIRD_LINT_LIB_DIR) \
-L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
-L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
lint.platmod: modlintlib
@-$(ECHO) "\nSnowbird Platform-dependent module: global crosschecks:"
@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
#
# Include common targets.
#
include $(UTSBASE)/sun4u/snowbird/Makefile.targ