Makefile revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4
bf52162f2d05c1fb1a107c7ef108de73f739b3edpquerna# CDDL HEADER START
9c67ffea79ab184351b5d554b57814e13285e758jim# The contents of this file are subject to the terms of the
e9bf808f770605c1f54a9d0fb1c560115c91fd71sf# Common Development and Distribution License (the "License").
e9bf808f770605c1f54a9d0fb1c560115c91fd71sf# You may not use this file except in compliance with the License.
575cc52562c51c0c8bb8de0c6eaa55a60f7f895bsf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
575cc52562c51c0c8bb8de0c6eaa55a60f7f895bsf# See the License for the specific language governing permissions
490993ea2eda52d4fdacff247eb2657296c86f71trawick# and limitations under the License.
03502de2853fcebaf853ed3bcfd5033894c238bbjim# When distributing Covered Code, include this CDDL HEADER in each
03502de2853fcebaf853ed3bcfd5033894c238bbjim# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
03502de2853fcebaf853ed3bcfd5033894c238bbjim# If applicable, add the following below this CDDL HEADER, with the
03502de2853fcebaf853ed3bcfd5033894c238bbjim# fields enclosed by brackets "[]" replaced with your own identifying
afee7998d5045107a7673f09bc3448a5dc1b6612jim# information: Portions Copyright [yyyy] [name of copyright owner]
6ec154950417d0b32082f6590ffa3acc3e0c3d49sf# CDDL HEADER END
b38e1e2f118f67818f88faee827f4b3a2881e908sf# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
3d636d91428f2c0a74012c89a94ec7d5b40aa52esf# Use is subject to license terms.
20e0c71be778348516719e1e58a9f55c8e78c570trawick# This makefile drives the production of the Serengeti
027f7b141f164258b254c38319d06452b25d7660trawick# UltraSPARC driver module.
977c4527be5a21182f24fc22a40a79d576a52f86trawick# Path to the base of the uts directory tree (usually /usr/src/uts).
3770ed746d69c7a4111cba9966169bd5d7a509a6poirier# Define the module and object file sets.
a81c0c1ae464b2063a21b45f80c9da8d89bb840ecovenerROOTSOFTLINKS = $(SOFTLINKS:%=$(ROOT_SERENGETI_CPU_DIR)/%)
ffae06377667a5d8f9699ac7512134de7000a83dminfrin# Include common rules.
efc81fe729a2b7401028387da184b4a98f0b854atrawickinclude $(UTSBASE)/sun4u/serengeti/Makefile.serengeti
9c67ffea79ab184351b5d554b57814e13285e758jim# Override defaults
4acc1efe19ac2e6f2df0abb4d5bf99bd8ae3c5c6jim# Define targets
a503caacf7ab36d5bc42cb7c78256e1221642656jimINSTALL_TARGET = def $(BINARY) $(ROOTMODULE) $(ROOTSOFTLINKS)
8602c898d4e06a7e7b9d6b7cf4b172a8e7310987sf# lint pass one enforcement
8602c898d4e06a7e7b9d6b7cf4b172a8e7310987sfCFLAGS += $(CCVERBOSE) -DCHEETAH -DCHEETAH_PLUS -DCPU_IMP_L1_CACHE_PARITY \
8602c898d4e06a7e7b9d6b7cf4b172a8e7310987sf -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE -DCPU_IMP_AFSR_EXT
4acc1efe19ac2e6f2df0abb4d5bf99bd8ae3c5c6jimASFLAGS += -DCHEETAH -DCHEETAH_PLUS -DCPU_IMP_L1_CACHE_PARITY \
4acc1efe19ac2e6f2df0abb4d5bf99bd8ae3c5c6jim -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE -DCPU_IMP_AFSR_EXT
4acc1efe19ac2e6f2df0abb4d5bf99bd8ae3c5c6jim# cpu-module-specific flags
3e2582713ed6883683272fbc628a27419d0ed543minfrinCPPFLAGS += -DCPU_MODULE -DCHEETAH -DCHEETAH_PLUS -DCPU_IMP_L1_CACHE_PARITY \
3e2582713ed6883683272fbc628a27419d0ed543minfrin -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE -DCPU_IMP_AFSR_EXT
3e2582713ed6883683272fbc628a27419d0ed543minfrinAS_CPPFLAGS += -DCPU_MODULE -DCHEETAH -DCHEETAH_PLUS -DCPU_IMP_L1_CACHE_PARITY \
3e2582713ed6883683272fbc628a27419d0ed543minfrin -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE -DCPU_IMP_AFSR_EXT
a46801e6532423aa7bd184471eb49158d7c9ae62sf# Default build targets.
93cf7fc650197b941ae31a7c7e51e901b129e954igalic @echo "resolving symbols against unix.o"
a1b1c78faf7969affb320f5c8eb270ffa21314c4rjung CPU_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck)
8d6b3720340d0bd7f8d25e2a8563527e97a48df8jorton# Include common targets.