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# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. 23# 24# This makefile drives the production of the sun4u opl platform 25# module. 26# 27# sun4u opl implementation architecture dependent 28# 29# uts/sun4u/opl/Makefile 30 31# 32# Path to the base of the uts directory tree (usually /usr/src/uts). 33# 34UTSBASE = ../.. 35 36# 37# Include common rules. 38# 39include $(UTSBASE)/sun4u/opl/Makefile.opl 40 41def := TARGET= def 42all := TARGET= all 43install := TARGET= install 44install_h := TARGET= install_h 45clean := TARGET= clean 46clobber := TARGET= clobber 47lint := TARGET= lint 48lintlib := TARGET= lintlib 49modlist := TARGET= modlist 50modlist := NO_STATE= -K $$MODSTATE$$$$ 51modlintlib := TARGET= modlintlib 52clean.lint := TARGET= clean.lint 53check := TARGET= check 54 55# 56# Default build targets. 57# 58.KEEP_STATE: 59 60def all clean clobber clean.lint: genassym unix .WAIT \ 61 $(OPL_CPU_KMODS) $(OPL_KMODS) $(CLOSED_OPL_KMODS) 62 63modlist: unix $(OPL_CPU_KMODS) $(OPL_KMODS) $(CLOSED_OPL_KMODS) 64 65lintlib: unix 66 67modlintlib: $(OPL_KMODS) $(CLOSED_OPL_KMODS) 68 69IMPLEMENTED_PLATFORM = SUNW,SPARC-Enterprise 70 71install: $(ROOT_OPL_DIR) $(USR_OPL_DIR) \ 72 $(USR_OPL_INC_DIR) \ 73 $(USR_OPL_SBIN_DIR) \ 74 $(USR_OPL_SBIN_PRTDIAG) \ 75 $(USR_OPL_SBIN_FRUADM) \ 76 $(USR_OPL_LIB_DIR) \ 77 $(OPL_CRYPTO_LINKS) \ 78 genassym unix .WAIT $(OPL_CPU_KMODS) $(OPL_KMODS) \ 79 $(CLOSED_OPL_KMODS) $(OPLMSU_OPTION) 80 81genassym unix $(OPL_KMODS) $(OPL_CPU_KMODS): FRC 82 @cd $@; pwd; $(MAKE) $(TARGET) 83 84$(CLOSED_OPL_KMODS): FRC 85 cd $(CLOSED)/uts/sun4u/opl/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET) 86 87$(OPL_CRYPTO_LINKS): $(ROOT_OPL_CRYPTO_DIR_64) 88 -$(RM) $(ROOT_OPL_CRYPTO_DIR_64)/$@ 89 $(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_OPL_CRYPTO_DIR_64)/$@ 90 91$(OPLMSU_OPTION): FRC 92 @cd $@; pwd; $(MAKE) $(TARGET) 93 94install_h check: FRC 95 @cd sys; pwd; $(MAKE) $(TARGET) 96 97lint: modlintlib 98 99 100# 101# The 'lint.platmod' target lints the opl platform module against 102# the sun4u kernel. This ends up doing all the kernel cross-checks, 103# so it takes a couple of minutes. 104# Due to the low ROI, it's not run by default, but it's a good 105# idea to run this if you change os/opl.c. 106# 107 108LINT_LIBS = $(LINT_LIB) \ 109 -L$(OPL_LINT_LIB_DIR) \ 110 -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \ 111 $(CLOSED_LINT_KMODS:%=-l%) \ 112 -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%) 113 114lint.platmod: modlintlib 115 @-$(ECHO) "\nOpl Platform-dependent module: global crosschecks:" 116 @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2) 117 118# 119# 120# Include common targets. 121# 122include $(UTSBASE)/sun4u/opl/Makefile.targ 123