xref: /onnv-gate/usr/src/uts/sun4u/s10_brand/Makefile (revision 12199:2dbcb597eb37)
110840SGerald.Jelinek@Sun.COM#
210840SGerald.Jelinek@Sun.COM# CDDL HEADER START
310840SGerald.Jelinek@Sun.COM#
410840SGerald.Jelinek@Sun.COM# The contents of this file are subject to the terms of the
510840SGerald.Jelinek@Sun.COM# Common Development and Distribution License (the "License").
610840SGerald.Jelinek@Sun.COM# You may not use this file except in compliance with the License.
710840SGerald.Jelinek@Sun.COM#
810840SGerald.Jelinek@Sun.COM# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
910840SGerald.Jelinek@Sun.COM# or http://www.opensolaris.org/os/licensing.
1010840SGerald.Jelinek@Sun.COM# See the License for the specific language governing permissions
1110840SGerald.Jelinek@Sun.COM# and limitations under the License.
1210840SGerald.Jelinek@Sun.COM#
1310840SGerald.Jelinek@Sun.COM# When distributing Covered Code, include this CDDL HEADER in each
1410840SGerald.Jelinek@Sun.COM# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1510840SGerald.Jelinek@Sun.COM# If applicable, add the following below this CDDL HEADER, with the
1610840SGerald.Jelinek@Sun.COM# fields enclosed by brackets "[]" replaced with your own identifying
1710840SGerald.Jelinek@Sun.COM# information: Portions Copyright [yyyy] [name of copyright owner]
1810840SGerald.Jelinek@Sun.COM#
1910840SGerald.Jelinek@Sun.COM# CDDL HEADER END
2010840SGerald.Jelinek@Sun.COM#
2110840SGerald.Jelinek@Sun.COM#
22*12199Sgerald.jelinek@sun.com# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
2310840SGerald.Jelinek@Sun.COM#
2410840SGerald.Jelinek@Sun.COM#	This makefile drives the production of the kernel component of
2510840SGerald.Jelinek@Sun.COM#	the Solaris 10 brand
2610840SGerald.Jelinek@Sun.COM#
2710840SGerald.Jelinek@Sun.COM
2810840SGerald.Jelinek@Sun.COM#
2910840SGerald.Jelinek@Sun.COM#	Path to the base of the uts directory tree (usually /usr/src/uts).
3010840SGerald.Jelinek@Sun.COM#
3110840SGerald.Jelinek@Sun.COMUTSBASE =	../..
3210840SGerald.Jelinek@Sun.COMS10_BASE =	$(UTSBASE)/common/brand/solaris10
3310840SGerald.Jelinek@Sun.COM
3410840SGerald.Jelinek@Sun.COM#
3510840SGerald.Jelinek@Sun.COM#	Define the module and object file sets.
3610840SGerald.Jelinek@Sun.COM#
3710840SGerald.Jelinek@Sun.COMMODULE =	s10_brand
3810840SGerald.Jelinek@Sun.COMOBJECTS =	$(S10_BRAND_OBJS:%=$(OBJS_DIR)/%)
3910840SGerald.Jelinek@Sun.COMLINTS =		$(S10_BRAND_OBJS:%.o=$(LINTS_DIR)/%.ln)
4010840SGerald.Jelinek@Sun.COMROOTMODULE =	$(ROOT_PSM_BRAND_DIR)/$(MODULE)
4110840SGerald.Jelinek@Sun.COM
4210840SGerald.Jelinek@Sun.COM#
4310840SGerald.Jelinek@Sun.COM#	Include common rules.
4410840SGerald.Jelinek@Sun.COM#
4510840SGerald.Jelinek@Sun.COMinclude $(UTSBASE)/sun4u/Makefile.sun4u
4610840SGerald.Jelinek@Sun.COM
4710840SGerald.Jelinek@Sun.COM#
4810840SGerald.Jelinek@Sun.COM#	Define targets
4910840SGerald.Jelinek@Sun.COM#
50*12199Sgerald.jelinek@sun.comALL_TARGET =		$(BINARY)
5110840SGerald.Jelinek@Sun.COMLINT_TARGET =		$(MODULE).lint
52*12199Sgerald.jelinek@sun.comINSTALL_TARGET =	$(BINARY) $(ROOTMODULE)
5310840SGerald.Jelinek@Sun.COM
5410840SGerald.Jelinek@Sun.COM#
5510840SGerald.Jelinek@Sun.COM#	Update compiler variables.
5610840SGerald.Jelinek@Sun.COM#
5710840SGerald.Jelinek@Sun.COMINC_PATH +=	-I$(S10_BASE) -I$(OBJS_DIR)
5810840SGerald.Jelinek@Sun.COMLDFLAGS +=	-dy -Nexec/elfexec
5910840SGerald.Jelinek@Sun.COM
6010840SGerald.Jelinek@Sun.COM#
6110840SGerald.Jelinek@Sun.COM#	Default build targets.
6210840SGerald.Jelinek@Sun.COM#
6310840SGerald.Jelinek@Sun.COM.KEEP_STATE:
6410840SGerald.Jelinek@Sun.COM
6510840SGerald.Jelinek@Sun.COMdef:		$(DEF_DEPS)
6610840SGerald.Jelinek@Sun.COM
6710840SGerald.Jelinek@Sun.COMall:		$(ALL_DEPS)
6810840SGerald.Jelinek@Sun.COM
6910840SGerald.Jelinek@Sun.COMclean:		$(CLEAN_DEPS)
7010840SGerald.Jelinek@Sun.COM
7110840SGerald.Jelinek@Sun.COMclobber:	$(CLOBBER_DEPS)
7210840SGerald.Jelinek@Sun.COM
7310840SGerald.Jelinek@Sun.COMlint:		$(LINT_DEPS)
7410840SGerald.Jelinek@Sun.COM
7510840SGerald.Jelinek@Sun.COMmodlintlib:	$(MODLINTLIB_DEPS)
7610840SGerald.Jelinek@Sun.COM
7710840SGerald.Jelinek@Sun.COMclean.lint:	$(CLEAN_LINT_DEPS)
7810840SGerald.Jelinek@Sun.COM
7910840SGerald.Jelinek@Sun.COMinstall:	$(INSTALL_DEPS)
8010840SGerald.Jelinek@Sun.COM
8110840SGerald.Jelinek@Sun.COM#
8210840SGerald.Jelinek@Sun.COM#	Include common targets.
8310840SGerald.Jelinek@Sun.COM#
8410840SGerald.Jelinek@Sun.COMinclude $(UTSBASE)/sun4u/Makefile.targ
85