Makefile revision b31b5de1357c915fe7dab4d9646d9d84f9fe69bc
0e2a2eae9b72ac099aa25d7419e55af13b004be9minfrin# CDDL HEADER START
7f4ac5a4cd99a9cae866b5908e358bd932736307chrisd# The contents of this file are subject to the terms of the
a5cce34e21a5b472f3806b4526043887bcb7e9eajim# Common Development and Distribution License (the "License").
a5cce34e21a5b472f3806b4526043887bcb7e9eajim# You may not use this file except in compliance with the License.
a5cce34e21a5b472f3806b4526043887bcb7e9eajim# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8c3667cd1d0db08647793137c0d1aa7f6526bebfniq# See the License for the specific language governing permissions
8c3667cd1d0db08647793137c0d1aa7f6526bebfniq# and limitations under the License.
8c3667cd1d0db08647793137c0d1aa7f6526bebfniq# When distributing Covered Code, include this CDDL HEADER in each
8c3667cd1d0db08647793137c0d1aa7f6526bebfniq# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6824182b3b8e045db97a228d3127bdfcbdfeb0bcniq# If applicable, add the following below this CDDL HEADER, with the
6824182b3b8e045db97a228d3127bdfcbdfeb0bcniq# fields enclosed by brackets "[]" replaced with your own identifying
6824182b3b8e045db97a228d3127bdfcbdfeb0bcniq# information: Portions Copyright [yyyy] [name of copyright owner]
0c26d213d85bc40fc05963c63bf670b42b352d25niq# CDDL HEADER END
92357fb76d3ad043e29ba2ba2041a7bdb8d13390niq# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
92357fb76d3ad043e29ba2ba2041a7bdb8d13390niq# Use is subject to license terms.
f7cec4a86292b160401472286a17497ae0d4df18covener# This makefile drives the production of unix (and unix.o).
f7cec4a86292b160401472286a17497ae0d4df18covener# sun4u starfire implementation architecture dependent
1464434c2c104e0ba224644c42552330f5158537covener# Path to the base of the uts directory tree (usually /usr/src/uts).
7f4ac5a4cd99a9cae866b5908e358bd932736307chrisd# Define the module and object file sets.
0a12339f39799193ac6866fce812a1deb8f4a1abpquernaGENOPTS = -L $(GENUNIX_DIR)/$(OBJS_DIR) -l $(GENUNIX)
a91a59d0b0ceed7cd5621fe8757eda5ff6a043a8pquerna# Include common rules.
a91a59d0b0ceed7cd5621fe8757eda5ff6a043a8pquerna# Define targets
19e5deda3a29d71ac1cc4bfecce39f96ea3ab55dcovenerINSTALL_TARGET = $(UNIX_BIN) $(ROOTMODULE) $(UNIX32_LINK)
3ec1e3a35106ec4c8bcf8fae6a20cb623aed0b62pquerna# This is UNIX_DIR. Use a short path.
97f7daaffd9b6c1031302d7e551d5279fa0d0d72pquernaCLEANFILES += $(UNIX_O) $(MODSTUBS_O) $(KRTLD_O) $(KRTLD_OBJECTS) \
99c8705f69fae71940ad9b091bd2f588a7b9f484minfrin# lint pass one enforcement
99c8705f69fae71940ad9b091bd2f588a7b9f484minfrin# Turn on doubleword alignment for 64 bit counter timer registers
edaefb8bf78debc86ef7de441c7983d8b05517e1minfrin# Default build targets.
f436f5cf34615c3c7d49dd229560ba658033f9eachrisd$(UNIX_BIN): $(UNIX_O) $(KRTLD_O) $(MODSTUBS_O) $(MAPFILE) $(LIBS) \
ce6098001014d149e90e56ab0e89c1b4aab30136chrisd $(UNIX_O) $(KRTLD_O) $(MODSTUBS_O) $(LIBOPTS) $(DTRACESTUBS)
9257af3c6aaeaf201fccb3e3c87cf8c41783fdb7rpluem $(UNIX_O) $(KRTLD_O) $(MODSTUBS_O) $(LIBOPTS) $(DTRACESTUBS)
cf95511601acd18c75339ef5d90a298e070617ccminfrin# CPU_OBJ now comprises of 2 object files which come from sun4 common
cf95511601acd18c75339ef5d90a298e070617ccminfrin# and from architecture dependent code. OBJS_DIR is prepended where
e82c197ca8872669af89367746826fe6b9955bb3niq# CPU_OBJ is defined to allow for building multiple CPU_OBJ's
baef4b5261d84ad9bacb2f4e745b33f35534c25aniq# The global lint target builds the kernel lint library (llib-lunix.ln)
742ec45ed2ac00ab03080e898332352220cc1f13niq# which is equivalent to a lint of /unix.o. Then all kernel modules for
742ec45ed2ac00ab03080e898332352220cc1f13niq# this architecture are linted against the kernel lint library.
742ec45ed2ac00ab03080e898332352220cc1f13niq# Note: lint errors in the kernel lint library will be repeated for
f82568a780e35e8786958c49a1259434e2088b9cniq# each module. It is important that the kernel lint library
f82568a780e35e8786958c49a1259434e2088b9cniq# be clean to keep the textual output to a reasonable level.
6aa239b3d12f531ad9e305b1a81ad5fd671a3493minfrin# Include common targets.