xref: /onnv-gate/usr/src/uts/sun4u/lw2plus/Makefile (revision 10207:87c40ea3fc4b)
12305Sstevel#
22305Sstevel# CDDL HEADER START
32305Sstevel#
42305Sstevel# The contents of this file are subject to the terms of the
52305Sstevel# Common Development and Distribution License (the "License").
62305Sstevel# You may not use this file except in compliance with the License.
72305Sstevel#
82305Sstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
92305Sstevel# or http://www.opensolaris.org/os/licensing.
102305Sstevel# See the License for the specific language governing permissions
112305Sstevel# and limitations under the License.
122305Sstevel#
132305Sstevel# When distributing Covered Code, include this CDDL HEADER in each
142305Sstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
152305Sstevel# If applicable, add the following below this CDDL HEADER, with the
162305Sstevel# fields enclosed by brackets "[]" replaced with your own identifying
172305Sstevel# information: Portions Copyright [yyyy] [name of copyright owner]
182305Sstevel#
192305Sstevel# CDDL HEADER END
202305Sstevel#
212305Sstevel#
22*10207SJames.McPherson@Sun.COM# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
232305Sstevel# Use is subject to license terms.
242305Sstevel#
252305Sstevel
262305Sstevel#
272305Sstevel#	This makefile drives the production of the sun4u lw2plus platform
282305Sstevel#	module.
292305Sstevel#
302305Sstevel#	sun4u implementation architecture dependent
312305Sstevel#
322305Sstevel
332305Sstevel#
342305Sstevel#	Path to the base of the uts directory tree (usually /usr/src/uts).
352305Sstevel#
362305SstevelUTSBASE	  = ../..
372305Sstevel
382305Sstevel#
392305Sstevel#	Include common rules.
402305Sstevel#
412305Sstevelinclude $(UTSBASE)/sun4u/lw2plus/Makefile.lw2plus
422305Sstevel
432305Ssteveldef		:=	TARGET= def
442305Sstevelall		:=	TARGET= all
452305Sstevelinstall		:=	TARGET= install
462305Sstevelinstall_h	:=	TARGET= install_h
472305Sstevelclean		:=	TARGET= clean
482305Sstevelclobber		:=	TARGET= clobber
492305Sstevellint		:=	TARGET= lint
502305Sstevellintlib		:=	TARGET= lintlib
512305Sstevelmodlintlib	:=	TARGET= modlintlib
522305Sstevelmodlist		:=	TARGET= modlist
532305Sstevelmodlist		:=	NO_STATE= -K $$MODSTATE$$$$
542305Sstevelclean.lint	:=	TARGET= clean.lint
552305Sstevelcheck		:=	TARGET= check
562305Sstevel
572305Sstevel#
582305Sstevel#	Default build targets.
592305Sstevel#
602305Sstevel.KEEP_STATE:
612305Sstevel
622305Ssteveldef all clean clean.lint clobber modlist: $(LW2PLUS_KMODS)
632305Sstevel
642305Sstevellintlib:	unix
652305Sstevel
662305Sstevelmodlintlib:	$(LW2PLUS_KMODS)
672305Sstevel
682305SstevelIMPLEMENTED_PLATFORM	= SUNW,Netra-T4
692305SstevelLINKS2DESTDIR	= ../../../../SUNW,Sun-Fire-280R/kernel/misc/sparcv9
702305SstevelLW2PLUS_LINKS_2	= SUNW,Netra-T4/kernel/misc/sparcv9/platmod
712305SstevelLW2PLUS_PLAT_LINKS_2  = $(LW2PLUS_LINKS_2:%=$(ROOT_PLAT_DIR)/%)
722305Sstevel
732305Sstevelinstall:	$(ROOT_LW2PLUS_DIR) $(USR_LW2PLUS_DIR) \
742305Sstevel		$(ROOT_LW2PLUS_MISC_DIR_64) \
752305Sstevel		$(USR_LW2PLUS_INC_DIR) \
762305Sstevel		$(USR_LW2PLUS_SBIN_DIR) \
772305Sstevel		$(USR_LW2PLUS_LIB_DIR) \
782305Sstevel		.WAIT $(LW2PLUS_KMODS) \
792305Sstevel		$(LW2PLUS_PLAT_LINKS_2) \
802305Sstevel		$(LW2PLUS_CRYPTO_LINKS)
812305Sstevel
822305Sstevelinstall_h check:
832305Sstevel
842305Sstevellint:		modlintlib
852305Sstevel
862305SstevelLINT_LIBS	 = $(LINT_LIB) \
872305Sstevel		   -L$(LW2PLUS_LINT_LIB_DIR) \
882305Sstevel		   -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
892305Sstevel		   -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
902305Sstevel
912305Sstevel$(LW2PLUS_KMODS): FRC
922305Sstevel	@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
932305Sstevel
942305Sstevel$(LW2PLUS_PLAT_LINKS_2):
95*10207SJames.McPherson@Sun.COM	$(RM) $@; $(SYMLINK) $(LINKS2DESTDIR)/$(@F) $@
962305Sstevel
972305Sstevel$(LW2PLUS_CRYPTO_LINKS): $(ROOT_LW2PLUS_CRYPTO_DIR_64)
982305Sstevel	-$(RM) $(ROOT_LW2PLUS_CRYPTO_DIR_64)/$@;
992305Sstevel	$(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_LW2PLUS_CRYPTO_DIR_64)/$@
1002305Sstevel
1012305Sstevel#
1022305Sstevel#
1032305Sstevel#	Include common targets.
1042305Sstevel#
1052305Sstevelinclude $(UTSBASE)/sun4u/lw2plus/Makefile.targ
106