Makefile revision b31b5de1357c915fe7dab4d9646d9d84f9fe69bc
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson# CDDL HEADER START
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson# The contents of this file are subject to the terms of the
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson# Common Development and Distribution License (the "License").
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson# You may not use this file except in compliance with the License.
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson# or http://www.opensolaris.org/os/licensing.
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson# See the License for the specific language governing permissions
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson# and limitations under the License.
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson# When distributing Covered Code, include this CDDL HEADER in each
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson# If applicable, add the following below this CDDL HEADER, with the
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson# fields enclosed by brackets "[]" replaced with your own identifying
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson# information: Portions Copyright [yyyy] [name of copyright owner]
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson# CDDL HEADER END
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson# Use is subject to license terms.
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson# This makefile drives the production of unix (and unix.o).
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson# sun4u starcat implementation architecture dependent
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson# Path to the base of the uts directory tree (usually /usr/src/uts).
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson# Define the module and object file sets.
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris AndersonOBJECTS = $(SPECIAL_OBJS:%=$(OBJS_DIR)/%) \
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson $(MACH_NOT_YET_KMODS:%=$(OBJS_DIR)/%)
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris AndersonLINTS = $(SPECIAL_OBJS:%.o=$(LINTS_DIR)/%.ln) \
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson $(CORE_OBJS:%.o=$(LINTS_DIR)/%.ln) \
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson $(MACH_NOT_YET_KMODS:%.o=$(LINTS_DIR)/%.ln) \
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris AndersonKRTLD_MAPFILE = $(UTSBASE)/sparc/krtld/mapfile
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris AndersonKRTLD_OBJECTS = $(KRTLD_OBJS:%=$(OBJS_DIR)/%)
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris AndersonROOTMODULE = $(ROOT_STARCAT_KERN_DIR)/$(UNIX)
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris AndersonLIBS = $(GENLIB) $(PLATLIB) $(CPULIB)
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris AndersonGENOPTS = -L $(GENUNIX_DIR)/$(OBJS_DIR) -l $(GENUNIX)
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris AndersonCPUOPTS = -L $(CPU_DIR)/$(OBJS_DIR) -l $(CPUNAME)
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris AndersonPLATOPTS = -L $(PLAT_DIR)/$(OBJS_DIR) -l $(PLATMOD)
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris AndersonLIBOPTS = $(GENOPTS) $(PLATOPTS) $(CPUOPTS)
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson# Include common rules.
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Andersoninclude $(UTSBASE)/sun4u/starcat/Makefile.starcat
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson# Define targets
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris AndersonINSTALL_TARGET = $(UNIX_BIN) $(ROOTMODULE)
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson# This is UNIX_DIR. Use a short path.
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris AndersonCLEANFILES += $(UNIX_O) $(MODSTUBS_O) $(KRTLD_O) $(KRTLD_OBJECTS) \
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson $(OBJS_DIR)/vers.c $(OBJS_DIR)/vers.o \
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris AndersonCLOBBERFILES = $(CLEANFILES) $(UNIX_BIN)
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson# lint pass one enforcement
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson# Turn on doubleword alignment for 64 bit counter timer registers
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson# Default build targets.
$(DTRACESTUBS)
$(POST_PROCESS)
$(CHK4UBINARY)
# The global lint target builds the kernel lint library (llib-lunix.ln)
# which is equivalent to a lint of /unix.o. Then all kernel modules for