Makefile revision 25cf1a301a396c38e8adf52c15f537b80d2483f7
c10fe96ac7d024918e26af6c8ba5470273b75bb2jwoolley# CDDL HEADER START
98ae9b96926a3dd99b195d7628c7e527e720f6acaaron# The contents of this file are subject to the terms of the
98ae9b96926a3dd99b195d7628c7e527e720f6acaaron# Common Development and Distribution License (the "License").
98ae9b96926a3dd99b195d7628c7e527e720f6acaaron# You may not use this file except in compliance with the License.
98ae9b96926a3dd99b195d7628c7e527e720f6acaaron# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
98ae9b96926a3dd99b195d7628c7e527e720f6acaaron# See the License for the specific language governing permissions
98ae9b96926a3dd99b195d7628c7e527e720f6acaaron# and limitations under the License.
9379749d811388a7d0e3410940ddd6743a33d330jim# When distributing Covered Code, include this CDDL HEADER in each
9379749d811388a7d0e3410940ddd6743a33d330jim# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9379749d811388a7d0e3410940ddd6743a33d330jim# If applicable, add the following below this CDDL HEADER, with the
9379749d811388a7d0e3410940ddd6743a33d330jim# fields enclosed by brackets "[]" replaced with your own identifying
f37499bf7da81cd6b697d4667233137957426428jerenkrantz# information: Portions Copyright [yyyy] [name of copyright owner]
421dc1d123c9adda60e024f93fb614bfada8b9e5wrowe# CDDL HEADER END
421dc1d123c9adda60e024f93fb614bfada8b9e5wrowe# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
83d91d60d00dc345bfbcbc48ff206db4a6b23b2eaaron# Use is subject to license terms.
83d91d60d00dc345bfbcbc48ff206db4a6b23b2eaaron# ident "%Z%%M% %I% %E% SMI"
83d91d60d00dc345bfbcbc48ff206db4a6b23b2eaaron# This makefile drives the production of unix (and unix.o).
c10fe96ac7d024918e26af6c8ba5470273b75bb2jwoolley# sun4u opl implementation architecture dependent
7a8a0744e378f2343c3ee6787fac0f8f959d2141brianp# Path to the base of the uts directory tree (usually /usr/src/uts).
f5ce2873c97c12a34d6b03d2771b9250b7bbfe55wrowe# Define the module and object file sets.
a322a82f79b790fb7ddcd7df4459d20725450fa7trawickGENOPTS = -L $(GENUNIX_DIR)/$(OBJS_DIR) -l $(GENUNIX)
bf5cf58cc30750e9f9764cc830aff426ced288f9aaron# Include common rules.
7cdc36a99b42a3c5e36ac47726ad41c9c7b039ceianh# Define targets
dee6a8bde4d598087dc4b3ebf3d4dd06809d2dd7jerenkrantz# This is UNIX_DIR. Use a short path.
d7d551e53cdfb3288eb651447d7209599c40d17estoddardCLEANFILES += $(UNIX_O) $(MODSTUBS_O) $(OBJS_DIR)/vers.c \
d0e4ca9bfd8bf44bea574733965851bfee939d95aaron# lint pass one enforcement
d0e4ca9bfd8bf44bea574733965851bfee939d95aaron# Turn on doubleword alignment for 64 bit counter timer registers
d0e4ca9bfd8bf44bea574733965851bfee939d95aaron# Default build targets.
edcd9e6d9d29f60b25f7b9779dbd33e9dc1cc79ejerenkrantz$(UNIX_BIN): $(UNIX_O) $(MODSTUBS_O) $(MAPFILE) $(LIBS) $(DTRACESTUBS)
edcd9e6d9d29f60b25f7b9779dbd33e9dc1cc79ejerenkrantz $(LD) -dy -b -o $@ -e _start -I $(KRTLD) -M $(MAPFILE) \
edcd9e6d9d29f60b25f7b9779dbd33e9dc1cc79ejerenkrantz $(UNIX_O) $(MODSTUBS_O) $(LIBOPTS) $(DTRACESTUBS)
1582553026e5e3a1921a34222eaee923fddee9b9wrowesymcheck.targ: $(UNIX_O) $(MODSTUBS_O) $(LIBS) $(DTRACESTUBS)
1582553026e5e3a1921a34222eaee923fddee9b9wrowe# Special rules for generating assym.h for inclusion in assembly files.
762c82a23cc3ddaac92f941b2f871e94efdf4e6bgregames# CPU_OBJ now comprises of 2 object files which come from sun4 common
762c82a23cc3ddaac92f941b2f871e94efdf4e6bgregames# and from architecture dependent code. OBJS_DIR is prepended where
762c82a23cc3ddaac92f941b2f871e94efdf4e6bgregames# CPU_OBJ is defined to allow for building multiple CPU_OBJ's
d56c38bfb6293bfff7c980858b19e32039106618jerenkrantz# The global lint target builds the kernel lint library (llib-lunix.ln)
d56c38bfb6293bfff7c980858b19e32039106618jerenkrantz# which is equivalent to a lint of /unix.o. Then all kernel modules for
d56c38bfb6293bfff7c980858b19e32039106618jerenkrantz# this architecture are linted against the kernel lint library.
7c301a1818939f85da8f3629cc3e9b5588610ef0jerenkrantz# Note: lint errors in the kernel lint library will be repeated for
7c301a1818939f85da8f3629cc3e9b5588610ef0jerenkrantz# each module. It is important that the kernel lint library
7c301a1818939f85da8f3629cc3e9b5588610ef0jerenkrantz# be clean to keep the textual output to a reasonable level.
af262486b3d1c33299307195a715bd1e373f99afrbb# Include common targets.