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
45modlist		:=	TARGET= modlist
46modlist		:=	NO_STATE= -K $$MODSTATE$$$$
47check		:=	TARGET= check
48
49#
50#	Default build targets.
51#
52.KEEP_STATE:
53
54def all clean clobber modlist: $(SCHUMACHER_KMODS)
55
56install:	$(ROOT_SCHUMACHER_DIR) \
57		$(USR_SCHUMACHER_DIR) \
58		$(USR_SCHUMACHER_INC_DIR) \
59		$(USR_SCHUMACHER_SBIN_DIR) \
60		$(USR_SCHUMACHER_SBIN_PRTDIAG) \
61		$(USR_SCHUMACHER_SBIN_FRUADM) \
62		$(USR_SCHUMACHER_LIB_DIR) \
63		$(SCHUMACHER_CRYPTO_LINKS) \
64		$(SCHUMACHER_KMODS)
65
66check install_h:
67
68$(SCHUMACHER_KMODS): FRC
69	@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
70
71$(SCHUMACHER_CRYPTO_LINKS): $(ROOT_SCHUMACHER_CRYPTO_DIR_64)
72	-$(RM) $(ROOT_SCHUMACHER_CRYPTO_DIR_64)/$@;
73	$(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_SCHUMACHER_CRYPTO_DIR_64)/$@
74
75#
76#	Include common targets.
77#
78include $(UTSBASE)/sun4u/schumacher/Makefile.targ
79