xref: /illumos-gate/usr/src/uts/sun4u/opl/Makefile (revision 56ffda17)
125cf1a30Sjl#
225cf1a30Sjl# CDDL HEADER START
325cf1a30Sjl#
425cf1a30Sjl# The contents of this file are subject to the terms of the
525cf1a30Sjl# Common Development and Distribution License (the "License").
625cf1a30Sjl# You may not use this file except in compliance with the License.
725cf1a30Sjl#
825cf1a30Sjl# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
925cf1a30Sjl# or http://www.opensolaris.org/os/licensing.
1025cf1a30Sjl# See the License for the specific language governing permissions
1125cf1a30Sjl# and limitations under the License.
1225cf1a30Sjl#
1325cf1a30Sjl# When distributing Covered Code, include this CDDL HEADER in each
1425cf1a30Sjl# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1525cf1a30Sjl# If applicable, add the following below this CDDL HEADER, with the
1625cf1a30Sjl# fields enclosed by brackets "[]" replaced with your own identifying
1725cf1a30Sjl# information: Portions Copyright [yyyy] [name of copyright owner]
1825cf1a30Sjl#
1925cf1a30Sjl# CDDL HEADER END
2025cf1a30Sjl#
2125cf1a30Sjl#
221e49577aSRod Evans# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
2325cf1a30Sjl#
2425cf1a30Sjl#	This makefile drives the production of the sun4u opl platform
2525cf1a30Sjl#	module.
2625cf1a30Sjl#
2725cf1a30Sjl#	sun4u opl implementation architecture dependent
2825cf1a30Sjl#
2925cf1a30Sjl# uts/sun4u/opl/Makefile
3025cf1a30Sjl
3125cf1a30Sjl#
3225cf1a30Sjl#	Path to the base of the uts directory tree (usually /usr/src/uts).
3325cf1a30Sjl#
3425cf1a30SjlUTSBASE	= ../..
3525cf1a30Sjl
3625cf1a30Sjl#
3725cf1a30Sjl#       Include common rules.
3825cf1a30Sjl#
3925cf1a30Sjlinclude $(UTSBASE)/sun4u/opl/Makefile.opl
4025cf1a30Sjl
4125cf1a30Sjldef		:=	TARGET= def
4225cf1a30Sjlall		:=	TARGET= all
4325cf1a30Sjlinstall		:=	TARGET= install
4425cf1a30Sjlinstall_h	:=	TARGET= install_h
4525cf1a30Sjlclean		:=	TARGET= clean
4625cf1a30Sjlclobber		:=	TARGET= clobber
4725cf1a30Sjlmodlist		:=	TARGET= modlist
4825cf1a30Sjlmodlist		:=	NO_STATE= -K $$MODSTATE$$$$
4925cf1a30Sjlcheck		:=	TARGET= check
5025cf1a30Sjl
5125cf1a30Sjl#
5225cf1a30Sjl#	Default build targets.
5325cf1a30Sjl#
5425cf1a30Sjl.KEEP_STATE:
5525cf1a30Sjl
560aaef2f5SRichard Lowedef all clean clobber: genassym unix .WAIT \
57*56ffda17SRichard Lowe		$(OPL_CPU_KMODS) $(OPL_KMODS)
5825cf1a30Sjl
59*56ffda17SRichard Lowemodlist:	unix $(OPL_CPU_KMODS) $(OPL_KMODS)
6025cf1a30Sjl
6125cf1a30SjlIMPLEMENTED_PLATFORM	= SUNW,SPARC-Enterprise
6225cf1a30Sjl
6325cf1a30Sjlinstall: $(ROOT_OPL_DIR) $(USR_OPL_DIR) \
6425cf1a30Sjl	$(USR_OPL_INC_DIR) \
6525cf1a30Sjl	$(USR_OPL_SBIN_DIR) \
6625cf1a30Sjl	$(USR_OPL_SBIN_PRTDIAG) \
6725cf1a30Sjl	$(USR_OPL_SBIN_FRUADM) \
6825cf1a30Sjl	$(USR_OPL_LIB_DIR) \
6925cf1a30Sjl	$(OPL_CRYPTO_LINKS) \
7025cf1a30Sjl	genassym unix .WAIT $(OPL_CPU_KMODS) $(OPL_KMODS) \
71*56ffda17SRichard Lowe	$(OPLMSU_OPTION)
7225cf1a30Sjl
7325cf1a30Sjlgenassym unix $(OPL_KMODS) $(OPL_CPU_KMODS): FRC
7425cf1a30Sjl	@cd $@; pwd; $(MAKE) $(TARGET)
7525cf1a30Sjl
7625cf1a30Sjl$(OPL_CRYPTO_LINKS): $(ROOT_OPL_CRYPTO_DIR_64)
7725cf1a30Sjl	-$(RM) $(ROOT_OPL_CRYPTO_DIR_64)/$@
7825cf1a30Sjl	$(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_OPL_CRYPTO_DIR_64)/$@
7925cf1a30Sjl
8025cf1a30Sjl$(OPLMSU_OPTION):	FRC
8125cf1a30Sjl	@cd $@; pwd; $(MAKE) $(TARGET)
8225cf1a30Sjl
8325cf1a30Sjlinstall_h check:	FRC
8425cf1a30Sjl	@cd sys; pwd; $(MAKE) $(TARGET)
8525cf1a30Sjl
8625cf1a30Sjl#
8725cf1a30Sjl#
8825cf1a30Sjl#	Include common targets.
8925cf1a30Sjl#
9025cf1a30Sjlinclude $(UTSBASE)/sun4u/opl/Makefile.targ
91