Makefile revision b6c3f7863936abeae522e48a13887dddeb691a45
4d237bbe075b1d2c19428cd954d721d65b31f67cwrowe#
bf52162f2d05c1fb1a107c7ef108de73f739b3edpquerna# CDDL HEADER START
bf52162f2d05c1fb1a107c7ef108de73f739b3edpquerna#
bf52162f2d05c1fb1a107c7ef108de73f739b3edpquerna# The contents of this file are subject to the terms of the
86bb763be5d87c295c8844d30078da2ddb964f73rpluem# Common Development and Distribution License (the "License").
86bb763be5d87c295c8844d30078da2ddb964f73rpluem# You may not use this file except in compliance with the License.
ba217dc41cebc0976010ee177f8fedac782d1f6fminfrin#
ba217dc41cebc0976010ee177f8fedac782d1f6fminfrin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
86bb763be5d87c295c8844d30078da2ddb964f73rpluem# or http://www.opensolaris.org/os/licensing.
86bb763be5d87c295c8844d30078da2ddb964f73rpluem# See the License for the specific language governing permissions
ba217dc41cebc0976010ee177f8fedac782d1f6fminfrin# and limitations under the License.
ba217dc41cebc0976010ee177f8fedac782d1f6fminfrin#
8315a125b56710a222167e4d65b96c3c891f4b25sf# When distributing Covered Code, include this CDDL HEADER in each
8315a125b56710a222167e4d65b96c3c891f4b25sf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8315a125b56710a222167e4d65b96c3c891f4b25sf# If applicable, add the following below this CDDL HEADER, with the
8315a125b56710a222167e4d65b96c3c891f4b25sf# fields enclosed by brackets "[]" replaced with your own identifying
3f985866b9b5b49fb57735b5eb135591163f30dfsf# information: Portions Copyright [yyyy] [name of copyright owner]
3f985866b9b5b49fb57735b5eb135591163f30dfsf#
7f51e5c395d431b8c20226f77de28efe13272bfasf# CDDL HEADER END
7f51e5c395d431b8c20226f77de28efe13272bfasf#
7f51e5c395d431b8c20226f77de28efe13272bfasf#
7f51e5c395d431b8c20226f77de28efe13272bfasf# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
17d64c884a44f5ca72f6901afd3e50991bfc1c63sf# Use is subject to license terms.
17d64c884a44f5ca72f6901afd3e50991bfc1c63sf#
17d64c884a44f5ca72f6901afd3e50991bfc1c63sf# ident "%Z%%M% %I% %E% SMI"
a6e4caaa97e433cc2ef78d957bc32756d9c49f79sf#
a6e4caaa97e433cc2ef78d957bc32756d9c49f79sf# uts/sun4u/chicago/Makefile
a6e4caaa97e433cc2ef78d957bc32756d9c49f79sf#
a6e4caaa97e433cc2ef78d957bc32756d9c49f79sf# This makefile drives the production of the sun4u chicago platform
a6e4caaa97e433cc2ef78d957bc32756d9c49f79sf# module.
a6e4caaa97e433cc2ef78d957bc32756d9c49f79sf#
a6e4caaa97e433cc2ef78d957bc32756d9c49f79sf# sun4u implementation architecture dependent
a96ba81cada826f2a9ab1e24218a77bfadfc31d8sf#
a96ba81cada826f2a9ab1e24218a77bfadfc31d8sf
a96ba81cada826f2a9ab1e24218a77bfadfc31d8sf#
a96ba81cada826f2a9ab1e24218a77bfadfc31d8sf# Path to the base of the uts directory tree (usually /usr/src/uts).
4f133508c93204c06e1acba9774ff184e5812606niq#
4f133508c93204c06e1acba9774ff184e5812606niqUTSBASE = ../..
4f133508c93204c06e1acba9774ff184e5812606niq
87587593f1a53030e840acc0dec6cc881022ea40covener#
87587593f1a53030e840acc0dec6cc881022ea40covener# Include common rules.
87587593f1a53030e840acc0dec6cc881022ea40covener#
87587593f1a53030e840acc0dec6cc881022ea40covenerinclude $(UTSBASE)/sun4u/chicago/Makefile.chicago
87587593f1a53030e840acc0dec6cc881022ea40covener
52071e4b9f49c3a1c2c767c7ea80ec92cf9032c9covenerdef := TARGET= def
52071e4b9f49c3a1c2c767c7ea80ec92cf9032c9covenerall := TARGET= all
52071e4b9f49c3a1c2c767c7ea80ec92cf9032c9covenerinstall := TARGET= install
89b8bbc89404e7071e573c4f0a17f528996e855djortoninstall_h := TARGET= install_h
89b8bbc89404e7071e573c4f0a17f528996e855djortonclean := TARGET= clean
89b8bbc89404e7071e573c4f0a17f528996e855djortonclobber := TARGET= clobber
e1d4c4e8366f46dc5dc1e6e24b4c7ac448dfa061sflint := TARGET= lint
e1d4c4e8366f46dc5dc1e6e24b4c7ac448dfa061sflintlib := TARGET= lintlib
6bc4f334a04802bab835893d0c42af8bfb9c3c41sfmodlintlib := TARGET= modlintlib
6bc4f334a04802bab835893d0c42af8bfb9c3c41sfmodlist := TARGET= modlist
53593dbd8fece82cb66a23f0b7024d8d713d66f1sfmodlist := NO_STATE= -K $$MODSTATE$$$$
53593dbd8fece82cb66a23f0b7024d8d713d66f1sfclean.lint := TARGET= clean.lint
79e3f2f950745953fff4a6a8dfe1f7cce31ce287sfcheck := TARGET= check
79e3f2f950745953fff4a6a8dfe1f7cce31ce287sf
ab2b977442827214b1d884decf3e3f1579fd45e1rpluem#
ab2b977442827214b1d884decf3e3f1579fd45e1rpluem# Default build targets.
ab2b977442827214b1d884decf3e3f1579fd45e1rpluem#
195edf54eccd8c5a436c7dd17f5f604e7074d5d1sf.KEEP_STATE:
195edf54eccd8c5a436c7dd17f5f604e7074d5d1sf
195edf54eccd8c5a436c7dd17f5f604e7074d5d1sfdef all clean clean.lint clobber modlist: $(CHICAGO_KMODS)
3709b26f3370ae89c5324a3c03fab56a93b09ecdsf
3709b26f3370ae89c5324a3c03fab56a93b09ecdsfmodlintlib: $(CHICAGO_KMODS)
3709b26f3370ae89c5324a3c03fab56a93b09ecdsf
03577bc320125eaa2b27ee7af78b894ee6dfe121takashiinstall: $(ROOT_CHICAGO_DIR) \
03577bc320125eaa2b27ee7af78b894ee6dfe121takashi $(USR_CHICAGO_DIR) \
03577bc320125eaa2b27ee7af78b894ee6dfe121takashi $(USR_CHICAGO_INC_DIR) \
f5119c5d7cfe8c6d53cb29d43f8746684068ed82minfrin $(USR_CHICAGO_SBIN_DIR) \
f5119c5d7cfe8c6d53cb29d43f8746684068ed82minfrin $(USR_CHICAGO_LIB_DIR) \
f5119c5d7cfe8c6d53cb29d43f8746684068ed82minfrin $(CHICAGO_CRYPTO_LINKS) \
f5119c5d7cfe8c6d53cb29d43f8746684068ed82minfrin $(CHICAGO_KMODS)
f74d35a61a835e15412b99b8aebe4958fe4e94a5takashi
94713632faf403489b3f8b4e0ed65e1011ac4991takashicheck install_h:
f74d35a61a835e15412b99b8aebe4958fe4e94a5takashi
20216b769716c4346cce373f2028d7dbebf03886poirierlint: modlintlib
20216b769716c4346cce373f2028d7dbebf03886poirier
20216b769716c4346cce373f2028d7dbebf03886poirier#
7317a32e0c621c9a28f6f10e83e6c5dc63e3f3bdsf# The 'lint.platmod' target lints the chicago platform module against the sun4u
7317a32e0c621c9a28f6f10e83e6c5dc63e3f3bdsf# kernel. This ends up doing all the kernel cross-checks, so it takes a couple
7317a32e0c621c9a28f6f10e83e6c5dc63e3f3bdsf# of minutes. Due to the low ROI, it's not run by default, but it's a good
ecc6e723b804fb4b8f858910eff3f88242ec56fasf# idea to run this if you change os/chicago.c.
ecc6e723b804fb4b8f858910eff3f88242ec56fasf#
ecc6e723b804fb4b8f858910eff3f88242ec56fasfLINT_LIBS = $(LINT_LIB) \
ecc6e723b804fb4b8f858910eff3f88242ec56fasf -L$(CHICAGO_LINT_LIB_DIR) \
ecc6e723b804fb4b8f858910eff3f88242ec56fasf -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
ecc6e723b804fb4b8f858910eff3f88242ec56fasf $(CLOSED_LINT_KMODS:%=-l%) \
727d68c6009030f56a350b4603384ce4fb844341minfrin -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
727d68c6009030f56a350b4603384ce4fb844341minfrin
727d68c6009030f56a350b4603384ce4fb844341minfrinlint.platmod: modlintlib
ed6dfb7d7057dc4f42348f12d7bff9fe98fc73cfminfrin @-$(ECHO) "\nChicago Platform-dependent module: global crosschecks:"
ed6dfb7d7057dc4f42348f12d7bff9fe98fc73cfminfrin @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
ed6dfb7d7057dc4f42348f12d7bff9fe98fc73cfminfrin
4dee28b6fc8fff5efde4e7821aeb6defed3fb84dsf$(CHICAGO_KMODS): FRC
4dee28b6fc8fff5efde4e7821aeb6defed3fb84dsf @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
4dee28b6fc8fff5efde4e7821aeb6defed3fb84dsf
23247a8f748077bc788a5fbaf91d5fad34d0b7d1sf$(CHICAGO_CRYPTO_LINKS): $(ROOT_CHICAGO_CRYPTO_DIR_64)
23247a8f748077bc788a5fbaf91d5fad34d0b7d1sf -$(RM) $(ROOT_CHICAGO_CRYPTO_DIR_64)/$@;
23247a8f748077bc788a5fbaf91d5fad34d0b7d1sf $(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_CHICAGO_CRYPTO_DIR_64)/$@
23247a8f748077bc788a5fbaf91d5fad34d0b7d1sf
58015652ffe00f004c6404a0631474f23dadc7dasf#
58015652ffe00f004c6404a0631474f23dadc7dasf# Include common targets.
58015652ffe00f004c6404a0631474f23dadc7dasf#
2af38cc44e48753913565b38a7a9f325f898a293minfrininclude $(UTSBASE)/sun4u/chicago/Makefile.targ
2af38cc44e48753913565b38a7a9f325f898a293minfrin