xref: /titanic_51/usr/src/uts/sun4u/schumacher/Makefile (revision bbaa8b60dd95d714741fc474adad3cf710ef4efd)
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# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
22#
23#	This makefile drives the production of the sun4u schumacher platform
24#	module.
25#
26#	sun4u implementation architecture dependent
27#
28
29#
30#	Path to the base of the uts directory tree (usually /usr/src/uts).
31#
32UTSBASE	= ../..
33
34#
35#	Include common rules.
36#
37include $(UTSBASE)/sun4u/schumacher/Makefile.schumacher
38
39def		:=	TARGET= def
40all		:=	TARGET= all
41install		:=	TARGET= install
42install_h	:=	TARGET= install_h
43clean		:=	TARGET= clean
44clobber		:=	TARGET= clobber
45lint		:=	TARGET= lint
46lintlib		:=	TARGET= lintlib
47modlintlib	:=	TARGET= modlintlib
48modlist		:=	TARGET= modlist
49modlist		:=	NO_STATE= -K $$MODSTATE$$$$
50clean.lint	:=	TARGET= clean.lint
51check		:=	TARGET= check
52
53#
54#	Default build targets.
55#
56.KEEP_STATE:
57
58def all clean clean.lint clobber modlist: $(SCHUMACHER_KMODS)
59
60modlintlib:	$(SCHUMACHER_KMODS)
61
62install:	$(ROOT_SCHUMACHER_DIR) \
63		$(USR_SCHUMACHER_DIR) \
64		$(USR_SCHUMACHER_INC_DIR) \
65		$(USR_SCHUMACHER_SBIN_DIR) \
66		$(USR_SCHUMACHER_SBIN_PRTDIAG) \
67		$(USR_SCHUMACHER_SBIN_FRUADM) \
68		$(USR_SCHUMACHER_LIB_DIR) \
69		$(SCHUMACHER_CRYPTO_LINKS) \
70		$(SCHUMACHER_KMODS)
71
72check install_h:
73
74lint:		modlintlib
75
76#
77# The 'lint.platmod' target lints the schumacher platform module against the sun4u
78# kernel.  This ends up doing all the kernel cross-checks, so it takes a couple
79# of minutes.
80#
81LINT_LIBS	 = $(LINT_LIB) \
82		   -L$(SCHUMACHER_LINT_LIB_DIR) \
83		   -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
84		   	$(CLOSED_LINT_KMODS:%=-l%) \
85		   -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
86
87lint.platmod:	modlintlib
88	@-$(ECHO) "\nSchumacher Platform-dependent module: global crosschecks:"
89	@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
90
91$(SCHUMACHER_KMODS): FRC
92	@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
93
94$(SCHUMACHER_CRYPTO_LINKS): $(ROOT_SCHUMACHER_CRYPTO_DIR_64)
95	-$(RM) $(ROOT_SCHUMACHER_CRYPTO_DIR_64)/$@;
96	$(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_SCHUMACHER_CRYPTO_DIR_64)/$@
97
98#
99#	Include common targets.
100#
101include $(UTSBASE)/sun4u/schumacher/Makefile.targ
102