xref: /titanic_51/usr/src/uts/sun4u/boston/Makefile (revision 1e49577a7fcde812700ded04431b49d67cc57d6d)
1d58fda43Sjbeloro#
206e46062Sjbeloro# CDDL HEADER START
306e46062Sjbeloro#
406e46062Sjbeloro# The contents of this file are subject to the terms of the
506e46062Sjbeloro# Common Development and Distribution License (the "License").
606e46062Sjbeloro# You may not use this file except in compliance with the License.
706e46062Sjbeloro#
806e46062Sjbeloro# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
906e46062Sjbeloro# or http://www.opensolaris.org/os/licensing.
1006e46062Sjbeloro# See the License for the specific language governing permissions
1106e46062Sjbeloro# and limitations under the License.
1206e46062Sjbeloro#
1306e46062Sjbeloro# When distributing Covered Code, include this CDDL HEADER in each
1406e46062Sjbeloro# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1506e46062Sjbeloro# If applicable, add the following below this CDDL HEADER, with the
1606e46062Sjbeloro# fields enclosed by brackets "[]" replaced with your own identifying
1706e46062Sjbeloro# information: Portions Copyright [yyyy] [name of copyright owner]
1806e46062Sjbeloro#
1906e46062Sjbeloro# CDDL HEADER END
2006e46062Sjbeloro#
2106e46062Sjbeloro
2206e46062Sjbeloro#
23*1e49577aSRod Evans# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
24d58fda43Sjbeloro#
25d58fda43Sjbeloro# uts/sun4u/boston/Makefile
26d58fda43Sjbeloro#
27d58fda43Sjbeloro#	This makefile drives the production of the sun4u boston platform
28d58fda43Sjbeloro#	module.
29d58fda43Sjbeloro#
30d58fda43Sjbeloro#	sun4u implementation architecture dependent
31d58fda43Sjbeloro#
32d58fda43Sjbeloro
33d58fda43Sjbeloro#
34d58fda43Sjbeloro#	Path to the base of the uts directory tree (usually /usr/src/uts).
35d58fda43Sjbeloro#
36d58fda43SjbeloroUTSBASE	= ../..
37d58fda43Sjbeloro
38d58fda43Sjbeloro#
39d58fda43Sjbeloro#	Include common rules.
40d58fda43Sjbeloro#
41d58fda43Sjbeloroinclude $(UTSBASE)/sun4u/boston/Makefile.boston
42d58fda43Sjbeloro
43d58fda43Sjbelorodef		:=	TARGET= def
44d58fda43Sjbeloroall		:=	TARGET= all
45d58fda43Sjbeloroinstall		:=	TARGET= install
46d58fda43Sjbeloroinstall_h	:=	TARGET= install_h
47d58fda43Sjbeloroclean		:=	TARGET= clean
48d58fda43Sjbeloroclobber		:=	TARGET= clobber
49d58fda43Sjbelorolint		:=	TARGET= lint
50d58fda43Sjbelorolintlib		:=	TARGET= lintlib
51d58fda43Sjbeloromodlintlib	:=	TARGET= modlintlib
52fb9f9b97Skupfermodlist		:=	TARGET= modlist
53fb9f9b97Skupfermodlist		:=	NO_STATE= -K $$MODSTATE$$$$
54d58fda43Sjbeloroclean.lint	:=	TARGET= clean.lint
55d58fda43Sjbelorocheck		:=	TARGET= check
56d58fda43Sjbeloro
57d58fda43Sjbeloro#
58d58fda43Sjbeloro#	Default build targets.
59d58fda43Sjbeloro#
60d58fda43Sjbeloro.KEEP_STATE:
61d58fda43Sjbeloro
62fb9f9b97Skupferdef all clean clean.lint clobber modlist: $(BOSTON_KMODS)
63d58fda43Sjbeloro
64d58fda43Sjbeloromodlintlib:	$(BOSTON_KMODS)
65d58fda43Sjbeloro
66d58fda43Sjbeloroinstall:	$(ROOT_BOSTON_DIR) \
67d58fda43Sjbeloro		$(USR_BOSTON_DIR) \
68d58fda43Sjbeloro		$(USR_BOSTON_INC_DIR) \
69d58fda43Sjbeloro		$(USR_BOSTON_SBIN_PRTDIAG) \
7006e46062Sjbeloro		$(USR_BOSTON_SBIN_FRUADM) \
71d58fda43Sjbeloro		$(USR_BOSTON_LIB_DIR) \
72d58fda43Sjbeloro		$(BOSTON_CRYPTO_LINKS) \
73d58fda43Sjbeloro		.WAIT $(BOSTON_KMODS)
74d58fda43Sjbeloro
75d58fda43Sjbelorocheck install_h:
76d58fda43Sjbeloro
77d58fda43Sjbelorolint:		modlintlib
78d58fda43Sjbeloro
79d58fda43Sjbeloro#
80d58fda43Sjbeloro# The 'lint.platmod' target lints the boston platform module against the sun4u
81d58fda43Sjbeloro# kernel.  This ends up doing all the kernel cross-checks, so it takes a couple
82d58fda43Sjbeloro# of minutes.  Due to the low ROI, it's not run by default, but it's a good
83d58fda43Sjbeloro# idea to run this if you change os/boston.c.
84d58fda43Sjbeloro#
85d58fda43SjbeloroLINT_LIBS	 = $(LINT_LIB) \
86d58fda43Sjbeloro		   -L$(BOSTON_LINT_LIB_DIR) \
87d58fda43Sjbeloro		   -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
88fb9f9b97Skupfer			$(CLOSED_LINT_KMODS:%=-l%) \
89d58fda43Sjbeloro		   -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
90d58fda43Sjbeloro
91d58fda43Sjbelorolint.platmod:	modlintlib
92d58fda43Sjbeloro	@-$(ECHO) "\nBoston Platform-dependent module: global crosschecks:"
93d58fda43Sjbeloro	@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
94d58fda43Sjbeloro
95d58fda43Sjbeloro$(BOSTON_KMODS): FRC
96fb9f9b97Skupfer	@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
97d58fda43Sjbeloro
98d58fda43Sjbeloro$(BOSTON_CRYPTO_LINKS): $(ROOT_BOSTON_CRYPTO_DIR_64)
99d58fda43Sjbeloro	-$(RM) $(ROOT_BOSTON_CRYPTO_DIR_64)/$@;
100d58fda43Sjbeloro	$(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_BOSTON_CRYPTO_DIR_64)/$@
101d58fda43Sjbeloro
102d58fda43Sjbeloro#
103d58fda43Sjbeloro#
104d58fda43Sjbeloro#	Include common targets.
105d58fda43Sjbeloro#
106d58fda43Sjbeloroinclude $(UTSBASE)/sun4u/boston/Makefile.targ
107