xref: /titanic_50/usr/src/psm/stand/cpr/sparcv9/sun4u/Makefile (revision c77a61a72b5ecdc507d6cf104142edd371a16c84)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 1995-1999,2002-2003 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29TOPDIR =	../../../../..
30
31# override global macros as necessary
32TARGET_ARCH =	sun4u
33TARG_MACH =     sparcv9
34ARCH =		sun4u
35MACH =		sparc
36MMU =		sfmmu
37ARCHVER =	v9
38PROMTYPE =	ieee1275
39ARCH_PROMDIR =	$(TARG_MACH)/$(PROMTYPE)/common
40PROMIFDIR =	$(TOPDIR)/psm/stand/lib/promif
41PLATLIBDIR =	$(PROMIFDIR)/$(TARG_MACH)/$(PROMTYPE)/$(TARGET_ARCH)
42PLATLIB =	$(PLATLIBDIR)/libplat.a
43LDLIBS =	-L$(PLATLIBDIR) -lplat
44SALIBS =	$(PLATLIB)
45LINTLIBS =	$(PLATLIBDIR)/llib-lplat.ln
46
47CPRBOOTOBJ = cb_srt0.o cprboot.o machdep.o pages.o bitmap.o util.o
48
49ALL = cprboot
50
51include ../../common/Makefile.com
52include $(TOPDIR)/psm/Makefile.psm.64
53CFLAGS64 += -xchip=ultra $(CCABS32)
54
55.KEEP_STATE:
56
57STANDDIR = 	$(TOPDIR)/stand
58CPPINCS	+=	-I$(STANDDIR)
59
60#
61# Cross-reference customization: build a cross-reference over all of
62# the sun4u-related CPR source files.
63#
64XRDIRS	+=	../../common \
65		$(STANDDIR)/lib $(STANDDIR)/sys \
66		../../../../promif/ieee1275 \
67		$(TOPDIR)/uts/common/os/compress.c \
68		$(TOPDIR)/uts/common/sys/cpr.h \
69		$(TOPDIR)/uts/sun4u/sys/cpr_impl.h
70