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, Version 1.0 only 6# (the "License"). You may not use this file except in compliance 7# with the License. 8# 9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10# or http://www.opensolaris.org/os/licensing. 11# See the License for the specific language governing permissions 12# and limitations under the License. 13# 14# When distributing Covered Code, include this CDDL HEADER in each 15# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16# If applicable, add the following below this CDDL HEADER, with the 17# fields enclosed by brackets "[]" replaced with your own identifying 18# information: Portions Copyright [yyyy] [name of copyright owner] 19# 20# CDDL HEADER END 21# 22# 23#pragma ident "%Z%%M% %I% %E% SMI" 24# 25# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 26# Use is subject to license terms. 27# 28# 29# This makefile drives the production of the sun4u starcat platform 30# module. 31# 32# sun4u starcat implementation architecture dependent 33# 34 35# 36# Path to the base of the uts directory tree (usually /usr/src/uts). 37# 38UTSBASE = ../.. 39 40# 41# Include common rules. 42# 43include $(UTSBASE)/sun4u/starcat/Makefile.starcat 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 59# 60# Default build targets. 61# 62.KEEP_STATE: 63 64def all clean clobber clean.lint: genassym unix .WAIT \ 65 $(STARCAT_CPU_KMODS) $(STARCAT_KMODS) $(CLOSED_STARCAT_KMODS) 66 67modlist: unix \ 68 $(STARCAT_CPU_KMODS) $(STARCAT_KMODS) $(CLOSED_STARCAT_KMODS) 69 70lintlib: unix 71 72modlintlib: $(STARCAT_KMODS) $(CLOSED_STARCAT_KMODS) 73 74IMPLEMENTED_PLATFORM = SUNW,Sun-Fire-15000 75 76# EXPORT DELETE START 77# 78# aes256 is delivered in the SUNWcryr package which is removed from 79# the EXPORT_SRC build. 80# 81STARCAT_CRYPTO_LINKS += aes256 82# EXPORT DELETE END 83 84install: $(ROOT_STARCAT_DIR) $(USR_STARCAT_DIR) \ 85 $(USR_STARCAT_INC_DIR) \ 86 $(USR_STARCAT_SBIN_DIR) \ 87 $(USR_STARCAT_LIB_DIR) \ 88 $(STARCAT_CRYPTO_LINKS) \ 89 genassym unix .WAIT $(STARCAT_CPU_KMODS) \ 90 $(STARCAT_KMODS) $(CLOSED_STARCAT_KMODS) 91 92genassym unix $(STARCAT_KMODS) $(STARCAT_CPU_KMODS): FRC 93 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET) 94 95$(CLOSED_STARCAT_KMODS): FRC 96 cd $(CLOSED)/uts/sun4u/starcat/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET) 97 98 99$(STARCAT_CRYPTO_LINKS): $(ROOT_STARCAT_CRYPTO_DIR_64) 100 -$(RM) $(ROOT_STARCAT_CRYPTO_DIR_64)/$@; 101 $(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_STARCAT_CRYPTO_DIR_64)/$@ 102 103install_h check: FRC 104 @cd sys; pwd; $(MAKE) $(TARGET) 105 106lint: modlintlib 107 108 109# 110# The 'lint.platmod' target lints the starcat platform module against 111# the sun4u kernel. This ends up doing all the kernel cross-checks, 112# so it takes a couple of minutes. 113# Due to the low ROI, it's not run by default, but it's a good 114# idea to run this if you change os/starcat.c. 115# 116 117LINT_LIBS = $(LINT_LIB) \ 118 -L$(STARCAT_LINT_LIB_DIR) \ 119 -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \ 120 $(CLOSED_LINT_KMODS:%=-l%) \ 121 -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%) 122 123lint.platmod: modlintlib 124 @-$(ECHO) "\nStarcat Platform-dependent module: global crosschecks:" 125 @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2) 126 127# EXPORT DELETE START 128 129EXPORT_SRC: 130 $(RM) Makefile+ 131 sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \ 132 < Makefile > Makefile+ 133 $(MV) Makefile+ Makefile 134 $(CHMOD) 444 Makefile 135 136# EXPORT DELETE END 137 138# 139# 140# Include common targets. 141# 142include $(UTSBASE)/sun4u/starcat/Makefile.targ 143