xref: /illumos-gate/usr/src/uts/sun4u/opl/Makefile (revision 0aaef2f5)
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
47modlist		:=	TARGET= modlist
48modlist		:=	NO_STATE= -K $$MODSTATE$$$$
49check		:=	TARGET= check
50
51#
52#	Default build targets.
53#
54.KEEP_STATE:
55
56def all clean clobber: genassym unix .WAIT \
57		$(OPL_CPU_KMODS) $(OPL_KMODS) $(CLOSED_OPL_KMODS)
58
59modlist:	unix $(OPL_CPU_KMODS) $(OPL_KMODS) $(CLOSED_OPL_KMODS)
60
61IMPLEMENTED_PLATFORM	= SUNW,SPARC-Enterprise
62
63install: $(ROOT_OPL_DIR) $(USR_OPL_DIR) \
64	$(USR_OPL_INC_DIR) \
65	$(USR_OPL_SBIN_DIR) \
66	$(USR_OPL_SBIN_PRTDIAG) \
67	$(USR_OPL_SBIN_FRUADM) \
68	$(USR_OPL_LIB_DIR) \
69	$(OPL_CRYPTO_LINKS) \
70	genassym unix .WAIT $(OPL_CPU_KMODS) $(OPL_KMODS) \
71	$(CLOSED_OPL_KMODS) $(OPLMSU_OPTION)
72
73genassym unix $(OPL_KMODS) $(OPL_CPU_KMODS): FRC
74	@cd $@; pwd; $(MAKE) $(TARGET)
75
76$(CLOSED_OPL_KMODS): FRC
77	cd $(CLOSED)/uts/sun4u/opl/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
78
79$(OPL_CRYPTO_LINKS): $(ROOT_OPL_CRYPTO_DIR_64)
80	-$(RM) $(ROOT_OPL_CRYPTO_DIR_64)/$@
81	$(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_OPL_CRYPTO_DIR_64)/$@
82
83$(OPLMSU_OPTION):	FRC
84	@cd $@; pwd; $(MAKE) $(TARGET)
85
86install_h check:	FRC
87	@cd sys; pwd; $(MAKE) $(TARGET)
88
89#
90#
91#	Include common targets.
92#
93include $(UTSBASE)/sun4u/opl/Makefile.targ
94