Makefile revision 98157a7002f4f2cf7978f3084ca5577f0a1d72b2
11e9368a226272085c337e9e74b79808c16fbdbaTinderbox User# CDDL HEADER START
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The contents of this file are subject to the terms of the
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Common Development and Distribution License (the "License").
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You may not use this file except in compliance with the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# When distributing Covered Code, include this CDDL HEADER in each
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If applicable, add the following below this CDDL HEADER, with the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# fields enclosed by brackets "[]" replaced with your own identifying
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Use is subject to license terms.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# ident "%Z%%M% %I% %E% SMI"
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# This makefile drives the production of unix (and unix.o).
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# sun4u starfire implementation architecture dependent
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Path to the base of the uts directory tree (usually /usr/src/uts).
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Define the module and object file sets.
46472a450e043434d78fa18edc73bca8c47f3981Tinderbox UserLINTS = $(SPECIAL_OBJS:%.o=$(LINTS_DIR)/%.ln) \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntGENOPTS = -L $(GENUNIX_DIR)/$(OBJS_DIR) -l $(GENUNIX)
46472a450e043434d78fa18edc73bca8c47f3981Tinderbox UserCPUOPTS = -L $(CPU_DIR)/$(OBJS_DIR) -l $(CPUNAME)
46472a450e043434d78fa18edc73bca8c47f3981Tinderbox UserPLATOPTS = -L $(PLAT_DIR)/$(OBJS_DIR) -l $(PLATMOD)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Include common rules.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userinclude $(UTSBASE)/sun4u/starfire/Makefile.starfire
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Define targets
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntINSTALL_TARGET = $(UNIX_BIN) $(ROOTMODULE) $(UNIX32_LINK)
6b7cba2b10d6cb5363d94b434b0d22ecfb33a6f3Tinderbox User# This is UNIX_DIR. Use a short path.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCLEANFILES += $(UNIX_O) $(MODSTUBS_O) $(KRTLD_O) $(KRTLD_OBJECTS) \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# lint pass one enforcement
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Turn on doubleword alignment for 64 bit counter timer registers
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Default build targets.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User$(UNIX_BIN): $(UNIX_O) $(KRTLD_O) $(MODSTUBS_O) $(MAPFILE) $(LIBS) \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(UNIX_O) $(KRTLD_O) $(MODSTUBS_O) $(LIBOPTS) $(DTRACESTUBS)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt$(UNIX32_LINK): $(ROOT_PSM_KERN_DIR_32) $(UNIX_BIN)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Usersymcheck: $(UNIX_O) $(KRTLD_O) $(MODSTUBS_O) $(LIBS)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(UNIX_O) $(KRTLD_O) $(MODSTUBS_O) $(LIBOPTS) $(DTRACESTUBS)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(LD) -r -o $@ -M$(KRTLD_MAPFILE) $(KRTLD_OBJECTS)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# CPU_OBJ now comprises of 2 object files which come from sun4 common
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# and from architecture dependent code. OBJS_DIR is prepended where
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# CPU_OBJ is defined to allow for building multiple CPU_OBJ's
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# The global lint target builds the kernel lint library (llib-lunix.ln)
9d557856c2a19ec95ee73245f60a92f8675cf5baTinderbox User# which is equivalent to a lint of /unix.o. Then all kernel modules for
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# this architecture are linted against the kernel lint library.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Note: lint errors in the kernel lint library will be repeated for
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# each module. It is important that the kernel lint library
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# be clean to keep the textual output to a reasonable level.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Include common targets.