Makefile revision 98157a7002f4f2cf7978f3084ca5577f0a1d72b2
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# CDDL HEADER START
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# The contents of this file are subject to the terms of the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Common Development and Distribution License (the "License").
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# You may not use this file except in compliance with the License.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# See the License for the specific language governing permissions
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# and limitations under the License.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# When distributing Covered Code, include this CDDL HEADER in each
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# If applicable, add the following below this CDDL HEADER, with the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# fields enclosed by brackets "[]" replaced with your own identifying
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# information: Portions Copyright [yyyy] [name of copyright owner]
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# CDDL HEADER END
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Use is subject to license terms.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# ident "%Z%%M% %I% %E% SMI"
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# This makefile drives the production of unix (and unix.o).
60e9e896a1a7a9e62db162e1e9fb6b3c2df50c33Quentin CASTEL# sun4u implementation architecture dependent
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Path to the base of the uts directory tree (usually /usr/src/uts).
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Define the module and object file sets.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#UNIX_GLOM = $(OBJS_DIR)/unix.glom
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterGENOPTS = -L $(GENUNIX_DIR)/$(OBJS_DIR) -l $(GENUNIX)
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCPUOPTS = -L $(CPU_DIR)/$(OBJS_DIR) -l $(CPUNAME)
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterPLATOPTS = -L $(PLAT_DIR)/$(OBJS_DIR) -l $(PLATMOD)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Include common rules.
60e9e896a1a7a9e62db162e1e9fb6b3c2df50c33Quentin CASTEL# Define targets
60e9e896a1a7a9e62db162e1e9fb6b3c2df50c33Quentin CASTELINSTALL_TARGET = $(UNIX_BIN) $(ROOTMODULE) $(UNIX32_LINK)
60e9e896a1a7a9e62db162e1e9fb6b3c2df50c33Quentin CASTEL# This is UNIX_DIR. Use a short path.
60e9e896a1a7a9e62db162e1e9fb6b3c2df50c33Quentin CASTELCLEANFILES += $(UNIX_O) $(MODSTUBS_O) $(KRTLD_O) $(KRTLD_OBJECTS) \
$(DTRACESTUBS)
$(POST_PROCESS)
$(PLATLIB):
# 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