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/cherrystone/Makefile
23# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#	This makefile drives the production of all Cherrystone system
27#	dependent modules for the sun4u architecture.
28#
29
30#
31#	Path to the base of the uts directory tree (usually /usr/src/uts).
32#
33UTSBASE = ../..
34
35#
36#	Include common rules.
37#
38include $(UTSBASE)/sun4u/cherrystone/Makefile.cherrystone
39
40def		:=	TARGET= def
41all		:=	TARGET= all
42install		:=	TARGET= install
43install_h	:=	TARGET= install_h
44clean		:=	TARGET= clean
45clobber		:=	TARGET= clobber
46modlist		:=	TARGET= modlist
47modlist		:=	NO_STATE= -K $$MODSTATE$$$$
48check		:=	TARGET= check
49
50#
51#	Default build targets.
52#
53.KEEP_STATE:
54
55def all clean clobber modlist: $(CHERRYSTONE_KMODS)
56
57IMPLEMENTED_PLATFORM	= SUNW,Sun-Fire-480R
58
59LINKED_PLATFORMS	= SUNW,Sun-Fire-V490
60
61install:	$(ROOT_CHERRYSTONE_DIR) $(USR_CHERRYSTONE_DIR) \
62		$(USR_CHERRYSTONE_INC_DIR) \
63		$(USR_CHERRYSTONE_SBIN_DIR) \
64		$(USR_CHERRYSTONE_LIB_DIR) \
65		$(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%) \
66		$(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib) \
67		$(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/include) \
68		$(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/sbin) \
69		$(CHERRYSTONE_CRYPTO_LINKS) \
70		.WAIT $(CHERRYSTONE_KMODS)
71
72install_h check:	FRC
73	@cd sys; pwd; $(MAKE) $(TARGET)
74
75$(CHERRYSTONE_CRYPTO_LINKS): $(ROOT_CHERRYSTONE_CRYPTO_DIR_64)
76	-$(RM) $(ROOT_CHERRYSTONE_CRYPTO_DIR_64)/$@;
77	$(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ \
78	    $(ROOT_CHERRYSTONE_CRYPTO_DIR_64)/$@
79
80$(CHERRYSTONE_KMODS):	FRC
81	@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
82
83#
84#
85#	Include common targets.
86#
87include $(UTSBASE)/sun4u/cherrystone/Makefile.targ
88