1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21# 22# uts/sun4u/snowbird/Makefile 23# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26#ident "%Z%%M% %I% %E% SMI" 27# 28# This makefile drives the production of the sun4u snowbird platform 29# module. 30# 31# sun4u snowbird implementation architecture dependent 32# 33 34# 35# Path to the base of the uts directory tree (usually /usr/src/uts). 36# 37UTSBASE = ../.. 38 39include $(UTSBASE)/sun4u/snowbird/Makefile.snowbird 40 41# 42# 43# 44 45def := TARGET= def 46all := TARGET= all 47install := TARGET= install 48install_h := TARGET= install_h 49clean := TARGET= clean 50clobber := TARGET= clobber 51lint := TARGET= lint 52lintlib := TARGET= lintlib 53modlintlib := TARGET= modlintlib 54modlist := TARGET= modlist 55modlist := NO_STATE= -K $$MODSTATE$$$$ 56clean.lint := TARGET= clean.lint 57check := TARGET= check 58 59IMPLEMENTED_PLATFORM = SUNW,Netra-CP2300 60 61# 62# Default build targets. 63# 64.KEEP_STATE: 65 66.PARALLEL: $(SNOWBIRD_KMODS) 67 68def all clean clobber clean.lint modlist: $(SNOWBIRD_KMODS) 69 70install: $(ROOT_SNOWBIRD_DIR) $(USR_SNOWBIRD_DIR) \ 71 $(USR_SNOWBIRD_INC_DIR) \ 72 $(USR_SNOWBIRD_SBIN_DIR) \ 73 $(USR_SNOWBIRD_SBIN_PRTDIAG) \ 74 $(USR_SNOWBIRD_SBIN_TRAPSTAT) \ 75 $(USR_SNOWBIRD_SBIN_FRUADM) \ 76 $(USR_SNOWBIRD_LIB_DIR) \ 77 .WAIT $(SNOWBIRD_KMODS) \ 78 ttymux_dacf ttymux.conf 79 80modlintlib: $(SNOWBIRD_KMODS) 81 82$(SNOWBIRD_KMODS): FRC 83 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET) 84 85ttymux_dacf: $(ROOT_SNOWBIRD_DACF_DIR_64) 86 -@$(RM) $(ROOT_SNOWBIRD_DACF_DIR_64)/$@ 87 $(SYMLINK) $(ROOT_SNOWBIRD_DACF_LINK_64)/$@ \ 88 $(ROOT_SNOWBIRD_DACF_DIR_64)/$@ 89 90 91ttymux.conf: $(ROOT_SNOWBIRD_DRV_DIR) 92 -@$(RM) $(ROOT_SNOWBIRD_DRV_DIR_32)/$@ 93 $(SYMLINK) $(ROOT_SNOWBIRD_DRV_LINK_32)/$@ \ 94 $(ROOT_SNOWBIRD_DRV_DIR_32)/$@ 95 96install_h check: FRC 97 @cd sys; pwd; $(MAKE) $(TARGET) 98 99lint: modlintlib 100 101LINT_LIBS = $(LINT_LIB) \ 102 -L$(SNOWBIRD_LINT_LIB_DIR) \ 103 -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \ 104 $(CLOSED_LINT_KMODS:%=-l%) \ 105 -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%) 106 107lint.platmod: modlintlib 108 @-$(ECHO) "\nSnowbird Platform-dependent module: global crosschecks:" 109 @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2) 110 111# 112# Include common targets. 113# 114include $(UTSBASE)/sun4u/snowbird/Makefile.targ 115