xref: /titanic_41/usr/src/uts/sun4u/schumacher/Makefile (revision 1e49577a7fcde812700ded04431b49d67cc57d6d)
11cb6af97Swnelson#
21cb6af97Swnelson# CDDL HEADER START
31cb6af97Swnelson#
41cb6af97Swnelson# The contents of this file are subject to the terms of the
5ae115bc7Smrj# Common Development and Distribution License (the "License").
6ae115bc7Smrj# You may not use this file except in compliance with the License.
71cb6af97Swnelson#
81cb6af97Swnelson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
91cb6af97Swnelson# or http://www.opensolaris.org/os/licensing.
101cb6af97Swnelson# See the License for the specific language governing permissions
111cb6af97Swnelson# and limitations under the License.
121cb6af97Swnelson#
131cb6af97Swnelson# When distributing Covered Code, include this CDDL HEADER in each
141cb6af97Swnelson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
151cb6af97Swnelson# If applicable, add the following below this CDDL HEADER, with the
161cb6af97Swnelson# fields enclosed by brackets "[]" replaced with your own identifying
171cb6af97Swnelson# information: Portions Copyright [yyyy] [name of copyright owner]
181cb6af97Swnelson#
191cb6af97Swnelson# CDDL HEADER END
201cb6af97Swnelson#
21*1e49577aSRod Evans# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
221cb6af97Swnelson#
231cb6af97Swnelson#	This makefile drives the production of the sun4u schumacher platform
241cb6af97Swnelson#	module.
251cb6af97Swnelson#
261cb6af97Swnelson#	sun4u implementation architecture dependent
271cb6af97Swnelson#
281cb6af97Swnelson
291cb6af97Swnelson#
301cb6af97Swnelson#	Path to the base of the uts directory tree (usually /usr/src/uts).
311cb6af97Swnelson#
321cb6af97SwnelsonUTSBASE	= ../..
331cb6af97Swnelson
341cb6af97Swnelson#
351cb6af97Swnelson#	Include common rules.
361cb6af97Swnelson#
371cb6af97Swnelsoninclude $(UTSBASE)/sun4u/schumacher/Makefile.schumacher
381cb6af97Swnelson
391cb6af97Swnelsondef		:=	TARGET= def
401cb6af97Swnelsonall		:=	TARGET= all
411cb6af97Swnelsoninstall		:=	TARGET= install
421cb6af97Swnelsoninstall_h	:=	TARGET= install_h
431cb6af97Swnelsonclean		:=	TARGET= clean
441cb6af97Swnelsonclobber		:=	TARGET= clobber
451cb6af97Swnelsonlint		:=	TARGET= lint
461cb6af97Swnelsonlintlib		:=	TARGET= lintlib
471cb6af97Swnelsonmodlintlib	:=	TARGET= modlintlib
48fb9f9b97Skupfermodlist		:=	TARGET= modlist
49fb9f9b97Skupfermodlist		:=	NO_STATE= -K $$MODSTATE$$$$
501cb6af97Swnelsonclean.lint	:=	TARGET= clean.lint
511cb6af97Swnelsoncheck		:=	TARGET= check
521cb6af97Swnelson
531cb6af97Swnelson#
541cb6af97Swnelson#	Default build targets.
551cb6af97Swnelson#
561cb6af97Swnelson.KEEP_STATE:
571cb6af97Swnelson
58fb9f9b97Skupferdef all clean clean.lint clobber modlist: $(SCHUMACHER_KMODS)
591cb6af97Swnelson
601cb6af97Swnelsonmodlintlib:	$(SCHUMACHER_KMODS)
611cb6af97Swnelson
621cb6af97Swnelsoninstall:	$(ROOT_SCHUMACHER_DIR) \
631cb6af97Swnelson		$(USR_SCHUMACHER_DIR) \
641cb6af97Swnelson		$(USR_SCHUMACHER_INC_DIR) \
651cb6af97Swnelson		$(USR_SCHUMACHER_SBIN_DIR) \
661cb6af97Swnelson		$(USR_SCHUMACHER_SBIN_PRTDIAG) \
671cb6af97Swnelson		$(USR_SCHUMACHER_SBIN_FRUADM) \
681cb6af97Swnelson		$(USR_SCHUMACHER_LIB_DIR) \
691cb6af97Swnelson		$(SCHUMACHER_CRYPTO_LINKS) \
701cb6af97Swnelson		$(SCHUMACHER_KMODS)
711cb6af97Swnelson
721cb6af97Swnelsoncheck install_h:
731cb6af97Swnelson
741cb6af97Swnelsonlint:		modlintlib
751cb6af97Swnelson
761cb6af97Swnelson#
771cb6af97Swnelson# The 'lint.platmod' target lints the schumacher platform module against the sun4u
781cb6af97Swnelson# kernel.  This ends up doing all the kernel cross-checks, so it takes a couple
791cb6af97Swnelson# of minutes.
801cb6af97Swnelson#
811cb6af97SwnelsonLINT_LIBS	 = $(LINT_LIB) \
821cb6af97Swnelson		   -L$(SCHUMACHER_LINT_LIB_DIR) \
831cb6af97Swnelson		   -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
84fb9f9b97Skupfer		   	$(CLOSED_LINT_KMODS:%=-l%) \
851cb6af97Swnelson		   -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
861cb6af97Swnelson
871cb6af97Swnelsonlint.platmod:	modlintlib
881cb6af97Swnelson	@-$(ECHO) "\nSchumacher Platform-dependent module: global crosschecks:"
891cb6af97Swnelson	@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
901cb6af97Swnelson
911cb6af97Swnelson$(SCHUMACHER_KMODS): FRC
92fb9f9b97Skupfer	@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
931cb6af97Swnelson
941cb6af97Swnelson$(SCHUMACHER_CRYPTO_LINKS): $(ROOT_SCHUMACHER_CRYPTO_DIR_64)
951cb6af97Swnelson	-$(RM) $(ROOT_SCHUMACHER_CRYPTO_DIR_64)/$@;
961cb6af97Swnelson	$(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_SCHUMACHER_CRYPTO_DIR_64)/$@
971cb6af97Swnelson
981cb6af97Swnelson#
991cb6af97Swnelson#	Include common targets.
1001cb6af97Swnelson#
1011cb6af97Swnelsoninclude $(UTSBASE)/sun4u/schumacher/Makefile.targ
102