xref: /titanic_44/usr/src/uts/sun4u/lw2plus/Makefile (revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4)
13db86aabSstevel#
23db86aabSstevel# CDDL HEADER START
33db86aabSstevel#
43db86aabSstevel# The contents of this file are subject to the terms of the
53db86aabSstevel# Common Development and Distribution License (the "License").
63db86aabSstevel# You may not use this file except in compliance with the License.
73db86aabSstevel#
83db86aabSstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
93db86aabSstevel# or http://www.opensolaris.org/os/licensing.
103db86aabSstevel# See the License for the specific language governing permissions
113db86aabSstevel# and limitations under the License.
123db86aabSstevel#
133db86aabSstevel# When distributing Covered Code, include this CDDL HEADER in each
143db86aabSstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
153db86aabSstevel# If applicable, add the following below this CDDL HEADER, with the
163db86aabSstevel# fields enclosed by brackets "[]" replaced with your own identifying
173db86aabSstevel# information: Portions Copyright [yyyy] [name of copyright owner]
183db86aabSstevel#
193db86aabSstevel# CDDL HEADER END
203db86aabSstevel#
213db86aabSstevel#
22*24fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
233db86aabSstevel# Use is subject to license terms.
243db86aabSstevel#
253db86aabSstevel
263db86aabSstevel#
273db86aabSstevel#	This makefile drives the production of the sun4u lw2plus platform
283db86aabSstevel#	module.
293db86aabSstevel#
303db86aabSstevel#	sun4u implementation architecture dependent
313db86aabSstevel#
323db86aabSstevel
333db86aabSstevel#
343db86aabSstevel#	Path to the base of the uts directory tree (usually /usr/src/uts).
353db86aabSstevel#
363db86aabSstevelUTSBASE	  = ../..
373db86aabSstevel
383db86aabSstevel#
393db86aabSstevel#	Include common rules.
403db86aabSstevel#
413db86aabSstevelinclude $(UTSBASE)/sun4u/lw2plus/Makefile.lw2plus
423db86aabSstevel
433db86aabSsteveldef		:=	TARGET= def
443db86aabSstevelall		:=	TARGET= all
453db86aabSstevelinstall		:=	TARGET= install
463db86aabSstevelinstall_h	:=	TARGET= install_h
473db86aabSstevelclean		:=	TARGET= clean
483db86aabSstevelclobber		:=	TARGET= clobber
493db86aabSstevellint		:=	TARGET= lint
503db86aabSstevellintlib		:=	TARGET= lintlib
513db86aabSstevelmodlintlib	:=	TARGET= modlintlib
523db86aabSstevelmodlist		:=	TARGET= modlist
533db86aabSstevelmodlist		:=	NO_STATE= -K $$MODSTATE$$$$
543db86aabSstevelclean.lint	:=	TARGET= clean.lint
553db86aabSstevelcheck		:=	TARGET= check
563db86aabSstevel
573db86aabSstevel#
583db86aabSstevel#	Default build targets.
593db86aabSstevel#
603db86aabSstevel.KEEP_STATE:
613db86aabSstevel
623db86aabSsteveldef all clean clean.lint clobber modlist: $(LW2PLUS_KMODS)
633db86aabSstevel
643db86aabSstevellintlib:	unix
653db86aabSstevel
663db86aabSstevelmodlintlib:	$(LW2PLUS_KMODS)
673db86aabSstevel
683db86aabSstevelIMPLEMENTED_PLATFORM	= SUNW,Netra-T4
693db86aabSstevelLINKS2DESTDIR	= ../../../../SUNW,Sun-Fire-280R/kernel/misc/sparcv9
703db86aabSstevelLW2PLUS_LINKS_2	= SUNW,Netra-T4/kernel/misc/sparcv9/platmod
713db86aabSstevelLW2PLUS_PLAT_LINKS_2  = $(LW2PLUS_LINKS_2:%=$(ROOT_PLAT_DIR)/%)
723db86aabSstevel
733db86aabSstevelinstall:	$(ROOT_LW2PLUS_DIR) $(USR_LW2PLUS_DIR) \
743db86aabSstevel		$(ROOT_LW2PLUS_MISC_DIR_64) \
753db86aabSstevel		$(USR_LW2PLUS_INC_DIR) \
763db86aabSstevel		$(USR_LW2PLUS_SBIN_DIR) \
773db86aabSstevel		$(USR_LW2PLUS_LIB_DIR) \
783db86aabSstevel		.WAIT $(LW2PLUS_KMODS) \
793db86aabSstevel		$(LW2PLUS_PLAT_LINKS_2) \
803db86aabSstevel		$(LW2PLUS_CRYPTO_LINKS)
813db86aabSstevel
823db86aabSstevelinstall_h check:
833db86aabSstevel
843db86aabSstevellint:		modlintlib
853db86aabSstevel
863db86aabSstevelLINT_LIBS	 = $(LINT_LIB) \
873db86aabSstevel		   -L$(LW2PLUS_LINT_LIB_DIR) \
883db86aabSstevel		   -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
893db86aabSstevel		   -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
903db86aabSstevel
913db86aabSstevel$(LW2PLUS_KMODS): FRC
923db86aabSstevel	@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
933db86aabSstevel
943db86aabSstevel$(LW2PLUS_PLAT_LINKS_2):
95*24fe0b3bSjmcp	$(RM) $@; $(SYMLINK) $(LINKS2DESTDIR)/$(@F) $@
963db86aabSstevel
973db86aabSstevel$(LW2PLUS_CRYPTO_LINKS): $(ROOT_LW2PLUS_CRYPTO_DIR_64)
983db86aabSstevel	-$(RM) $(ROOT_LW2PLUS_CRYPTO_DIR_64)/$@;
993db86aabSstevel	$(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_LW2PLUS_CRYPTO_DIR_64)/$@
1003db86aabSstevel
1013db86aabSstevel#
1023db86aabSstevel#
1033db86aabSstevel#	Include common targets.
1043db86aabSstevel#
1053db86aabSstevelinclude $(UTSBASE)/sun4u/lw2plus/Makefile.targ
106